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

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

Issue 796433003: MacViews: Don't draw custom frame on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keybinding3
Patch Set: Created 5 years, 11 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
Index: chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.h
diff --git a/chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.h b/chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.h
new file mode 100644
index 0000000000000000000000000000000000000000..428c722b5515f3da96cc7c258d13c93ef456f8b1
--- /dev/null
+++ b/chrome/browser/ui/views/frame/desktop_browser_frame_auralinux.h
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURALINUX_H_
+#define CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURALINUX_H_
+
+#include "base/prefs/pref_member.h"
+#include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h"
+
+// Provides the window frame for the Chrome browser window on Desktop Linux.
+class DesktopBrowserFrameAuraLinux : public DesktopBrowserFrameAura {
+ public:
+ DesktopBrowserFrameAuraLinux(BrowserFrame* browser_frame,
+ BrowserView* browser_view);
+
+ protected:
+ ~DesktopBrowserFrameAuraLinux() override;
+
+ // Overridden from NativeBrowserFrame:
+ views::Widget::InitParams GetWidgetParams() override;
+ bool UseCustomFrame() const override;
+
+ private:
+ // Called when the preference changes.
+ void OnUseCustomChromeFrameChanged();
+
+ // Whether the custom Chrome frame preference is set.
+ BooleanPrefMember use_custom_frame_pref_;
+
+ DISALLOW_COPY_AND_ASSIGN(DesktopBrowserFrameAuraLinux);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURALINUX_H_

Powered by Google App Engine
This is Rietveld 408576698