summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/views/frame/browser_frame.h
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-17 20:20:00 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-17 20:20:00 +0000
commite941a283e5b107f0c0a3595d0b6e11d7259d833f (patch)
tree27f886fcad4f9ef980e3638dfbc00ccf5f96a868 /chrome/browser/ui/views/frame/browser_frame.h
parentc4bdfe6586f6dd43c69102e4306872da504a1942 (diff)
downloadchromium_src-e941a283e5b107f0c0a3595d0b6e11d7259d833f.zip
chromium_src-e941a283e5b107f0c0a3595d0b6e11d7259d833f.tar.gz
chromium_src-e941a283e5b107f0c0a3595d0b6e11d7259d833f.tar.bz2
Consolidate ShouldUseNativeFrame/AlwaysUseNativeFrame/UseNativeFrame spaghetti.
Now there is: ... window::ShouldUseNativeFrame() Which is basically just a pass-thru to WindowWin::ShouldUseNativeFrame() ... which can be overridden by subclasses. Native-Frame is a windows-only concept but keeping the API on Window means I don't have to update a lot of call sites. Window also gains a FrameType state member that toggles three states - default, force-native and force-custom. This supercedes the "AlwaysUseNativeFrame/AlwaysUseCustomFrame" methods on NonClientView. I have also hooked up a context menu item behind a command line flag --debug-enable-frame-toggle that allows the frame type for an individual window to be toggled, useful for debugging. BUG=none TEST=none Review URL: http://codereview.chromium.org/7036014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85666 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/views/frame/browser_frame.h')
-rw-r--r--chrome/browser/ui/views/frame/browser_frame.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/ui/views/frame/browser_frame.h b/chrome/browser/ui/views/frame/browser_frame.h
index 2c07fd2..8747bed 100644
--- a/chrome/browser/ui/views/frame/browser_frame.h
+++ b/chrome/browser/ui/views/frame/browser_frame.h
@@ -61,11 +61,6 @@ class BrowserFrame : public views::Window {
// Tells the frame to update the throbber.
void UpdateThrobber(bool running);
- // Returns true if the window should use the native frame view. This is true
- // if there are no themes applied on Vista, or if there are themes applied and
- // this browser window is an app or popup.
- bool AlwaysUseNativeFrame() const;
-
// Returns the NonClientFrameView of this frame.
views::View* GetFrameView() const;