Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / views / frame / desktop_browser_frame_aura.h
blob0ad3f252a98ff2bcae07d8514b57dec0d872a4e0
1 // Copyright (c) 2012 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.
5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_
8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/views/frame/native_browser_frame.h"
11 #include "ui/views/context_menu_controller.h"
12 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
14 class BrowserDesktopWindowTreeHost;
15 class BrowserFrame;
16 class BrowserView;
18 namespace aura {
19 namespace client {
20 class UserActionClient;
24 namespace views {
25 namespace corewm {
26 class VisibilityController;
30 ////////////////////////////////////////////////////////////////////////////////
31 // DesktopBrowserFrameAura
33 // DesktopBrowserFrameAura is a DesktopNativeWidgetAura subclass that provides
34 // the window frame for the Chrome browser window.
36 class DesktopBrowserFrameAura : public views::DesktopNativeWidgetAura,
37 public NativeBrowserFrame {
38 public:
39 DesktopBrowserFrameAura(BrowserFrame* browser_frame,
40 BrowserView* browser_view);
42 BrowserView* browser_view() const { return browser_view_; }
44 protected:
45 virtual ~DesktopBrowserFrameAura();
47 // Overridden from views::DesktopNativeWidgetAura:
48 virtual void OnHostClosed() OVERRIDE;
49 virtual void InitNativeWidget(
50 const views::Widget::InitParams& params) OVERRIDE;
52 // Overridden from NativeBrowserFrame:
53 virtual views::NativeWidget* AsNativeWidget() OVERRIDE;
54 virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE;
55 virtual bool UsesNativeSystemMenu() const OVERRIDE;
56 virtual int GetMinimizeButtonOffset() const OVERRIDE;
58 private:
59 // The BrowserView is our ClientView. This is a pointer to it.
60 BrowserView* browser_view_;
61 BrowserFrame* browser_frame_;
63 // Owned by the RootWindow.
64 BrowserDesktopWindowTreeHost* browser_desktop_root_window_host_;
66 scoped_ptr<aura::client::UserActionClient> user_action_client_;
67 scoped_ptr<views::corewm::VisibilityController> visibility_controller_;
69 DISALLOW_COPY_AND_ASSIGN(DesktopBrowserFrameAura);
72 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_