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

Side by Side Diff: ash/shell.h

Issue 2058173002: mash: Move SystemTrayDelegate ownership to WmShell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review feedback Created 4 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
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_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 class ShelfModel; 141 class ShelfModel;
142 class ShelfWindowWatcher; 142 class ShelfWindowWatcher;
143 class ShellDelegate; 143 class ShellDelegate;
144 struct ShellInitParams; 144 struct ShellInitParams;
145 class SlowAnimationEventFilter; 145 class SlowAnimationEventFilter;
146 class StatusAreaWidget; 146 class StatusAreaWidget;
147 class StickyKeysController; 147 class StickyKeysController;
148 class SystemGestureEventFilter; 148 class SystemGestureEventFilter;
149 class SystemModalContainerEventFilter; 149 class SystemModalContainerEventFilter;
150 class SystemTray; 150 class SystemTray;
151 class SystemTrayDelegate;
152 class SystemTrayNotifier; 151 class SystemTrayNotifier;
153 class ToastManager; 152 class ToastManager;
154 class ToplevelWindowEventHandler; 153 class ToplevelWindowEventHandler;
155 class TouchTransformerController; 154 class TouchTransformerController;
156 class TouchObserverHUD; 155 class TouchObserverHUD;
157 class UserWallpaperDelegate; 156 class UserWallpaperDelegate;
158 class VirtualKeyboardController; 157 class VirtualKeyboardController;
159 class VideoActivityNotifier; 158 class VideoActivityNotifier;
160 class VideoDetector; 159 class VideoDetector;
161 class WebNotificationTray; 160 class WebNotificationTray;
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 487
489 // Returns WebNotificationTray on the primary root window. 488 // Returns WebNotificationTray on the primary root window.
490 WebNotificationTray* GetWebNotificationTray(); 489 WebNotificationTray* GetWebNotificationTray();
491 490
492 // Does the primary display have status area? 491 // Does the primary display have status area?
493 bool HasPrimaryStatusArea(); 492 bool HasPrimaryStatusArea();
494 493
495 // Returns the system tray on primary display. 494 // Returns the system tray on primary display.
496 SystemTray* GetPrimarySystemTray(); 495 SystemTray* GetPrimarySystemTray();
497 496
498 SystemTrayDelegate* system_tray_delegate() {
499 return system_tray_delegate_.get();
500 }
501
502 SystemTrayNotifier* system_tray_notifier() { 497 SystemTrayNotifier* system_tray_notifier() {
503 return system_tray_notifier_.get(); 498 return system_tray_notifier_.get();
504 } 499 }
505 500
506 static void set_initially_hide_cursor(bool hide) { 501 static void set_initially_hide_cursor(bool hide) {
507 initially_hide_cursor_ = hide; 502 initially_hide_cursor_ = hide;
508 } 503 }
509 504
510 ResizeShadowController* resize_shadow_controller() { 505 ResizeShadowController* resize_shadow_controller() {
511 return resize_shadow_controller_.get(); 506 return resize_shadow_controller_.get();
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 aura::Window* scoped_target_root_window_; 653 aura::Window* scoped_target_root_window_;
659 654
660 // The CompoundEventFilter owned by aura::Env object. 655 // The CompoundEventFilter owned by aura::Env object.
661 std::unique_ptr<::wm::CompoundEventFilter> env_filter_; 656 std::unique_ptr<::wm::CompoundEventFilter> env_filter_;
662 657
663 std::vector<WindowAndBoundsPair> to_restore_; 658 std::vector<WindowAndBoundsPair> to_restore_;
664 659
665 std::unique_ptr<UserMetricsRecorder> user_metrics_recorder_; 660 std::unique_ptr<UserMetricsRecorder> user_metrics_recorder_;
666 std::unique_ptr<AcceleratorController> accelerator_controller_; 661 std::unique_ptr<AcceleratorController> accelerator_controller_;
667 std::unique_ptr<ShellDelegate> delegate_; 662 std::unique_ptr<ShellDelegate> delegate_;
668 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_;
669 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; 663 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_;
670 std::unique_ptr<UserWallpaperDelegate> user_wallpaper_delegate_; 664 std::unique_ptr<UserWallpaperDelegate> user_wallpaper_delegate_;
671 std::unique_ptr<SessionStateDelegate> session_state_delegate_; 665 std::unique_ptr<SessionStateDelegate> session_state_delegate_;
672 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_; 666 std::unique_ptr<AccessibilityDelegate> accessibility_delegate_;
673 std::unique_ptr<NewWindowDelegate> new_window_delegate_; 667 std::unique_ptr<NewWindowDelegate> new_window_delegate_;
674 std::unique_ptr<MediaDelegate> media_delegate_; 668 std::unique_ptr<MediaDelegate> media_delegate_;
675 std::unique_ptr<ContainerDelegate> container_delegate_; 669 std::unique_ptr<ContainerDelegate> container_delegate_;
676 std::unique_ptr<PointerWatcherDelegate> pointer_watcher_delegate_; 670 std::unique_ptr<PointerWatcherDelegate> pointer_watcher_delegate_;
677 std::unique_ptr<ShelfDelegate> shelf_delegate_; 671 std::unique_ptr<ShelfDelegate> shelf_delegate_;
678 std::unique_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_; 672 std::unique_ptr<ShelfItemDelegateManager> shelf_item_delegate_manager_;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 bool in_mus_ = false; 786 bool in_mus_ = false;
793 787
794 std::unique_ptr<KeyboardUI> keyboard_ui_; 788 std::unique_ptr<KeyboardUI> keyboard_ui_;
795 789
796 DISALLOW_COPY_AND_ASSIGN(Shell); 790 DISALLOW_COPY_AND_ASSIGN(Shell);
797 }; 791 };
798 792
799 } // namespace ash 793 } // namespace ash
800 794
801 #endif // ASH_SHELL_H_ 795 #endif // ASH_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698