| 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 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 | 29 |
| 30 class PanelBrowserFrameView : public BrowserNonClientFrameView, | 30 class PanelBrowserFrameView : public BrowserNonClientFrameView, |
| 31 public views::ButtonListener, | 31 public views::ButtonListener, |
| 32 public TabIconView::TabIconViewModel { | 32 public TabIconView::TabIconViewModel { |
| 33 public: | 33 public: |
| 34 PanelBrowserFrameView(BrowserFrame* frame, PanelBrowserView* browser_view); | 34 PanelBrowserFrameView(BrowserFrame* frame, PanelBrowserView* browser_view); |
| 35 virtual ~PanelBrowserFrameView(); | 35 virtual ~PanelBrowserFrameView(); |
| 36 | 36 |
| 37 void UpdateTitleBar(); | 37 void UpdateTitleBar(); |
| 38 void UpdateTitleBarMinimizeRestoreButtonVisibility(); |
| 38 | 39 |
| 39 // Returns the height of the entire nonclient top border, including the window | 40 // Returns the height of the entire nonclient top border, including the window |
| 40 // frame, any title area, and any connected client edge. | 41 // frame, any title area, and any connected client edge. |
| 41 int NonClientTopBorderHeight() const; | 42 int NonClientTopBorderHeight() const; |
| 42 | 43 |
| 43 // Returns the size of the non-client area, that is, the window size minus | 44 // Returns the size of the non-client area, that is, the window size minus |
| 44 // the size of the client area. | 45 // the size of the client area. |
| 45 gfx::Size NonClientAreaSize() const; | 46 gfx::Size NonClientAreaSize() const; |
| 46 | 47 |
| 47 // Returns true if the frame window is showing only the titlebar. | 48 // Returns true if the frame window is showing only the titlebar. |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 views::ImageButton* minimize_button_; | 130 views::ImageButton* minimize_button_; |
| 130 views::ImageButton* restore_button_; | 131 views::ImageButton* restore_button_; |
| 131 TabIconView* title_icon_; | 132 TabIconView* title_icon_; |
| 132 views::Label* title_label_; | 133 views::Label* title_label_; |
| 133 gfx::Rect client_view_bounds_; | 134 gfx::Rect client_view_bounds_; |
| 134 | 135 |
| 135 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); | 136 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); |
| 136 }; | 137 }; |
| 137 | 138 |
| 138 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 139 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |