diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 19:49:45 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-28 19:49:45 +0000 |
commit | de9d5d97323ee797e3b41fe98545ba2aecf451e8 (patch) | |
tree | da43e2a6ef4f3fb57ee0afefea247968df799ed4 /chrome/browser/gtk/browser_window_gtk.h | |
parent | 9154c36eb5f87dc90ece4b4c8492a7d15b6e5469 (diff) | |
download | chromium_src-de9d5d97323ee797e3b41fe98545ba2aecf451e8.zip chromium_src-de9d5d97323ee797e3b41fe98545ba2aecf451e8.tar.gz chromium_src-de9d5d97323ee797e3b41fe98545ba2aecf451e8.tar.bz2 |
Disable the custom frame on app mode windows. This includes the
dev tools window.
It makes app mode windows feel a lot more native.
BUG=16474
Review URL: http://codereview.chromium.org/183002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24778 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/browser_window_gtk.h')
-rw-r--r-- | chrome/browser/gtk/browser_window_gtk.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chrome/browser/gtk/browser_window_gtk.h b/chrome/browser/gtk/browser_window_gtk.h index 7a35e9f..d186aa5 100644 --- a/chrome/browser/gtk/browser_window_gtk.h +++ b/chrome/browser/gtk/browser_window_gtk.h @@ -290,6 +290,9 @@ class BrowserWindowGtk : public BrowserWindow, // it should and sets |edge|. bool GetWindowEdge(int x, int y, GdkWindowEdge* edge); + // Returns |true| if we should use the custom frame. + bool UseCustomFrame(); + // Determine whether we use should default to native decorations or the custom // frame based on the currently-running window manager. static bool GetCustomFramePrefDefault(); @@ -340,9 +343,10 @@ class BrowserWindowGtk : public BrowserWindow, // The timer used to update frames for the Loading Animation. base::RepeatingTimer<BrowserWindowGtk> loading_animation_timer_; - // Whether we're showing the custom chrome frame or the window manager - // decorations. - BooleanPrefMember use_custom_frame_; + // Whether the custom chrome frame pref is set. Normally you want to use + // UseCustomFrame() above to determine whether to use the custom frame or + // not. + BooleanPrefMember use_custom_frame_pref_; #if defined(OS_CHROMEOS) // True if a drag is active. See description above setter for details. |