summaryrefslogtreecommitdiffstats
path: root/ui/views/widget/native_widget_aura.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-05 18:11:21 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-05 18:11:21 +0000
commitbac66d44105fec443fe88e39f0153fb3d75dab40 (patch)
treebafe71233adbb5e2c8c666d6623a0f047ae37525 /ui/views/widget/native_widget_aura.h
parentacb3b69cb8757f743475d8eebcecc1dbc0f59ccc (diff)
downloadchromium_src-bac66d44105fec443fe88e39f0153fb3d75dab40.zip
chromium_src-bac66d44105fec443fe88e39f0153fb3d75dab40.tar.gz
chromium_src-bac66d44105fec443fe88e39f0153fb3d75dab40.tar.bz2
Aura/ash split: Desktop linux clients should respsect window manager close window events.
BUG=121725 TEST=none Review URL: https://chromiumcodereview.appspot.com/9969126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130971 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/widget/native_widget_aura.h')
-rw-r--r--ui/views/widget/native_widget_aura.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/views/widget/native_widget_aura.h b/ui/views/widget/native_widget_aura.h
index 2621918..4733c07 100644
--- a/ui/views/widget/native_widget_aura.h
+++ b/ui/views/widget/native_widget_aura.h
@@ -10,6 +10,7 @@
#include "base/memory/weak_ptr.h"
#include "ui/aura/client/activation_delegate.h"
#include "ui/aura/client/drag_drop_delegate.h"
+#include "ui/aura/root_window_observer.h"
#include "ui/aura/window_delegate.h"
#include "ui/base/events.h"
#include "ui/views/views_export.h"
@@ -30,6 +31,7 @@ class TooltipManagerAura;
class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate,
public aura::WindowDelegate,
+ public aura::RootWindowObserver,
public aura::client::ActivationDelegate,
public aura::client::DragDropDelegate {
public:
@@ -149,6 +151,9 @@ class VIEWS_EXPORT NativeWidgetAura : public internal::NativeWidgetPrivate,
virtual void OnWindowDestroyed() OVERRIDE;
virtual void OnWindowVisibilityChanged(bool visible) OVERRIDE;
+ // Overridden from aura::RootWindowObserver:
+ virtual void OnRootWindowHostClosed(const aura::RootWindow* root) OVERRIDE;
+
// Overridden from aura::client::ActivationDelegate:
virtual bool ShouldActivate(const aura::Event* event) OVERRIDE;
virtual void OnActivated() OVERRIDE;