diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-01 23:19:12 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-01 23:19:12 +0000 |
commit | 37974ad4ffcf30f18c25c28e9dccd098ab5e71d8 (patch) | |
tree | 808da500f37170706e695c9a029a1b649a1a87bc /ui/aura/window_observer.h | |
parent | e8ba615ab61359130553c7dd6419c331be5c49ad (diff) | |
download | chromium_src-37974ad4ffcf30f18c25c28e9dccd098ab5e71d8.zip chromium_src-37974ad4ffcf30f18c25c28e9dccd098ab5e71d8.tar.gz chromium_src-37974ad4ffcf30f18c25c28e9dccd098ab5e71d8.tar.bz2 |
Move maximize/fullscreen/restore to shell
With this CL, window is now correctly maximized/fullscreen'ed on aura desktop.
* Added OnPropertyChanged to WindowObserver
* Added Get/Set IntProperty to simplify handling int value properties.
* Remove IsOrContainsFullscreen. Added Workspace::ContainsFullscreen instead. We need this to autohide launcher.
BUG=97257,97259
TEST=new test for property change notification. existing tests are updated, except maximized/fullscreen drag test. I'll add it to new set of tests that verifies window dragging within workspace.
Review URL: http://codereview.chromium.org/8400063
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108192 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/window_observer.h')
-rw-r--r-- | ui/aura/window_observer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/aura/window_observer.h b/ui/aura/window_observer.h index 4d048c0..5e1e988 100644 --- a/ui/aura/window_observer.h +++ b/ui/aura/window_observer.h @@ -20,6 +20,10 @@ class AURA_EXPORT WindowObserver { // Invoked prior to removing |window|. virtual void OnWillRemoveWindow(Window* window) {} + // Invoked when |SetProperty| or |SetIntProperty| is called on |window|. + // |old| is the old property value. + virtual void OnPropertyChanged(Window* window, const char* key, void* old) {} + // Invoked when the SetVisible() is invoked on a window. |visible| is the // value supplied to SetVisible(). If |visible| is true, window->IsVisible() // may still return false. See description in Window::IsVisible() for details. |