blob: 87f231ba3500d54fc82d443db0cb6f2a0b76d3b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// 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/macros.h"
#include "chrome/browser/ui/views/frame/desktop_browser_frame_aura.h"
#include "components/prefs/pref_member.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_
|