OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "chrome/browser/ui/views/frame/browser_frame_win.h" | 10 #include "chrome/browser/ui/views/frame/browser_frame_win.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 gfx::Rect CalculateClientAreaBounds(int width, int height) const; | 75 gfx::Rect CalculateClientAreaBounds(int width, int height) const; |
76 | 76 |
77 // Starts/Stops the window throbber running. | 77 // Starts/Stops the window throbber running. |
78 void StartThrobber(); | 78 void StartThrobber(); |
79 void StopThrobber(); | 79 void StopThrobber(); |
80 | 80 |
81 // Displays the next throbber frame. | 81 // Displays the next throbber frame. |
82 void DisplayNextThrobberFrame(); | 82 void DisplayNextThrobberFrame(); |
83 | 83 |
84 // NotificationObserver implementation: | 84 // NotificationObserver implementation: |
85 virtual void Observe(NotificationType type, | 85 virtual void Observe(int type, |
86 const NotificationSource& source, | 86 const NotificationSource& source, |
87 const NotificationDetails& details) OVERRIDE; | 87 const NotificationDetails& details) OVERRIDE; |
88 | 88 |
89 // Updates the title and icon of the avatar button. | 89 // Updates the title and icon of the avatar button. |
90 void UpdateAvatarInfo(); | 90 void UpdateAvatarInfo(); |
91 | 91 |
92 // The layout rect of the avatar icon, if visible. | 92 // The layout rect of the avatar icon, if visible. |
93 gfx::Rect avatar_bounds_; | 93 gfx::Rect avatar_bounds_; |
94 | 94 |
95 // The frame that hosts this view. | 95 // The frame that hosts this view. |
(...skipping 18 matching lines...) Expand all Loading... |
114 NotificationRegistrar registrar_; | 114 NotificationRegistrar registrar_; |
115 | 115 |
116 static const int kThrobberIconCount = 24; | 116 static const int kThrobberIconCount = 24; |
117 static HICON throbber_icons_[kThrobberIconCount]; | 117 static HICON throbber_icons_[kThrobberIconCount]; |
118 static void InitThrobberIcons(); | 118 static void InitThrobberIcons(); |
119 | 119 |
120 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); | 120 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); |
121 }; | 121 }; |
122 | 122 |
123 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ | 123 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ |
OLD | NEW |