| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/ui/views/frame/native_browser_frame.h" | 10 #include "chrome/browser/ui/views/frame/native_browser_frame.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 const views::Widget::InitParams& params) OVERRIDE; | 41 const views::Widget::InitParams& params) OVERRIDE; |
| 42 virtual void OnWindowDestroying() OVERRIDE; | 42 virtual void OnWindowDestroying() OVERRIDE; |
| 43 | 43 |
| 44 // Overridden from NativeBrowserFrame: | 44 // Overridden from NativeBrowserFrame: |
| 45 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; | 45 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; |
| 46 virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE; | 46 virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE; |
| 47 virtual bool UsesNativeSystemMenu() const OVERRIDE; | 47 virtual bool UsesNativeSystemMenu() const OVERRIDE; |
| 48 virtual int GetMinimizeButtonOffset() const OVERRIDE; | 48 virtual int GetMinimizeButtonOffset() const OVERRIDE; |
| 49 virtual void TabStripDisplayModeChanged() OVERRIDE; | 49 virtual void TabStripDisplayModeChanged() OVERRIDE; |
| 50 | 50 |
| 51 // Overridden from views::DesktopNativeWidgetAura. |
| 52 virtual bool ShouldUseNativeFrame() const OVERRIDE; |
| 53 |
| 51 private: | 54 private: |
| 52 virtual ~DesktopBrowserFrameAura(); | 55 virtual ~DesktopBrowserFrameAura(); |
| 53 | 56 |
| 54 // The BrowserView is our ClientView. This is a pointer to it. | 57 // The BrowserView is our ClientView. This is a pointer to it. |
| 55 BrowserView* browser_view_; | 58 BrowserView* browser_view_; |
| 56 BrowserFrame* browser_frame_; | 59 BrowserFrame* browser_frame_; |
| 57 | 60 |
| 58 // Owned by the RootWindow. | 61 // Owned by the RootWindow. |
| 59 BrowserDesktopRootWindowHost* browser_desktop_root_window_host_; | 62 BrowserDesktopRootWindowHost* browser_desktop_root_window_host_; |
| 60 | 63 |
| 61 scoped_ptr<views::corewm::VisibilityController> visibility_controller_; | 64 scoped_ptr<views::corewm::VisibilityController> visibility_controller_; |
| 62 | 65 |
| 63 DISALLOW_COPY_AND_ASSIGN(DesktopBrowserFrameAura); | 66 DISALLOW_COPY_AND_ASSIGN(DesktopBrowserFrameAura); |
| 64 }; | 67 }; |
| 65 | 68 |
| 66 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_ | 69 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_DESKTOP_BROWSER_FRAME_AURA_H_ |
| OLD | NEW |