| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BROWSER_FRAME_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_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 12 matching lines...) Expand all Loading... |
| 23 public NativeBrowserFrame { | 23 public NativeBrowserFrame { |
| 24 public: | 24 public: |
| 25 static const char kWindowName[]; | 25 static const char kWindowName[]; |
| 26 | 26 |
| 27 BrowserFrameAsh(BrowserFrame* browser_frame, BrowserView* browser_view); | 27 BrowserFrameAsh(BrowserFrame* browser_frame, BrowserView* browser_view); |
| 28 | 28 |
| 29 BrowserView* browser_view() const { return browser_view_; } | 29 BrowserView* browser_view() const { return browser_view_; } |
| 30 | 30 |
| 31 protected: | 31 protected: |
| 32 // Overridden from views::NativeWidgetAura: | 32 // Overridden from views::NativeWidgetAura: |
| 33 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; | 33 virtual void OnWindowDestroying(aura::Window* window) override; |
| 34 virtual void OnWindowTargetVisibilityChanged(bool visible) OVERRIDE; | 34 virtual void OnWindowTargetVisibilityChanged(bool visible) override; |
| 35 | 35 |
| 36 // Overridden from NativeBrowserFrame: | 36 // Overridden from NativeBrowserFrame: |
| 37 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; | 37 virtual views::NativeWidget* AsNativeWidget() override; |
| 38 virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE; | 38 virtual const views::NativeWidget* AsNativeWidget() const override; |
| 39 virtual bool UsesNativeSystemMenu() const OVERRIDE; | 39 virtual bool UsesNativeSystemMenu() const override; |
| 40 virtual int GetMinimizeButtonOffset() const OVERRIDE; | 40 virtual int GetMinimizeButtonOffset() const override; |
| 41 virtual bool ShouldSaveWindowPlacement() const OVERRIDE; | 41 virtual bool ShouldSaveWindowPlacement() const override; |
| 42 virtual void GetWindowPlacement( | 42 virtual void GetWindowPlacement( |
| 43 gfx::Rect* bounds, | 43 gfx::Rect* bounds, |
| 44 ui::WindowShowState* show_state) const OVERRIDE; | 44 ui::WindowShowState* show_state) const override; |
| 45 | 45 |
| 46 | 46 |
| 47 virtual ~BrowserFrameAsh(); | 47 virtual ~BrowserFrameAsh(); |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 class WindowPropertyWatcher; | 50 class WindowPropertyWatcher; |
| 51 | 51 |
| 52 // Set the window into the auto managed mode. | 52 // Set the window into the auto managed mode. |
| 53 void SetWindowAutoManaged(); | 53 void SetWindowAutoManaged(); |
| 54 | 54 |
| 55 // The BrowserView is our ClientView. This is a pointer to it. | 55 // The BrowserView is our ClientView. This is a pointer to it. |
| 56 BrowserView* browser_view_; | 56 BrowserView* browser_view_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(BrowserFrameAsh); | 58 DISALLOW_COPY_AND_ASSIGN(BrowserFrameAsh); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ | 61 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_ASH_H_ |
| OLD | NEW |