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_frame_win.h" | 9 #include "chrome/browser/ui/views/frame/browser_frame_win.h" |
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" | 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 // frame, any title area, and any connected client edge. If |restored| is | 59 // frame, any title area, and any connected client edge. If |restored| is |
60 // true, acts as if the window is restored regardless of the real mode. | 60 // true, acts as if the window is restored regardless of the real mode. |
61 int NonClientTopBorderHeight(bool restored) const; | 61 int NonClientTopBorderHeight(bool restored) const; |
62 | 62 |
63 // Paint various sub-components of this view. | 63 // Paint various sub-components of this view. |
64 void PaintToolbarBackground(gfx::Canvas* canvas); | 64 void PaintToolbarBackground(gfx::Canvas* canvas); |
65 void PaintRestoredClientEdge(gfx::Canvas* canvas); | 65 void PaintRestoredClientEdge(gfx::Canvas* canvas); |
66 | 66 |
67 // Layout various sub-components of this view. | 67 // Layout various sub-components of this view. |
68 void LayoutAvatar(); | 68 void LayoutAvatar(); |
| 69 void LayoutNewStyleAvatar(); |
69 void LayoutClientView(); | 70 void LayoutClientView(); |
70 | 71 |
71 // Returns the insets of the client area. | 72 // Returns the insets of the client area. |
72 gfx::Insets GetClientAreaInsets() const; | 73 gfx::Insets GetClientAreaInsets() const; |
73 | 74 |
74 // Returns the bounds of the client area for the specified view size. | 75 // Returns the bounds of the client area for the specified view size. |
75 gfx::Rect CalculateClientAreaBounds(int width, int height) const; | 76 gfx::Rect CalculateClientAreaBounds(int width, int height) const; |
76 | 77 |
77 // Starts/Stops the window throbber running. | 78 // Starts/Stops the window throbber running. |
78 void StartThrobber(); | 79 void StartThrobber(); |
(...skipping 22 matching lines...) Expand all Loading... |
101 content::NotificationRegistrar registrar_; | 102 content::NotificationRegistrar registrar_; |
102 | 103 |
103 static const int kThrobberIconCount = 24; | 104 static const int kThrobberIconCount = 24; |
104 static HICON throbber_icons_[kThrobberIconCount]; | 105 static HICON throbber_icons_[kThrobberIconCount]; |
105 static void InitThrobberIcons(); | 106 static void InitThrobberIcons(); |
106 | 107 |
107 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 108 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
108 }; | 109 }; |
109 | 110 |
110 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 111 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |