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 "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/win/scoped_gdi_object.h" | 10 #include "base/win/scoped_gdi_object.h" |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 // Returns the height of the entire nonclient top border, including the window | 68 // Returns the height of the entire nonclient top border, including the window |
69 // frame, any title area, and any connected client edge. If |restored| is | 69 // frame, any title area, and any connected client edge. If |restored| is |
70 // true, this is calculated as if the window was restored, regardless of its | 70 // true, this is calculated as if the window was restored, regardless of its |
71 // current state. | 71 // current state. |
72 int NonClientTopBorderHeight(bool restored) const; | 72 int NonClientTopBorderHeight(bool restored) const; |
73 | 73 |
74 // Returns whether the toolbar is currently visible. | 74 // Returns whether the toolbar is currently visible. |
75 bool IsToolbarVisible() const; | 75 bool IsToolbarVisible() const; |
76 | 76 |
77 // Paint various sub-components of this view. | 77 // Paint various sub-components of this view. |
78 void PaintToolbarBackground(gfx::Canvas* canvas); | 78 void PaintToolbarBackground(gfx::Canvas* canvas) const; |
79 void PaintClientEdge(gfx::Canvas* canvas); | 79 void PaintClientEdge(gfx::Canvas* canvas) const; |
80 void FillClientEdgeRects(int x, | 80 void FillClientEdgeRects(int x, |
81 int y, | 81 int y, |
82 int right, | 82 int right, |
83 int bottom, | 83 int bottom, |
84 SkColor color, | 84 SkColor color, |
85 gfx::Canvas* canvas) const; | 85 gfx::Canvas* canvas) const; |
86 | 86 |
87 // Layout various sub-components of this view. | 87 // Layout various sub-components of this view. |
88 void LayoutIncognitoIcon(); | 88 void LayoutIncognitoIcon(); |
89 void LayoutNewStyleAvatar(); | 89 void LayoutNewStyleAvatar(); |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 int throbber_frame_; | 122 int throbber_frame_; |
123 | 123 |
124 static const int kThrobberIconCount = 24; | 124 static const int kThrobberIconCount = 24; |
125 static HICON throbber_icons_[kThrobberIconCount]; | 125 static HICON throbber_icons_[kThrobberIconCount]; |
126 static void InitThrobberIcons(); | 126 static void InitThrobberIcons(); |
127 | 127 |
128 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 128 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
129 }; | 129 }; |
130 | 130 |
131 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 131 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |