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

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
« no previous file with comments | « ash/system/drive/tray_drive.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.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 18
19 #include <vector> 19 #include <vector>
20 20
21 namespace ash { 21 namespace ash {
22 22
23 class AccessibilityObserver; 23 class AccessibilityObserver;
24 class AudioObserver; 24 class AudioObserver;
25 class BluetoothObserver; 25 class BluetoothObserver;
26 class BrightnessObserver; 26 class BrightnessObserver;
27 class CapsLockObserver; 27 class CapsLockObserver;
28 class ClockObserver; 28 class ClockObserver;
29 class DriveObserver;
29 class IMEObserver; 30 class IMEObserver;
30 class NetworkObserver; 31 class NetworkObserver;
31 class PowerStatusObserver; 32 class PowerStatusObserver;
32 class UpdateObserver; 33 class UpdateObserver;
33 class UserObserver; 34 class UserObserver;
34 35
35 class SystemTrayItem; 36 class SystemTrayItem;
36 37
37 namespace internal { 38 namespace internal {
38 class SystemTrayBackground; 39 class SystemTrayBackground;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 } 99 }
99 BrightnessObserver* brightness_observer() const { 100 BrightnessObserver* brightness_observer() const {
100 return brightness_observer_; 101 return brightness_observer_;
101 } 102 }
102 CapsLockObserver* caps_lock_observer() const { 103 CapsLockObserver* caps_lock_observer() const {
103 return caps_lock_observer_; 104 return caps_lock_observer_;
104 } 105 }
105 ClockObserver* clock_observer() const { 106 ClockObserver* clock_observer() const {
106 return clock_observer_; 107 return clock_observer_;
107 } 108 }
109 DriveObserver* drive_observer() const {
110 return drive_observer_;
111 }
108 IMEObserver* ime_observer() const { 112 IMEObserver* ime_observer() const {
109 return ime_observer_; 113 return ime_observer_;
110 } 114 }
111 NetworkObserver* network_observer() const { 115 NetworkObserver* network_observer() const {
112 return network_observer_; 116 return network_observer_;
113 } 117 }
114 PowerStatusObserver* power_status_observer() const { 118 PowerStatusObserver* power_status_observer() const {
115 return power_status_observer_; 119 return power_status_observer_;
116 } 120 }
117 UpdateObserver* update_observer() const { 121 UpdateObserver* update_observer() const {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 // The container for all the tray views of the items. 157 // The container for all the tray views of the items.
154 views::View* container_; 158 views::View* container_;
155 159
156 // These observers are not owned by the tray. 160 // These observers are not owned by the tray.
157 AccessibilityObserver* accessibility_observer_; 161 AccessibilityObserver* accessibility_observer_;
158 AudioObserver* audio_observer_; 162 AudioObserver* audio_observer_;
159 BluetoothObserver* bluetooth_observer_; 163 BluetoothObserver* bluetooth_observer_;
160 BrightnessObserver* brightness_observer_; 164 BrightnessObserver* brightness_observer_;
161 CapsLockObserver* caps_lock_observer_; 165 CapsLockObserver* caps_lock_observer_;
162 ClockObserver* clock_observer_; 166 ClockObserver* clock_observer_;
167 DriveObserver* drive_observer_;
163 IMEObserver* ime_observer_; 168 IMEObserver* ime_observer_;
164 NetworkObserver* network_observer_; 169 NetworkObserver* network_observer_;
165 PowerStatusObserver* power_status_observer_; 170 PowerStatusObserver* power_status_observer_;
166 UpdateObserver* update_observer_; 171 UpdateObserver* update_observer_;
167 UserObserver* user_observer_; 172 UserObserver* user_observer_;
168 173
169 // The widget hosting the tray. 174 // The widget hosting the tray.
170 views::Widget* widget_; 175 views::Widget* widget_;
171 176
172 // The popup widget and the delegate. 177 // The popup widget and the delegate.
173 scoped_ptr<internal::SystemTrayBubble> bubble_; 178 scoped_ptr<internal::SystemTrayBubble> bubble_;
174 179
175 // Owned by the view it's installed on. 180 // Owned by the view it's installed on.
176 internal::SystemTrayBackground* background_; 181 internal::SystemTrayBackground* background_;
177 182
178 // See description agove getter. 183 // See description agove getter.
179 bool should_show_launcher_; 184 bool should_show_launcher_;
180 185
181 internal::BackgroundAnimator hide_background_animator_; 186 internal::BackgroundAnimator hide_background_animator_;
182 internal::BackgroundAnimator hover_background_animator_; 187 internal::BackgroundAnimator hover_background_animator_;
183 188
184 DISALLOW_COPY_AND_ASSIGN(SystemTray); 189 DISALLOW_COPY_AND_ASSIGN(SystemTray);
185 }; 190 };
186 191
187 } // namespace ash 192 } // namespace ash
188 193
189 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 194 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
OLDNEW
« no previous file with comments | « ash/system/drive/tray_drive.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698