diff options
author | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-14 21:35:59 +0000 |
---|---|---|
committer | beng@google.com <beng@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-14 21:35:59 +0000 |
commit | 5623c4aa4307e2a4843ffca845d8bc2c932d110a (patch) | |
tree | 60caf94fcc4c44514af3ff199a5ed2eb8a131eef /views/window/window_delegate.h | |
parent | 9f0728516ece1c689a11332819c9bd0be83dd6f2 (diff) | |
download | chromium_src-5623c4aa4307e2a4843ffca845d8bc2c932d110a.zip chromium_src-5623c4aa4307e2a4843ffca845d8bc2c932d110a.tar.gz chromium_src-5623c4aa4307e2a4843ffca845d8bc2c932d110a.tar.bz2 |
Move Always On Top setting out of Window/WindowDelegate and into task manager. It's the only one who uses this setting and the UI for exposing it is very specific to the task manager. Window retains a setter to set always on top state, but persistence and the system menu is Task Manager's responsbility. This allows us to sever the second-to-last chrome dependency from views.
http://crbug.com/11674
Review URL: http://codereview.chromium.org/115378
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16107 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window/window_delegate.h')
-rw-r--r-- | views/window/window_delegate.h | 34 |
1 files changed, 7 insertions, 27 deletions
diff --git a/views/window/window_delegate.h b/views/window/window_delegate.h index 992e94a..e790ff6 100644 --- a/views/window/window_delegate.h +++ b/views/window/window_delegate.h @@ -53,20 +53,6 @@ class WindowDelegate { return false; } - // Returns true if the window should be placed on top of all other windows on - // the system, even when it is not active. If HasAlwaysOnTopMenu() returns - // true, then this method is only used the first time the window is opened, it - // is stored in the preferences for next runs. - virtual bool IsAlwaysOnTop() const { - return false; - } - - // Returns whether an "always on top" menu should be added to the system menu - // of the window. - virtual bool HasAlwaysOnTopMenu() const { - return false; - } - // Returns true if the dialog should be displayed modally to the window that // opened it. Only windows with WindowType == DIALOG can be modal. virtual bool IsModal() const { @@ -105,21 +91,15 @@ class WindowDelegate { return std::wstring(); } - // Saves the window's bounds, maximized and always-on-top states. By default - // this uses the process' local state keyed by window name (See GetWindowName - // above). This behavior can be overridden to provide additional - // functionality. - virtual void SaveWindowPlacement(const gfx::Rect& bounds, - bool maximized, - bool always_on_top); - - // Retrieves the window's bounds, maximized and always-on-top states. By - // default, this uses the process' local state keyed by window name (See - // GetWindowName above). This behavior can be overridden to provide - // additional functionality. + // Saves the window's bounds and maximized states. By default this uses the + // process' local state keyed by window name (See GetWindowName above). This + // behavior can be overridden to provide additional functionality. + virtual void SaveWindowPlacement(const gfx::Rect& bounds, bool maximized); + + // Retrieves the window's bounds and maximized states. + // This behavior can be overridden to provide additional functionality. virtual bool GetSavedWindowBounds(gfx::Rect* bounds) const; virtual bool GetSavedMaximizedState(bool* maximized) const; - virtual bool GetSavedAlwaysOnTopState(bool* always_on_top) const; // Called when the window closes. virtual void WindowClosing() { } |