diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-12 22:10:51 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-12 22:10:51 +0000 |
commit | 9b10d2a051ec36c4e7f012d31b8214221db16eaa (patch) | |
tree | b6242231f0674978d51071f02f511c81370a022c /ui/aura/window_delegate.h | |
parent | 178520e30cfa28c3e33dd24a1868a06332975de4 (diff) | |
download | chromium_src-9b10d2a051ec36c4e7f012d31b8214221db16eaa.zip chromium_src-9b10d2a051ec36c4e7f012d31b8214221db16eaa.tar.gz chromium_src-9b10d2a051ec36c4e7f012d31b8214221db16eaa.tar.bz2 |
Move the concept of Activation to the Shell.
The Active Window is now stored in a property on the RootWindow. Classes wishing to observe changes to this can implement WindowObserver and attach to the RootWindow to be notified of changes in this property.
We provide an ActivationClient interface in Aura for customers to use to set/get the active window, and deactivate a window. This is because setting the active window involves more than just changing the property, there is some additional book-keeping that must be done. The ActivationClient is stored in a property on the RootWindow.
We also provide an ActivationDelegate interface in Aura that window owners can use to be notified of changes in activation state, and to specify whether or not a window can be activated. The ActivationDelegate should be stored on the relevant window in a property.
I moved a lot of Activation-related functionality out of Aura, including all of the unit tests, now on ActivationController, and the associated WindowDelegate implementations which have now become a single TestActivationDelegate implementation.
BUG=none
TEST=unit tests
Review URL: http://codereview.chromium.org/8894018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114095 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/window_delegate.h')
-rw-r--r-- | ui/aura/window_delegate.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/ui/aura/window_delegate.h b/ui/aura/window_delegate.h index f865511..25070c2 100644 --- a/ui/aura/window_delegate.h +++ b/ui/aura/window_delegate.h @@ -55,18 +55,6 @@ class AURA_EXPORT WindowDelegate { // Returns true of the window can be focused. virtual bool CanFocus() = 0; - // Returns true if the window should be activated. |event| is either the mouse - // event supplied if the activation is the result of a mouse, or the touch - // event if the activation is the result of a touch, or NULL if activation is - // attempted for another reason. - virtual bool ShouldActivate(Event* event) = 0; - - // Sent when the window is activated. - virtual void OnActivated() = 0; - - // Sent when the window loses active status. - virtual void OnLostActive() = 0; - // Invoked when mouse capture is lost on the window. virtual void OnCaptureLost() = 0; |