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_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
7 | 7 |
8 #include "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/ui/search/search_types.h" | 10 #include "chrome/browser/ui/search/search_types.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 public: | 30 public: |
31 static const char kViewClassName[]; | 31 static const char kViewClassName[]; |
32 | 32 |
33 BrowserNonClientFrameViewAsh(BrowserFrame* frame, BrowserView* browser_view); | 33 BrowserNonClientFrameViewAsh(BrowserFrame* frame, BrowserView* browser_view); |
34 virtual ~BrowserNonClientFrameViewAsh(); | 34 virtual ~BrowserNonClientFrameViewAsh(); |
35 | 35 |
36 void Init(); | 36 void Init(); |
37 | 37 |
38 // BrowserNonClientFrameView overrides: | 38 // BrowserNonClientFrameView overrides: |
39 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; | 39 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; |
40 virtual int GetHorizontalTabStripVerticalOffset( | 40 virtual TabStripInsets GetTabStripInsets(bool force_restored) const OVERRIDE; |
41 bool force_restored) const OVERRIDE; | |
42 virtual void UpdateThrobber(bool running) OVERRIDE; | 41 virtual void UpdateThrobber(bool running) OVERRIDE; |
43 | 42 |
44 // views::NonClientFrameView overrides: | 43 // views::NonClientFrameView overrides: |
45 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 44 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
46 virtual gfx::Rect GetWindowBoundsForClientBounds( | 45 virtual gfx::Rect GetWindowBoundsForClientBounds( |
47 const gfx::Rect& client_bounds) const OVERRIDE; | 46 const gfx::Rect& client_bounds) const OVERRIDE; |
48 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 47 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
49 virtual void GetWindowMask(const gfx::Size& size, | 48 virtual void GetWindowMask(const gfx::Size& size, |
50 gfx::Path* window_mask) OVERRIDE; | 49 gfx::Path* window_mask) OVERRIDE; |
51 virtual void ResetWindowControls() OVERRIDE; | 50 virtual void ResetWindowControls() OVERRIDE; |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 scoped_ptr<ash::FramePainter> frame_painter_; | 108 scoped_ptr<ash::FramePainter> frame_painter_; |
110 | 109 |
111 // If true the |size_button_| minimizes, otherwise it toggles between | 110 // If true the |size_button_| minimizes, otherwise it toggles between |
112 // maximized and restored. | 111 // maximized and restored. |
113 bool size_button_minimizes_; | 112 bool size_button_minimizes_; |
114 | 113 |
115 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); | 114 DISALLOW_COPY_AND_ASSIGN(BrowserNonClientFrameViewAsh); |
116 }; | 115 }; |
117 | 116 |
118 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ | 117 #endif // CHROME_BROWSER_UI_VIEWS_ASH_BROWSER_NON_CLIENT_FRAME_VIEW_ASH_H_ |
OLD | NEW |