| 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_APP_NON_CLIENT_FRAME_VIEW_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_APP_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_APP_NON_CLIENT_FRAME_VIEW_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_APP_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
| 10 | 10 |
| 11 namespace aura { | 11 namespace aura { |
| 12 class Window; | 12 class Window; |
| 13 } | 13 } |
| 14 | 14 |
| 15 // NonClientFrameViewAsh implementation for maximized apps. | 15 // NonClientFrameViewAsh implementation for maximized apps. |
| 16 class AppNonClientFrameViewAsh : public BrowserNonClientFrameView { | 16 class AppNonClientFrameViewAsh : public BrowserNonClientFrameView { |
| 17 public: | 17 public: |
| 18 static const char kViewClassName[]; // visible for test | 18 static const char kViewClassName[]; // visible for test |
| 19 static const char kControlWindowName[]; // visible for test | 19 static const char kControlWindowName[]; // visible for test |
| 20 | 20 |
| 21 AppNonClientFrameViewAsh( | 21 AppNonClientFrameViewAsh( |
| 22 BrowserFrame* frame, BrowserView* browser_view); | 22 BrowserFrame* frame, BrowserView* browser_view); |
| 23 virtual ~AppNonClientFrameViewAsh(); | 23 virtual ~AppNonClientFrameViewAsh(); |
| 24 | 24 |
| 25 // NonClientFrameView: | 25 // NonClientFrameView: |
| 26 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 26 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
| 27 virtual gfx::Rect GetWindowBoundsForClientBounds( | 27 virtual gfx::Rect GetWindowBoundsForClientBounds( |
| 28 const gfx::Rect& client_bounds) const OVERRIDE; | 28 const gfx::Rect& client_bounds) const OVERRIDE; |
| 29 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 29 virtual int NonClientHitTest(const gfx::Point& point) const OVERRIDE; |
| 30 virtual void GetWindowMask( | 30 virtual void GetWindowMask( |
| 31 const gfx::Size& size, | 31 const gfx::Size& size, |
| 32 gfx::Path* window_mask) OVERRIDE; | 32 gfx::Path* window_mask) OVERRIDE; |
| 33 virtual void ResetWindowControls() OVERRIDE; | 33 virtual void ResetWindowControls() OVERRIDE; |
| 34 virtual void UpdateWindowIcon() OVERRIDE; | 34 virtual void UpdateWindowIcon() OVERRIDE; |
| 35 virtual void UpdateWindowTitle() OVERRIDE; | 35 virtual void UpdateWindowTitle() OVERRIDE; |
| 36 | 36 |
| 37 // BrowserNonClientFrameView: | 37 // BrowserNonClientFrameView: |
| 38 virtual gfx::Rect GetBoundsForTabStrip( | 38 virtual gfx::Rect GetBoundsForTabStrip( |
| 39 views::View* tabstrip) const OVERRIDE; | 39 views::View* tabstrip) const OVERRIDE; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 58 ControlView* control_view_; | 58 ControlView* control_view_; |
| 59 // The widget holding the control_view_. | 59 // The widget holding the control_view_. |
| 60 views::Widget* control_widget_; | 60 views::Widget* control_widget_; |
| 61 // Observer for browser frame close. | 61 // Observer for browser frame close. |
| 62 scoped_ptr<FrameObserver> frame_observer_; | 62 scoped_ptr<FrameObserver> frame_observer_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(AppNonClientFrameViewAsh); | 64 DISALLOW_COPY_AND_ASSIGN(AppNonClientFrameViewAsh); |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_NON_CLIENT_FRAME_VIEW_ASH_H_ | 67 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_APP_NON_CLIENT_FRAME_VIEW_ASH_H_ |
| OLD | NEW |