diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-19 22:13:38 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-19 22:13:38 +0000 |
commit | 6aa614a9ac971f5b027eee0749f211883f1d6934 (patch) | |
tree | ab48ab3a1a3e6a9ebebc19f7579f55dd273ebae8 /ui/aura/window_observer.h | |
parent | 1d6ed7bc2007d2521d14f8bdaf1962ba499d0b81 (diff) | |
download | chromium_src-6aa614a9ac971f5b027eee0749f211883f1d6934.zip chromium_src-6aa614a9ac971f5b027eee0749f211883f1d6934.tar.gz chromium_src-6aa614a9ac971f5b027eee0749f211883f1d6934.tar.bz2 |
Reland "aura/chromeos: Avoid suspending while video is playing."
This reverts r118199, which was a revert of r118171.
aura::VideoPropertyWriter (not ash::VideoDetector -- made a
typo in the revert's description) was outliving the
ash::Shell singleton. Now we explicitly destroy the
VideoPropertyWriter before the shell.
The only differences from r118171 are the addition of the
final chunk in chrome_browser_main_chromeos.cc and a change
to reparent a window in VideoDetectorTest.WindowNotVisible
needed in response to r118259.
BUG=110114
TEST=avoided missing DCHECK on shutdown in trybot logs this time
Review URL: http://codereview.chromium.org/9254018
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118375 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 bd5138f..6055ef4 100644 --- a/ui/aura/window_observer.h +++ b/ui/aura/window_observer.h @@ -46,6 +46,10 @@ class AURA_EXPORT WindowObserver { // has changed. virtual void OnWindowStackingChanged(Window* window) {} + // Invoked when a region of |window| is scheduled to be redrawn. + virtual void OnWindowPaintScheduled(Window* window, + const gfx::Rect& region) {} + // Invoked when the Window is being destroyed (i.e. from the start of its // destructor). virtual void OnWindowDestroying(Window* window) {} |