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

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

Issue 23075012: Update NetworkStateNotifier to use message_center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Track deafult_network and reset did_show_out_of_credits on any change Created 7 years, 4 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/chromeos/network/tray_network.cc ('k') | ash/system/tray/system_tray_notifier.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_NOTIFIER_H_ 5 #ifndef ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 6 #define ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "ash/ash_export.h" 11 #include "ash/ash_export.h"
12 #include "ash/system/bluetooth/bluetooth_observer.h" 12 #include "ash/system/bluetooth/bluetooth_observer.h"
13 #include "ash/system/brightness/brightness_observer.h" 13 #include "ash/system/brightness/brightness_observer.h"
14 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h"
15 #include "ash/system/chromeos/network/network_observer.h"
16 #include "ash/system/chromeos/tray_tracing.h" 14 #include "ash/system/chromeos/tray_tracing.h"
17 #include "ash/system/date/clock_observer.h" 15 #include "ash/system/date/clock_observer.h"
18 #include "ash/system/drive/drive_observer.h" 16 #include "ash/system/drive/drive_observer.h"
19 #include "ash/system/ime/ime_observer.h" 17 #include "ash/system/ime/ime_observer.h"
20 #include "ash/system/locale/locale_observer.h" 18 #include "ash/system/locale/locale_observer.h"
21 #include "ash/system/logout_button/logout_button_observer.h" 19 #include "ash/system/logout_button/logout_button_observer.h"
22 #include "ash/system/session_length_limit/session_length_limit_observer.h" 20 #include "ash/system/session_length_limit/session_length_limit_observer.h"
23 #include "ash/system/tray_accessibility.h" 21 #include "ash/system/tray_accessibility.h"
24 #include "ash/system/tray_caps_lock.h" 22 #include "ash/system/tray_caps_lock.h"
25 #include "ash/system/user/update_observer.h" 23 #include "ash/system/user/update_observer.h"
26 #include "ash/system/user/user_observer.h" 24 #include "ash/system/user/user_observer.h"
27 #include "base/observer_list.h" 25 #include "base/observer_list.h"
28 26
29 #if defined(OS_CHROMEOS) 27 #if defined(OS_CHROMEOS)
28 #include "ash/system/chromeos/enterprise/enterprise_domain_observer.h"
30 #include "ash/system/chromeos/network/network_observer.h" 29 #include "ash/system/chromeos/network/network_observer.h"
31 #include "ash/system/chromeos/screen_security/screen_capture_observer.h" 30 #include "ash/system/chromeos/screen_security/screen_capture_observer.h"
32 #include "ash/system/chromeos/screen_security/screen_share_observer.h" 31 #include "ash/system/chromeos/screen_security/screen_share_observer.h"
33 #endif 32 #endif
34 33
35 namespace ash { 34 namespace ash {
36 35
37 #if defined(OS_CHROMEOS) 36 #if defined(OS_CHROMEOS)
38 class NetworkStateNotifier; 37 class NetworkStateNotifier;
39 #endif 38 #endif
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 void NotifyShowLoginButtonChanged(bool show_login_button); 110 void NotifyShowLoginButtonChanged(bool show_login_button);
112 void NotifyLocaleChanged(LocaleObserver::Delegate* delegate, 111 void NotifyLocaleChanged(LocaleObserver::Delegate* delegate,
113 const std::string& cur_locale, 112 const std::string& cur_locale,
114 const std::string& from_locale, 113 const std::string& from_locale,
115 const std::string& to_locale); 114 const std::string& to_locale);
116 void NotifySessionStartTimeChanged(); 115 void NotifySessionStartTimeChanged();
117 void NotifySessionLengthLimitChanged(); 116 void NotifySessionLengthLimitChanged();
118 void NotifyUpdateRecommended(UpdateObserver::UpdateSeverity severity); 117 void NotifyUpdateRecommended(UpdateObserver::UpdateSeverity severity);
119 void NotifyUserUpdate(); 118 void NotifyUserUpdate();
120 #if defined(OS_CHROMEOS) 119 #if defined(OS_CHROMEOS)
121 void NotifySetNetworkMessage(NetworkTrayDelegate* delegate,
122 NetworkObserver::MessageType message_type,
123 NetworkObserver::NetworkType network_type,
124 const base::string16& title,
125 const base::string16& message,
126 const std::vector<base::string16>& links);
127 void NotifyClearNetworkMessage(NetworkObserver::MessageType message_type);
128 void NotifyRequestToggleWifi(); 120 void NotifyRequestToggleWifi();
129 void NotifyEnterpriseDomainChanged(); 121 void NotifyEnterpriseDomainChanged();
130 void NotifyScreenCaptureStart(const base::Closure& stop_callback, 122 void NotifyScreenCaptureStart(const base::Closure& stop_callback,
131 const base::string16& sharing_app_name); 123 const base::string16& sharing_app_name);
132 void NotifyScreenCaptureStop(); 124 void NotifyScreenCaptureStop();
133 void NotifyScreenShareStart(const base::Closure& stop_callback, 125 void NotifyScreenShareStart(const base::Closure& stop_callback,
134 const base::string16& helper_name); 126 const base::string16& helper_name);
135 void NotifyScreenShareStop(); 127 void NotifyScreenShareStop();
136 128
137 NetworkStateNotifier* network_state_notifier() { 129 NetworkStateNotifier* network_state_notifier() {
(...skipping 22 matching lines...) Expand all
160 ObserverList<ScreenShareObserver> screen_share_observers_; 152 ObserverList<ScreenShareObserver> screen_share_observers_;
161 scoped_ptr<NetworkStateNotifier> network_state_notifier_; 153 scoped_ptr<NetworkStateNotifier> network_state_notifier_;
162 #endif 154 #endif
163 155
164 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier); 156 DISALLOW_COPY_AND_ASSIGN(SystemTrayNotifier);
165 }; 157 };
166 158
167 } // namespace ash 159 } // namespace ash
168 160
169 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_ 161 #endif // ASH_SYSTEM_TRAY_SYSTEM_TRAY_NOTIFIER_H_
OLDNEW
« no previous file with comments | « ash/system/chromeos/network/tray_network.cc ('k') | ash/system/tray/system_tray_notifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698