| 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_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
| 10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 // is true, this is calculated as if the window was restored, regardless of | 67 // is true, this is calculated as if the window was restored, regardless of |
| 68 // its current state. | 68 // its current state. |
| 69 int NonClientBorderThickness(bool restored) const; | 69 int NonClientBorderThickness(bool restored) const; |
| 70 | 70 |
| 71 // Returns the height of the entire nonclient top border, including the window | 71 // Returns the height of the entire nonclient top border, including the window |
| 72 // frame, any title area, and any connected client edge. If |restored| is | 72 // frame, any title area, and any connected client edge. If |restored| is |
| 73 // true, this is calculated as if the window was restored, regardless of its | 73 // true, this is calculated as if the window was restored, regardless of its |
| 74 // current state. | 74 // current state. |
| 75 int NonClientTopBorderHeight(bool restored) const; | 75 int NonClientTopBorderHeight(bool restored) const; |
| 76 | 76 |
| 77 // Returns whether the toolbar is currently visible. |
| 78 bool IsToolbarVisible() const; |
| 79 |
| 77 // Paint various sub-components of this view. | 80 // Paint various sub-components of this view. |
| 78 void PaintToolbarBackground(gfx::Canvas* canvas); | 81 void PaintToolbarBackground(gfx::Canvas* canvas); |
| 79 void PaintRestoredClientEdge(gfx::Canvas* canvas); | 82 void PaintClientEdge(gfx::Canvas* canvas); |
| 80 | 83 |
| 81 // Layout various sub-components of this view. | 84 // Layout various sub-components of this view. |
| 82 void LayoutIncognitoIcon(); | 85 void LayoutIncognitoIcon(); |
| 83 void LayoutNewStyleAvatar(); | 86 void LayoutNewStyleAvatar(); |
| 84 void LayoutClientView(); | 87 void LayoutClientView(); |
| 85 | 88 |
| 86 // Returns the insets of the client area. If |restored| is true, this is | 89 // Returns the insets of the client area. If |restored| is true, this is |
| 87 // calculated as if the window was restored, regardless of its current state. | 90 // calculated as if the window was restored, regardless of its current state. |
| 88 gfx::Insets GetClientAreaInsets(bool restored) const; | 91 gfx::Insets GetClientAreaInsets(bool restored) const; |
| 89 | 92 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 110 int throbber_frame_; | 113 int throbber_frame_; |
| 111 | 114 |
| 112 static const int kThrobberIconCount = 24; | 115 static const int kThrobberIconCount = 24; |
| 113 static HICON throbber_icons_[kThrobberIconCount]; | 116 static HICON throbber_icons_[kThrobberIconCount]; |
| 114 static void InitThrobberIcons(); | 117 static void InitThrobberIcons(); |
| 115 | 118 |
| 116 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 119 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
| 117 }; | 120 }; |
| 118 | 121 |
| 119 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 122 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |