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 29 matching lines...) Expand all Loading... |
40 void UpdateTitleBar(); | 40 void UpdateTitleBar(); |
41 void OnFocusChanged(bool focused); | 41 void OnFocusChanged(bool focused); |
42 | 42 |
43 // Returns the height of the entire nonclient top border, including the window | 43 // Returns the height of the entire nonclient top border, including the window |
44 // frame, any title area, and any connected client edge. | 44 // frame, any title area, and any connected client edge. |
45 int NonClientTopBorderHeight() const; | 45 int NonClientTopBorderHeight() const; |
46 | 46 |
47 // Returns the height of the panel in minimized state. | 47 // Returns the height of the panel in minimized state. |
48 static int MinimizedPanelHeight(); | 48 static int MinimizedPanelHeight(); |
49 | 49 |
| 50 // Returns the size of the non-client area, that is, the window size minus |
| 51 // the size of the client area. |
| 52 gfx::Size NonClientAreaSize() const; |
| 53 |
50 protected: | 54 protected: |
51 // Overridden from BrowserNonClientFrameView: | 55 // Overridden from BrowserNonClientFrameView: |
52 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; | 56 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; |
53 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; | 57 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; |
54 virtual void UpdateThrobber(bool running) OVERRIDE; | 58 virtual void UpdateThrobber(bool running) OVERRIDE; |
55 | 59 |
56 // Overridden from views::NonClientFrameView: | 60 // Overridden from views::NonClientFrameView: |
57 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 61 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
58 virtual gfx::Rect GetWindowBoundsForClientBounds( | 62 virtual gfx::Rect GetWindowBoundsForClientBounds( |
59 const gfx::Rect& client_bounds) const OVERRIDE; | 63 const gfx::Rect& client_bounds) const OVERRIDE; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 views::MenuModelAdapter settings_menu_adapter_; | 200 views::MenuModelAdapter settings_menu_adapter_; |
197 // Owned by |settings_menu_runner_|. | 201 // Owned by |settings_menu_runner_|. |
198 views::MenuItemView* settings_menu_; | 202 views::MenuItemView* settings_menu_; |
199 views::MenuRunner settings_menu_runner_; | 203 views::MenuRunner settings_menu_runner_; |
200 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; | 204 scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_; |
201 | 205 |
202 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); | 206 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); |
203 }; | 207 }; |
204 | 208 |
205 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 209 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |