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

Side by Side Diff: ash/shell.h

Issue 2791463002: mash: Remove ShelfDelegate; move functions to ShelfModel. (Closed)
Patch Set: Sync and rebase; cleanup. Created 3 years, 8 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 class ShellPort; 133 class ShellPort;
134 class ScopedOverviewAnimationSettingsFactoryAura; 134 class ScopedOverviewAnimationSettingsFactoryAura;
135 class ScreenLayoutObserver; 135 class ScreenLayoutObserver;
136 class ScreenOrientationController; 136 class ScreenOrientationController;
137 class ScreenshotController; 137 class ScreenshotController;
138 class ScreenPinningController; 138 class ScreenPinningController;
139 class ScreenPositionController; 139 class ScreenPositionController;
140 class SessionController; 140 class SessionController;
141 class SessionStateDelegate; 141 class SessionStateDelegate;
142 class ShelfController; 142 class ShelfController;
143 class ShelfDelegate;
144 class ShelfModel; 143 class ShelfModel;
145 class ShelfWindowWatcher; 144 class ShelfWindowWatcher;
146 class ShellDelegate; 145 class ShellDelegate;
147 struct ShellInitParams; 146 struct ShellInitParams;
148 class ShellObserver; 147 class ShellObserver;
149 class ShutdownController; 148 class ShutdownController;
150 class ShutdownObserver; 149 class ShutdownObserver;
151 class SmsObserver; 150 class SmsObserver;
152 class StickyKeysController; 151 class StickyKeysController;
153 class SystemGestureEventFilter; 152 class SystemGestureEventFilter;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 MaximizeModeController* maximize_mode_controller() { 323 MaximizeModeController* maximize_mode_controller() {
325 return maximize_mode_controller_.get(); 324 return maximize_mode_controller_.get();
326 } 325 }
327 MediaController* media_controller() { return media_controller_.get(); } 326 MediaController* media_controller() { return media_controller_.get(); }
328 MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); } 327 MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); }
329 NewWindowController* new_window_controller() { 328 NewWindowController* new_window_controller() {
330 return new_window_controller_.get(); 329 return new_window_controller_.get();
331 } 330 }
332 SessionController* session_controller() { return session_controller_.get(); } 331 SessionController* session_controller() { return session_controller_.get(); }
333 ShelfController* shelf_controller() { return shelf_controller_.get(); } 332 ShelfController* shelf_controller() { return shelf_controller_.get(); }
334 ShelfDelegate* shelf_delegate() { return shelf_delegate_.get(); }
335 ShelfModel* shelf_model(); 333 ShelfModel* shelf_model();
336 ShutdownController* shutdown_controller() { 334 ShutdownController* shutdown_controller() {
337 return shutdown_controller_.get(); 335 return shutdown_controller_.get();
338 } 336 }
339 SystemTrayController* system_tray_controller() { 337 SystemTrayController* system_tray_controller() {
340 return system_tray_controller_.get(); 338 return system_tray_controller_.get();
341 } 339 }
342 SystemTrayDelegate* system_tray_delegate() { 340 SystemTrayDelegate* system_tray_delegate() {
343 return system_tray_delegate_.get(); 341 return system_tray_delegate_.get();
344 } 342 }
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
605 603
606 // Initializes virtual keyboard controller. 604 // Initializes virtual keyboard controller.
607 void InitKeyboard(); 605 void InitKeyboard();
608 606
609 // Initializes the root window so that it can host browser windows. 607 // Initializes the root window so that it can host browser windows.
610 void InitRootWindow(aura::Window* root_window); 608 void InitRootWindow(aura::Window* root_window);
611 609
612 void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate); 610 void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate);
613 void DeleteSystemTrayDelegate(); 611 void DeleteSystemTrayDelegate();
614 612
615 void CreateShelfDelegate();
616
617 // Destroys all child windows including widgets across all roots. 613 // Destroys all child windows including widgets across all roots.
618 void CloseAllRootWindowChildWindows(); 614 void CloseAllRootWindowChildWindows();
619 615
620 // SystemModalContainerEventFilterDelegate: 616 // SystemModalContainerEventFilterDelegate:
621 bool CanWindowReceiveEvents(aura::Window* window) override; 617 bool CanWindowReceiveEvents(aura::Window* window) override;
622 618
623 // Overridden from ui::EventTarget: 619 // Overridden from ui::EventTarget:
624 bool CanAcceptEvent(const ui::Event& event) override; 620 bool CanAcceptEvent(const ui::Event& event) override;
625 EventTarget* GetParentTarget() override; 621 EventTarget* GetParentTarget() override;
626 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override; 622 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
673 std::unique_ptr<LocaleNotificationController> locale_notification_controller_; 669 std::unique_ptr<LocaleNotificationController> locale_notification_controller_;
674 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 670 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
675 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; 671 std::unique_ptr<MaximizeModeController> maximize_mode_controller_;
676 std::unique_ptr<MediaController> media_controller_; 672 std::unique_ptr<MediaController> media_controller_;
677 std::unique_ptr<MruWindowTracker> mru_window_tracker_; 673 std::unique_ptr<MruWindowTracker> mru_window_tracker_;
678 std::unique_ptr<NewWindowController> new_window_controller_; 674 std::unique_ptr<NewWindowController> new_window_controller_;
679 std::unique_ptr<PaletteDelegate> palette_delegate_; 675 std::unique_ptr<PaletteDelegate> palette_delegate_;
680 std::unique_ptr<ResizeShadowController> resize_shadow_controller_; 676 std::unique_ptr<ResizeShadowController> resize_shadow_controller_;
681 std::unique_ptr<SessionController> session_controller_; 677 std::unique_ptr<SessionController> session_controller_;
682 std::unique_ptr<ShelfController> shelf_controller_; 678 std::unique_ptr<ShelfController> shelf_controller_;
683 std::unique_ptr<ShelfDelegate> shelf_delegate_;
684 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; 679 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_;
685 std::unique_ptr<ShellDelegate> shell_delegate_; 680 std::unique_ptr<ShellDelegate> shell_delegate_;
686 std::unique_ptr<ShutdownController> shutdown_controller_; 681 std::unique_ptr<ShutdownController> shutdown_controller_;
687 std::unique_ptr<SystemTrayController> system_tray_controller_; 682 std::unique_ptr<SystemTrayController> system_tray_controller_;
688 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; 683 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_;
689 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; 684 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_;
690 std::unique_ptr<ToastManager> toast_manager_; 685 std::unique_ptr<ToastManager> toast_manager_;
691 std::unique_ptr<VpnList> vpn_list_; 686 std::unique_ptr<VpnList> vpn_list_;
692 std::unique_ptr<WallpaperController> wallpaper_controller_; 687 std::unique_ptr<WallpaperController> wallpaper_controller_;
693 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_; 688 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 base::ObserverList<ShellObserver> shell_observers_; 802 base::ObserverList<ShellObserver> shell_observers_;
808 803
809 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 804 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
810 805
811 DISALLOW_COPY_AND_ASSIGN(Shell); 806 DISALLOW_COPY_AND_ASSIGN(Shell);
812 }; 807 };
813 808
814 } // namespace ash 809 } // namespace ash
815 810
816 #endif // ASH_SHELL_H_ 811 #endif // ASH_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698