Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3238)

Unified Diff: chrome/browser/ui/views/frame/browser_frame.h

Issue 146363002: Linux Aura: Use system title bar is now set by preference, not flag. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename BrowserView pref registration functions. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/browser_view_prefs.cc ('k') | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/frame/browser_frame.h
diff --git a/chrome/browser/ui/views/frame/browser_frame.h b/chrome/browser/ui/views/frame/browser_frame.h
index 8346db4537984747a44ec37d25c3d934798009f6..fa379b2e0d99fce63358f69b918204e2d813b67c 100644
--- a/chrome/browser/ui/views/frame/browser_frame.h
+++ b/chrome/browser/ui/views/frame/browser_frame.h
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "base/logging.h"
+#include "base/prefs/pref_member.h"
#include "build/build_config.h"
#include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
#include "ui/views/context_menu_controller.h"
@@ -74,6 +75,9 @@ class BrowserFrame
// Returns the NonClientFrameView of this frame.
views::View* GetFrameView() const;
+ // Returns |true| if we should use the custom frame.
+ bool UseCustomFrame() const;
+
// Overridden from views::Widget:
virtual views::internal::RootView* CreateRootView() OVERRIDE;
virtual views::NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
@@ -102,6 +106,9 @@ class BrowserFrame
ui::MenuModel* GetSystemMenuModel();
private:
+ // Called when the preference changes.
+ void OnUseCustomChromeFrameChanged();
+
NativeBrowserFrame* native_browser_frame_;
// A weak reference to the root view associated with the window. We save a
@@ -128,6 +135,9 @@ class BrowserFrame
scoped_ptr<ui::ThemeProvider> owned_theme_provider_;
ui::ThemeProvider* theme_provider_;
+ // Whether the custom Chrome frame preference is set.
+ BooleanPrefMember use_custom_frame_pref_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserFrame);
};
« no previous file with comments | « chrome/browser/ui/browser_view_prefs.cc ('k') | chrome/browser/ui/views/frame/browser_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698