OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURALINUX_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURALINUX_H_ |
| 7 |
| 8 #include "base/prefs/pref_member.h" |
| 9 #include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h" |
| 10 |
| 11 // Provides the window frame for the Chrome browser window on Desktop Linux. |
| 12 class DesktopBrowserFrameAuraLinux : public DesktopBrowserFrameAura { |
| 13 public: |
| 14 DesktopBrowserFrameAuraLinux(BrowserFrame* browser_frame, |
| 15 BrowserView* browser_view); |
| 16 |
| 17 protected: |
| 18 ~DesktopBrowserFrameAuraLinux() override; |
| 19 |
| 20 // Overridden from NativeBrowserFrame: |
| 21 views::Widget::InitParams GetWidgetParams() override; |
| 22 bool UseCustomFrame() const override; |
| 23 |
| 24 private: |
| 25 // Called when the preference changes. |
| 26 void OnUseCustomChromeFrameChanged(); |
| 27 |
| 28 // Whether the custom Chrome frame preference is set. |
| 29 BooleanPrefMember use_custom_frame_pref_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(DesktopBrowserFrameAuraLinux); |
| 32 }; |
| 33 |
| 34 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURALINUX_H_ |
OLD | NEW |