| 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/macros.h" | |
| 9 #include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h" | |
| 10 #include "components/prefs/pref_member.h" | |
| 11 | |
| 12 // Provides the window frame for the Chrome browser window on Desktop Linux. | |
| 13 class DesktopBrowserFrameAuraLinux : public DesktopBrowserFrameAura { | |
| 14 public: | |
| 15 DesktopBrowserFrameAuraLinux(BrowserFrame* browser_frame, | |
| 16 BrowserView* browser_view); | |
| 17 | |
| 18 protected: | |
| 19 ~DesktopBrowserFrameAuraLinux() override; | |
| 20 | |
| 21 // Overridden from NativeBrowserFrame: | |
| 22 views::Widget::InitParams GetWidgetParams() override; | |
| 23 bool UseCustomFrame() const override; | |
| 24 | |
| 25 private: | |
| 26 // Called when the preference changes. | |
| 27 void OnUseCustomChromeFrameChanged(); | |
| 28 | |
| 29 // Whether the custom Chrome frame preference is set. | |
| 30 BooleanPrefMember use_custom_frame_pref_; | |
| 31 | |
| 32 DISALLOW_COPY_AND_ASSIGN(DesktopBrowserFrameAuraLinux); | |
| 33 }; | |
| 34 | |
| 35 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURALINUX_H_ | |
| OLD | NEW |