summaryrefslogtreecommitdiffstats
path: root/chrome/views/window.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 18:26:36 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 18:26:36 +0000
commit02b9cd6fa95f4797bb23dff09ac5a0a0529f2e9c (patch)
treec9d1378a22acc3363c15ae96a42722c4a3c6f382 /chrome/views/window.h
parentdfb96df122af2da6adc25320742ae44aede063de (diff)
downloadchromium_src-02b9cd6fa95f4797bb23dff09ac5a0a0529f2e9c.zip
chromium_src-02b9cd6fa95f4797bb23dff09ac5a0a0529f2e9c.tar.gz
chromium_src-02b9cd6fa95f4797bb23dff09ac5a0a0529f2e9c.tar.bz2
Revert "revert r8217 until memory tests are fixed." This re-applies r8217.
This reverts commit r8245. TBR=ben Review URL: http://codereview.chromium.org/18410 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8292 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views/window.h')
-rw-r--r--chrome/views/window.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/chrome/views/window.h b/chrome/views/window.h
index bdd3d6d..c1c097f 100644
--- a/chrome/views/window.h
+++ b/chrome/views/window.h
@@ -5,6 +5,7 @@
#ifndef CHROME_VIEWS_WINDOW_H__
#define CHROME_VIEWS_WINDOW_H__
+#include "chrome/common/notification_service.h"
#include "chrome/views/widget_win.h"
namespace gfx {
@@ -30,7 +31,8 @@ class WindowDelegate;
// rendered by the operating system.
//
///////////////////////////////////////////////////////////////////////////////
-class Window : public WidgetWin {
+class Window : public WidgetWin,
+ public NotificationObserver {
public:
virtual ~Window();
@@ -121,6 +123,11 @@ class Window : public WidgetWin {
static gfx::Size GetLocalizedContentsSize(int col_resource_id,
int row_resource_id);
+ // NotificationObserver overrides:
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
protected:
// Constructs the Window. |window_delegate| cannot be NULL.
explicit Window(WindowDelegate* window_delegate);
@@ -143,6 +150,11 @@ class Window : public WidgetWin {
// Sizes the window to the default size specified by its ClientView.
virtual void SizeWindowToDefault();
+ // Returns true if the Window is considered to be an "app window" - i.e. any
+ // window which when it is the last of its type closed causes the application
+ // to exit.
+ virtual bool IsAppWindow() const { return false; }
+
void set_client_view(ClientView* client_view) { client_view_ = client_view; }
// Shows the system menu at the specified screen point.