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

Side by Side Diff: trunk/src/chrome/browser/ui/ash/system_tray_delegate_chromeos.h

Issue 165453002: Revert 251164 "Split out InputMethodMenuManager from InputMethod..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 10 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
7 7
8 #include "ash/ime/input_method_menu_manager.h"
9 #include "ash/session_state_observer.h" 8 #include "ash/session_state_observer.h"
10 #include "ash/system/tray/system_tray.h" 9 #include "ash/system/tray/system_tray.h"
11 #include "ash/system/tray/system_tray_delegate.h" 10 #include "ash/system/tray/system_tray_delegate.h"
12 #include "ash/system/tray/system_tray_notifier.h" 11 #include "ash/system/tray/system_tray_notifier.h"
13 #include "base/callback_list.h" 12 #include "base/callback_list.h"
14 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
15 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
16 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
17 #include "base/prefs/pref_change_registrar.h" 16 #include "base/prefs/pref_change_registrar.h"
18 #include "chrome/browser/chromeos/drive/drive_integration_service.h" 17 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
19 #include "chrome/browser/chromeos/drive/job_list.h" 18 #include "chrome/browser/chromeos/drive/job_list.h"
20 #include "chrome/browser/chromeos/system_key_event_listener.h" 19 #include "chrome/browser/chromeos/system_key_event_listener.h"
21 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" 21 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h"
23 #include "chromeos/dbus/session_manager_client.h" 22 #include "chromeos/dbus/session_manager_client.h"
24 #include "chromeos/ime/input_method_manager.h" 23 #include "chromeos/ime/input_method_manager.h"
25 #include "chromeos/login/login_state.h" 24 #include "chromeos/login/login_state.h"
26 #include "components/policy/core/common/cloud/cloud_policy_store.h" 25 #include "components/policy/core/common/cloud/cloud_policy_store.h"
27 #include "content/public/browser/notification_observer.h" 26 #include "content/public/browser/notification_observer.h"
28 #include "content/public/browser/notification_registrar.h" 27 #include "content/public/browser/notification_registrar.h"
29 #include "device/bluetooth/bluetooth_adapter.h" 28 #include "device/bluetooth/bluetooth_adapter.h"
30 29
31 namespace chromeos { 30 namespace chromeos {
32 31
33 class SystemTrayDelegateChromeOS 32 class SystemTrayDelegateChromeOS
34 : public ash::ime::InputMethodMenuManager::Observer, 33 : public ash::SystemTrayDelegate,
35 public ash::SystemTrayDelegate,
36 public SessionManagerClient::Observer, 34 public SessionManagerClient::Observer,
37 public drive::JobListObserver, 35 public drive::JobListObserver,
38 public content::NotificationObserver, 36 public content::NotificationObserver,
39 public input_method::InputMethodManager::Observer, 37 public input_method::InputMethodManager::Observer,
40 public chromeos::LoginState::Observer, 38 public chromeos::LoginState::Observer,
41 public device::BluetoothAdapter::Observer, 39 public device::BluetoothAdapter::Observer,
42 public SystemKeyEventListener::CapsLockObserver, 40 public SystemKeyEventListener::CapsLockObserver,
43 public policy::CloudPolicyStore::Observer, 41 public policy::CloudPolicyStore::Observer,
44 public ash::SessionStateObserver { 42 public ash::SessionStateObserver {
45 public: 43 public:
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 173
176 void OnAccessibilityModeChanged( 174 void OnAccessibilityModeChanged(
177 ash::AccessibilityNotificationVisibility notify); 175 ash::AccessibilityNotificationVisibility notify);
178 176
179 void UpdatePerformanceTracing(); 177 void UpdatePerformanceTracing();
180 178
181 // Overridden from InputMethodManager::Observer. 179 // Overridden from InputMethodManager::Observer.
182 virtual void InputMethodChanged(input_method::InputMethodManager* manager, 180 virtual void InputMethodChanged(input_method::InputMethodManager* manager,
183 bool show_message) OVERRIDE; 181 bool show_message) OVERRIDE;
184 182
185 // Overridden from InputMethodMenuManager::Observer. 183 virtual void InputMethodPropertyChanged(
186 virtual void InputMethodMenuItemChanged( 184 input_method::InputMethodManager* manager) OVERRIDE;
187 ash::ime::InputMethodMenuManager* manager) OVERRIDE;
188 185
189 // drive::JobListObserver overrides. 186 // drive::JobListObserver overrides.
190 virtual void OnJobAdded(const drive::JobInfo& job_info) OVERRIDE; 187 virtual void OnJobAdded(const drive::JobInfo& job_info) OVERRIDE;
191 188
192 virtual void OnJobDone(const drive::JobInfo& job_info, 189 virtual void OnJobDone(const drive::JobInfo& job_info,
193 drive::FileError error) OVERRIDE; 190 drive::FileError error) OVERRIDE;
194 191
195 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE; 192 virtual void OnJobUpdated(const drive::JobInfo& job_info) OVERRIDE;
196 193
197 drive::DriveIntegrationService* FindDriveIntegrationService(); 194 drive::DriveIntegrationService* FindDriveIntegrationService();
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 scoped_ptr<ash::VolumeControlDelegate> volume_control_delegate_; 236 scoped_ptr<ash::VolumeControlDelegate> volume_control_delegate_;
240 scoped_ptr<CrosSettingsObserverSubscription> device_settings_observer_; 237 scoped_ptr<CrosSettingsObserverSubscription> device_settings_observer_;
241 238
242 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS); 239 DISALLOW_COPY_AND_ASSIGN(SystemTrayDelegateChromeOS);
243 }; 240 };
244 241
245 ash::SystemTrayDelegate* CreateSystemTrayDelegate(); 242 ash::SystemTrayDelegate* CreateSystemTrayDelegate();
246 243
247 } // namespace chromeos 244 } // namespace chromeos
248 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_ 245 #endif // CHROME_BROWSER_UI_ASH_SYSTEM_TRAY_DELEGATE_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698