| 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_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 26 matching lines...) Expand all Loading... |
| 37 void UpdateTitleBar(); | 37 void UpdateTitleBar(); |
| 38 | 38 |
| 39 // Returns the height of the entire nonclient top border, including the window | 39 // Returns the height of the entire nonclient top border, including the window |
| 40 // frame, any title area, and any connected client edge. | 40 // frame, any title area, and any connected client edge. |
| 41 int NonClientTopBorderHeight() const; | 41 int NonClientTopBorderHeight() const; |
| 42 | 42 |
| 43 // Returns the size of the non-client area, that is, the window size minus | 43 // Returns the size of the non-client area, that is, the window size minus |
| 44 // the size of the client area. | 44 // the size of the client area. |
| 45 gfx::Size NonClientAreaSize() const; | 45 gfx::Size NonClientAreaSize() const; |
| 46 | 46 |
| 47 // Returns the size of the non-client area upon which only the title icon | |
| 48 // is drawn. | |
| 49 gfx::Size IconOnlySize() const; | |
| 50 | |
| 51 // Returns true if the frame window is showing only the titlebar. | 47 // Returns true if the frame window is showing only the titlebar. |
| 52 bool IsShowingTitlebarOnly() const; | 48 bool IsShowingTitlebarOnly() const; |
| 53 | 49 |
| 54 protected: | 50 protected: |
| 55 // Overridden from BrowserNonClientFrameView: | 51 // Overridden from BrowserNonClientFrameView: |
| 56 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; | 52 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; |
| 57 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; | 53 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; |
| 58 virtual void UpdateThrobber(bool running) OVERRIDE; | 54 virtual void UpdateThrobber(bool running) OVERRIDE; |
| 59 | 55 |
| 60 // Overridden from views::NonClientFrameView: | 56 // Overridden from views::NonClientFrameView: |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 views::ImageButton* minimize_button_; | 129 views::ImageButton* minimize_button_; |
| 134 views::ImageButton* restore_button_; | 130 views::ImageButton* restore_button_; |
| 135 TabIconView* title_icon_; | 131 TabIconView* title_icon_; |
| 136 views::Label* title_label_; | 132 views::Label* title_label_; |
| 137 gfx::Rect client_view_bounds_; | 133 gfx::Rect client_view_bounds_; |
| 138 | 134 |
| 139 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); | 135 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); |
| 140 }; | 136 }; |
| 141 | 137 |
| 142 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 138 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |