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

Side by Side Diff: ash/common/wm_shell.h

Issue 2166043003: mash: Migrate ShelfLockingManager to ash/common. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move ShelfLockingManager test access to Shelf. Created 4 years, 5 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_WM_SHELL_H_ 5 #ifndef ASH_COMMON_WM_SHELL_H_
6 #define ASH_COMMON_WM_SHELL_H_ 6 #define ASH_COMMON_WM_SHELL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "ash/ash_export.h" 13 #include "ash/ash_export.h"
14 #include "ash/common/media_delegate.h" 14 #include "ash/common/media_delegate.h"
15 #include "ash/common/metrics/user_metrics_action.h" 15 #include "ash/common/metrics/user_metrics_action.h"
16 #include "ash/common/wm/lock_state_observer.h"
16 #include "base/observer_list.h" 17 #include "base/observer_list.h"
17 18
18 namespace views { 19 namespace views {
19 class PointerDownWatcher; 20 class PointerDownWatcher;
20 } 21 }
21 22
22 namespace ash { 23 namespace ash {
23 24
24 class AccessibilityDelegate; 25 class AccessibilityDelegate;
25 class BrightnessControlDelegate; 26 class BrightnessControlDelegate;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 219
219 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; 220 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0;
220 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; 221 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0;
221 222
222 void AddShellObserver(ShellObserver* observer); 223 void AddShellObserver(ShellObserver* observer);
223 void RemoveShellObserver(ShellObserver* observer); 224 void RemoveShellObserver(ShellObserver* observer);
224 225
225 virtual void AddPointerDownWatcher(views::PointerDownWatcher* watcher) = 0; 226 virtual void AddPointerDownWatcher(views::PointerDownWatcher* watcher) = 0;
226 virtual void RemovePointerDownWatcher(views::PointerDownWatcher* watcher) = 0; 227 virtual void RemovePointerDownWatcher(views::PointerDownWatcher* watcher) = 0;
227 228
229 // TODO: Move these back to LockStateController when that has been moved.
James Cook 2016/07/20 21:14:30 nit: TODO(someone) -- the linter barfs on todo for
msw 2016/07/20 21:21:14 Eh, I'm okay with lint warnings here, unless you o
James Cook 2016/07/20 21:23:24 Sure, leave it as-is, especially since you have gr
230 void OnLockStateEvent(LockStateObserver::EventType event);
231 void AddLockStateObserver(LockStateObserver* observer);
232 void RemoveLockStateObserver(LockStateObserver* observer);
233
228 #if defined(OS_CHROMEOS) 234 #if defined(OS_CHROMEOS)
229 LogoutConfirmationController* logout_confirmation_controller() { 235 LogoutConfirmationController* logout_confirmation_controller() {
230 return logout_confirmation_controller_.get(); 236 return logout_confirmation_controller_.get();
231 } 237 }
232 238
233 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved. 239 // TODO(jamescook): Remove this when VirtualKeyboardController has been moved.
234 virtual void ToggleIgnoreExternalKeyboard() = 0; 240 virtual void ToggleIgnoreExternalKeyboard() = 0;
235 #endif 241 #endif
236 242
237 protected: 243 protected:
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 keyboard_brightness_control_delegate_; 281 keyboard_brightness_control_delegate_;
276 std::unique_ptr<KeyboardUI> keyboard_ui_; 282 std::unique_ptr<KeyboardUI> keyboard_ui_;
277 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; 283 std::unique_ptr<MaximizeModeController> maximize_mode_controller_;
278 std::unique_ptr<MediaDelegate> media_delegate_; 284 std::unique_ptr<MediaDelegate> media_delegate_;
279 std::unique_ptr<MruWindowTracker> mru_window_tracker_; 285 std::unique_ptr<MruWindowTracker> mru_window_tracker_;
280 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; 286 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_;
281 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; 287 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_;
282 std::unique_ptr<WindowCycleController> window_cycle_controller_; 288 std::unique_ptr<WindowCycleController> window_cycle_controller_;
283 std::unique_ptr<WindowSelectorController> window_selector_controller_; 289 std::unique_ptr<WindowSelectorController> window_selector_controller_;
284 290
291 base::ObserverList<LockStateObserver> lock_state_observers_;
292
285 bool simulate_modal_window_open_for_testing_ = false; 293 bool simulate_modal_window_open_for_testing_ = false;
286 294
287 #if defined(OS_CHROMEOS) 295 #if defined(OS_CHROMEOS)
288 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 296 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
289 #endif 297 #endif
290 }; 298 };
291 299
292 } // namespace ash 300 } // namespace ash
293 301
294 #endif // ASH_COMMON_WM_SHELL_H_ 302 #endif // ASH_COMMON_WM_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698