summaryrefslogtreecommitdiffstats
path: root/views/window/window.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 14:51:36 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-19 14:51:36 +0000
commit6c8c80e7b1b85f30ad4c6626a9ec3f31818086da (patch)
treea066456b010b480d579b214ecffee48b3cb75057 /views/window/window.h
parent3c4beb226d1f279685d82861a062b599401cd2a9 (diff)
downloadchromium_src-6c8c80e7b1b85f30ad4c6626a9ec3f31818086da.zip
chromium_src-6c8c80e7b1b85f30ad4c6626a9ec3f31818086da.tar.gz
chromium_src-6c8c80e7b1b85f30ad4c6626a9ec3f31818086da.tar.bz2
Factor out a BrowserFrame interface, and move the existing Windows-based code
to a new class: BrowserFrameWin. The major other change I had to make was the way that the TabStrip is set in the BrowserRootView. Now there is a method on the frame that the view can call when it creats the tabstrip that will set the tabstrip on the root view. Review URL: http://codereview.chromium.org/113511 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16373 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/window/window.h')
-rw-r--r--views/window/window.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/views/window/window.h b/views/window/window.h
index 9d29a81..bb618ed 100644
--- a/views/window/window.h
+++ b/views/window/window.h
@@ -62,6 +62,20 @@ class Window {
// Makes the window visible.
virtual void Show() = 0;
+ // Hides the window. This does not delete the window, it just hides it. This
+ // always hides the window, it is separate from the stack maintained by
+ // Push/PopForceHidden.
+ virtual void HideWindow() = 0;
+
+ // Hides the window if it hasn't already been force-hidden. The force hidden
+ // count is tracked, so calling multiple times is allowed, you just have to
+ // be sure to call PopForceHidden the same number of times.
+ virtual void PushForceHidden() = 0;
+
+ // Decrements the force hidden count, showing the window if we have reached
+ // the top of the stack. See PushForceHidden.
+ virtual void PopForceHidden() = 0;
+
// Activate the window, assuming it already exists and is visible.
virtual void Activate() = 0;