OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 // Returns the size of the non-client area, that is, the window size minus | 52 // Returns the size of the non-client area, that is, the window size minus |
53 // the size of the client area. | 53 // the size of the client area. |
54 gfx::Size NonClientAreaSize() const; | 54 gfx::Size NonClientAreaSize() const; |
55 | 55 |
56 protected: | 56 protected: |
57 // Overridden from BrowserNonClientFrameView: | 57 // Overridden from BrowserNonClientFrameView: |
58 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; | 58 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; |
59 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; | 59 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; |
60 virtual void UpdateThrobber(bool running) OVERRIDE; | 60 virtual void UpdateThrobber(bool running) OVERRIDE; |
| 61 virtual AvatarMenuButton* GetAvatarMenuButton() OVERRIDE; |
61 | 62 |
62 // Overridden from views::NonClientFrameView: | 63 // Overridden from views::NonClientFrameView: |
63 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 64 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
64 virtual gfx::Rect GetWindowBoundsForClientBounds( | 65 virtual gfx::Rect GetWindowBoundsForClientBounds( |
65 const gfx::Rect& client_bounds) const OVERRIDE; | 66 const gfx::Rect& client_bounds) const OVERRIDE; |
66 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 67 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
67 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 68 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
68 OVERRIDE; | 69 OVERRIDE; |
69 virtual void EnableClose(bool enable) OVERRIDE; | 70 virtual void EnableClose(bool enable) OVERRIDE; |
70 virtual void ResetWindowControls() OVERRIDE; | 71 virtual void ResetWindowControls() OVERRIDE; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 // Used to animate the visibility change of settings button. | 196 // Used to animate the visibility change of settings button. |
196 scoped_ptr<ui::SlideAnimation> settings_button_animator_; | 197 scoped_ptr<ui::SlideAnimation> settings_button_animator_; |
197 gfx::Rect settings_button_full_bounds_; | 198 gfx::Rect settings_button_full_bounds_; |
198 gfx::Rect settings_button_zero_bounds_; | 199 gfx::Rect settings_button_zero_bounds_; |
199 bool is_settings_button_visible_; | 200 bool is_settings_button_visible_; |
200 | 201 |
201 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); | 202 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); |
202 }; | 203 }; |
203 | 204 |
204 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 205 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |