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-04 05:37:01 +0000
committertc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-04 05:37:01 +0000
commit0fbb214b6345b8490e559c1a4f8f66d704df72d2 (patch)
tree8f02c9e27ad87a1610e9adcf306507b233292eca /chrome/browser/browser.h
parent4c4d8d2b8aa8ae394d0f933700ddd9e682b141af (diff)
downloadchromium_src-0fbb214b6345b8490e559c1a4f8f66d704df72d2.zip
chromium_src-0fbb214b6345b8490e559c1a4f8f66d704df72d2.tar.gz
chromium_src-0fbb214b6345b8490e559c1a4f8f66d704df72d2.tar.bz2
Take 2 at moving SupportsWindowFeature from BrowserView
to Browser. Turns out the test regression was actually caused by r10806 which removed an anonymous namespace causing the TestView class to collide with the same class in render_widget_host_unittest.cc. For now, fix by adding the TestView in the view unittest to the anon namespace. shess is going to try to re-add the namespace to render_widget_host_unittest.cc too. TBR=pkasting Review URL: http://codereview.chromium.org/40058 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10873 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.