Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: ash/system/tray/system_tray.h

Issue 10214013: Created uber tray UI for monitoring ongoing WebDrive sync operations (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/launcher/background_animator.h" 9 #include "ash/launcher/background_animator.h"
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/system/tray/tray_views.h" 11 #include "ash/system/tray/tray_views.h"
12 #include "ash/system/user/login_status.h" 12 #include "ash/system/user/login_status.h"
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
15 #include "base/message_pump_observer.h" 15 #include "base/message_pump_observer.h"
16 #include "base/memory/scoped_vector.h" 16 #include "base/memory/scoped_vector.h"
17 #include "ui/views/view.h" 17 #include "ui/views/view.h"
18 #include "ui/views/widget/widget.h" 18 #include "ui/views/widget/widget.h"
19 19
20 #include <vector> 20 #include <vector>
21 21
22 namespace ash { 22 namespace ash {
23 23
24 class AccessibilityObserver; 24 class AccessibilityObserver;
25 class AudioObserver; 25 class AudioObserver;
26 class BluetoothObserver; 26 class BluetoothObserver;
27 class BrightnessObserver; 27 class BrightnessObserver;
28 class CapsLockObserver; 28 class CapsLockObserver;
29 class ClockObserver; 29 class ClockObserver;
30 class DriveObserver;
30 class IMEObserver; 31 class IMEObserver;
31 class NetworkObserver; 32 class NetworkObserver;
32 class PowerStatusObserver; 33 class PowerStatusObserver;
33 class UpdateObserver; 34 class UpdateObserver;
34 class UserObserver; 35 class UserObserver;
35 36
36 class SystemTrayItem; 37 class SystemTrayItem;
37 38
38 namespace internal { 39 namespace internal {
39 class SystemTrayBackground; 40 class SystemTrayBackground;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 } 102 }
102 BrightnessObserver* brightness_observer() const { 103 BrightnessObserver* brightness_observer() const {
103 return brightness_observer_; 104 return brightness_observer_;
104 } 105 }
105 CapsLockObserver* caps_lock_observer() const { 106 CapsLockObserver* caps_lock_observer() const {
106 return caps_lock_observer_; 107 return caps_lock_observer_;
107 } 108 }
108 ClockObserver* clock_observer() const { 109 ClockObserver* clock_observer() const {
109 return clock_observer_; 110 return clock_observer_;
110 } 111 }
112 DriveObserver* drive_observer() const {
113 return drive_observer_;
114 }
111 IMEObserver* ime_observer() const { 115 IMEObserver* ime_observer() const {
112 return ime_observer_; 116 return ime_observer_;
113 } 117 }
114 NetworkObserver* network_observer() const { 118 NetworkObserver* network_observer() const {
115 return network_observer_; 119 return network_observer_;
116 } 120 }
117 PowerStatusObserver* power_status_observer() const { 121 PowerStatusObserver* power_status_observer() const {
118 return power_status_observer_; 122 return power_status_observer_;
119 } 123 }
120 UpdateObserver* update_observer() const { 124 UpdateObserver* update_observer() const {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // The container for all the tray views of the items. 161 // The container for all the tray views of the items.
158 views::View* container_; 162 views::View* container_;
159 163
160 // These observers are not owned by the tray. 164 // These observers are not owned by the tray.
161 AccessibilityObserver* accessibility_observer_; 165 AccessibilityObserver* accessibility_observer_;
162 AudioObserver* audio_observer_; 166 AudioObserver* audio_observer_;
163 BluetoothObserver* bluetooth_observer_; 167 BluetoothObserver* bluetooth_observer_;
164 BrightnessObserver* brightness_observer_; 168 BrightnessObserver* brightness_observer_;
165 CapsLockObserver* caps_lock_observer_; 169 CapsLockObserver* caps_lock_observer_;
166 ClockObserver* clock_observer_; 170 ClockObserver* clock_observer_;
171 DriveObserver* drive_observer_;
167 IMEObserver* ime_observer_; 172 IMEObserver* ime_observer_;
168 NetworkObserver* network_observer_; 173 NetworkObserver* network_observer_;
169 PowerStatusObserver* power_status_observer_; 174 PowerStatusObserver* power_status_observer_;
170 UpdateObserver* update_observer_; 175 UpdateObserver* update_observer_;
171 UserObserver* user_observer_; 176 UserObserver* user_observer_;
172 177
173 // The widget hosting the tray. 178 // The widget hosting the tray.
174 views::Widget* widget_; 179 views::Widget* widget_;
175 180
176 // The popup widget and the delegate. 181 // The popup widget and the delegate.
177 internal::SystemTrayBubble* bubble_; 182 internal::SystemTrayBubble* bubble_;
178 views::Widget* popup_; 183 views::Widget* popup_;
179 184
180 // Owned by the view it's installed on. 185 // Owned by the view it's installed on.
181 internal::SystemTrayBackground* background_; 186 internal::SystemTrayBackground* background_;
182 187
183 // See description agove getter. 188 // See description agove getter.
184 bool should_show_launcher_; 189 bool should_show_launcher_;
185 190
186 internal::BackgroundAnimator hide_background_animator_; 191 internal::BackgroundAnimator hide_background_animator_;
187 internal::BackgroundAnimator hover_background_animator_; 192 internal::BackgroundAnimator hover_background_animator_;
188 193
189 DISALLOW_COPY_AND_ASSIGN(SystemTray); 194 DISALLOW_COPY_AND_ASSIGN(SystemTray);
190 }; 195 };
191 196
192 } // namespace ash 197 } // namespace ash
193 198
194 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 199 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698