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

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

Issue 10540041: Add battery status to settings row in uber tray bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits. Created 8 years, 6 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/settings/tray_settings.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/ash_export.h" 9 #include "ash/ash_export.h"
10 #include "ash/system/power/power_supply_status.h"
10 #include "ash/system/tray/tray_background_view.h" 11 #include "ash/system/tray/tray_background_view.h"
11 #include "ash/system/tray/tray_views.h" 12 #include "ash/system/tray/tray_views.h"
12 #include "ash/system/user/login_status.h" 13 #include "ash/system/user/login_status.h"
13 #include "ash/wm/shelf_auto_hide_behavior.h" 14 #include "ash/wm/shelf_auto_hide_behavior.h"
14 #include "base/basictypes.h" 15 #include "base/basictypes.h"
15 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
16 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/scoped_vector.h" 18 #include "base/memory/scoped_vector.h"
18 #include "ui/views/view.h" 19 #include "ui/views/view.h"
19 20
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 125 }
125 IMEObserver* ime_observer() const { 126 IMEObserver* ime_observer() const {
126 return ime_observer_; 127 return ime_observer_;
127 } 128 }
128 LocaleObserver* locale_observer() const { 129 LocaleObserver* locale_observer() const {
129 return locale_observer_; 130 return locale_observer_;
130 } 131 }
131 NetworkObserver* network_observer() const { 132 NetworkObserver* network_observer() const {
132 return network_observer_; 133 return network_observer_;
133 } 134 }
134 PowerStatusObserver* power_status_observer() const { 135 ObserverList<PowerStatusObserver>& power_status_observers() {
135 return power_status_observer_; 136 return power_status_observers_;
136 } 137 }
137 UpdateObserver* update_observer() const { 138 UpdateObserver* update_observer() const {
138 return update_observer_; 139 return update_observer_;
139 } 140 }
140 UserObserver* user_observer() const { 141 UserObserver* user_observer() const {
141 return user_observer_; 142 return user_observer_;
142 } 143 }
143 144
144 // Accessors for testing. 145 // Accessors for testing.
145 146
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 AccessibilityObserver* accessibility_observer_; 215 AccessibilityObserver* accessibility_observer_;
215 AudioObserver* audio_observer_; 216 AudioObserver* audio_observer_;
216 BluetoothObserver* bluetooth_observer_; 217 BluetoothObserver* bluetooth_observer_;
217 BrightnessObserver* brightness_observer_; 218 BrightnessObserver* brightness_observer_;
218 CapsLockObserver* caps_lock_observer_; 219 CapsLockObserver* caps_lock_observer_;
219 ClockObserver* clock_observer_; 220 ClockObserver* clock_observer_;
220 DriveObserver* drive_observer_; 221 DriveObserver* drive_observer_;
221 IMEObserver* ime_observer_; 222 IMEObserver* ime_observer_;
222 LocaleObserver* locale_observer_; 223 LocaleObserver* locale_observer_;
223 NetworkObserver* network_observer_; 224 NetworkObserver* network_observer_;
224 PowerStatusObserver* power_status_observer_; 225 ObserverList<PowerStatusObserver> power_status_observers_;
225 UpdateObserver* update_observer_; 226 UpdateObserver* update_observer_;
226 UserObserver* user_observer_; 227 UserObserver* user_observer_;
227 228
228 // Bubble for default and detailed views. 229 // Bubble for default and detailed views.
229 scoped_ptr<internal::SystemTrayBubble> bubble_; 230 scoped_ptr<internal::SystemTrayBubble> bubble_;
230 231
231 // Buble for notifications. 232 // Buble for notifications.
232 scoped_ptr<internal::SystemTrayBubble> notification_bubble_; 233 scoped_ptr<internal::SystemTrayBubble> notification_bubble_;
233 234
234 // See description agove getter. 235 // See description agove getter.
235 bool should_show_launcher_; 236 bool should_show_launcher_;
236 237
237 // Shelf alignment. 238 // Shelf alignment.
238 ShelfAlignment shelf_alignment_; 239 ShelfAlignment shelf_alignment_;
239 240
240 scoped_ptr<internal::SystemTrayLayerAnimationObserver> 241 scoped_ptr<internal::SystemTrayLayerAnimationObserver>
241 layer_animation_observer_; 242 layer_animation_observer_;
242 243
243 // Keep track of the default view height so that when we create detailed 244 // Keep track of the default view height so that when we create detailed
244 // views directly (e.g. from a notification) we know what height to use. 245 // views directly (e.g. from a notification) we know what height to use.
245 int default_bubble_height_; 246 int default_bubble_height_;
246 247
247 DISALLOW_COPY_AND_ASSIGN(SystemTray); 248 DISALLOW_COPY_AND_ASSIGN(SystemTray);
248 }; 249 };
249 250
250 } // namespace ash 251 } // namespace ash
251 252
252 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_ 253 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_H_
OLDNEW
« no previous file with comments | « ash/system/settings/tray_settings.cc ('k') | ash/system/tray/system_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698