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 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 // Returns the size of the non-client area, that is, the window size minus | 45 // Returns the size of the non-client area, that is, the window size minus |
46 // the size of the client area. | 46 // the size of the client area. |
47 gfx::Size NonClientAreaSize() const; | 47 gfx::Size NonClientAreaSize() const; |
48 | 48 |
49 // Returns true if the frame window is showing only the titlebar. | 49 // Returns true if the frame window is showing only the titlebar. |
50 bool IsShowingTitlebarOnly() const; | 50 bool IsShowingTitlebarOnly() const; |
51 | 51 |
52 protected: | 52 protected: |
53 // Overridden from BrowserNonClientFrameView: | 53 // Overridden from BrowserNonClientFrameView: |
54 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; | 54 virtual gfx::Rect GetBoundsForTabStrip(views::View* tabstrip) const OVERRIDE; |
55 virtual int GetHorizontalTabStripVerticalOffset(bool restored) const OVERRIDE; | 55 virtual TabStripInsets GetTabStripInsets(bool restored) const OVERRIDE; |
56 virtual void UpdateThrobber(bool running) OVERRIDE; | 56 virtual void UpdateThrobber(bool running) OVERRIDE; |
57 | 57 |
58 // Overridden from views::NonClientFrameView: | 58 // Overridden from views::NonClientFrameView: |
59 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; | 59 virtual gfx::Rect GetBoundsForClientView() const OVERRIDE; |
60 virtual gfx::Rect GetWindowBoundsForClientBounds( | 60 virtual gfx::Rect GetWindowBoundsForClientBounds( |
61 const gfx::Rect& client_bounds) const OVERRIDE; | 61 const gfx::Rect& client_bounds) const OVERRIDE; |
62 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; | 62 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; |
63 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) | 63 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) |
64 OVERRIDE; | 64 OVERRIDE; |
65 virtual void ResetWindowControls() OVERRIDE; | 65 virtual void ResetWindowControls() OVERRIDE; |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 views::ImageButton* minimize_button_; | 137 views::ImageButton* minimize_button_; |
138 views::ImageButton* restore_button_; | 138 views::ImageButton* restore_button_; |
139 TabIconView* title_icon_; | 139 TabIconView* title_icon_; |
140 views::Label* title_label_; | 140 views::Label* title_label_; |
141 gfx::Rect client_view_bounds_; | 141 gfx::Rect client_view_bounds_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); | 143 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); |
144 }; | 144 }; |
145 | 145 |
146 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ | 146 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |