blob: 3c5b3aeb87c31bb51dc76a9fcf6f0e1113bff83c [file] [log] [blame]
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/aura/aura_export.h"
namespace ui {
class Event;
namespace aura {
class Window;
namespace client {
// An interface implemented by an object that configures and responds to changes
// to a window's activation state.
class AURA_EXPORT ActivationDelegate {
// Returns true if the window should be activated.
virtual bool ShouldActivate() const = 0;
virtual ~ActivationDelegate() {}
// Sets/Gets the ActivationDelegate on the Window. No ownership changes.
AURA_EXPORT void SetActivationDelegate(Window* window,
ActivationDelegate* delegate);
AURA_EXPORT ActivationDelegate* GetActivationDelegate(Window* window);
} // namespace client
} // namespace aura