summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser.h
diff options
context:
space:
mode:
authortc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 17:47:41 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-03 17:47:41 +0000
commit06f926ef567e9a6d4b29e00e1c8457bd7182bc99 (patch)
treea0604884f155b5d9829ce3fda1e9aa51d46bfa2f /chrome/browser/browser.h
parentc50d0d442ccba35b3455b69e4114955d7e265e56 (diff)
downloadchromium_src-06f926ef567e9a6d4b29e00e1c8457bd7182bc99.zip
chromium_src-06f926ef567e9a6d4b29e00e1c8457bd7182bc99.tar.gz
chromium_src-06f926ef567e9a6d4b29e00e1c8457bd7182bc99.tar.bz2
Move SupportsWindowFeature from BrowserView to Browser so
we can share the code on all platforms. I still left a SupportsWindowFeature method in BrowserView that handles fullscreen mode which is (for now) a Windows specific feature. Review URL: http://codereview.chromium.org/27372 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10804 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser.h')
-rw-r--r--chrome/browser/browser.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index 3fa7973..df519a1 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.h
@@ -57,6 +57,17 @@ class Browser : public TabStripModelDelegate,
TYPE_APP_POPUP = TYPE_APP | TYPE_POPUP,
};
+ // Possible elements of the Browser window.
+ enum WindowFeature {
+ FEATURE_TITLEBAR = 1,
+ FEATURE_TABSTRIP = 2,
+ FEATURE_TOOLBAR = 4,
+ FEATURE_LOCATIONBAR = 8,
+ FEATURE_BOOKMARKBAR = 16,
+ FEATURE_INFOBAR = 32,
+ FEATURE_DOWNLOADSHELF = 64
+ };
+
// Constructors, Creation, Showing //////////////////////////////////////////
// Creates a new browser of the given |type| and for the given |profile|. The
@@ -256,6 +267,9 @@ class Browser : public TabStripModelDelegate,
// Show various bits of UI.
void ShowDownloadsTab();
+ // Returns true if the Browser supports the specified feature.
+ bool SupportsWindowFeature(WindowFeature feature) const;
+
// TODO(port): port these, and re-merge the two function declaration lists.
#if defined(OS_WIN)
// Page-related commands.