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

Side by Side Diff: ash/shell.h

Issue 2791463002: mash: Remove ShelfDelegate; move functions to ShelfModel. (Closed)
Patch Set: Sync and rebase. 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 MaximizeModeController* maximize_mode_controller() { 320 MaximizeModeController* maximize_mode_controller() {
322 return maximize_mode_controller_.get(); 321 return maximize_mode_controller_.get();
323 } 322 }
324 MediaController* media_controller() { return media_controller_.get(); } 323 MediaController* media_controller() { return media_controller_.get(); }
325 MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); } 324 MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); }
326 NewWindowController* new_window_controller() { 325 NewWindowController* new_window_controller() {
327 return new_window_controller_.get(); 326 return new_window_controller_.get();
328 } 327 }
329 SessionController* session_controller() { return session_controller_.get(); } 328 SessionController* session_controller() { return session_controller_.get(); }
330 ShelfController* shelf_controller() { return shelf_controller_.get(); } 329 ShelfController* shelf_controller() { return shelf_controller_.get(); }
331 ShelfDelegate* shelf_delegate() { return shelf_delegate_.get(); }
332 ShelfModel* shelf_model(); 330 ShelfModel* shelf_model();
333 ShutdownController* shutdown_controller() { 331 ShutdownController* shutdown_controller() {
334 return shutdown_controller_.get(); 332 return shutdown_controller_.get();
335 } 333 }
336 SystemTrayController* system_tray_controller() { 334 SystemTrayController* system_tray_controller() {
337 return system_tray_controller_.get(); 335 return system_tray_controller_.get();
338 } 336 }
339 SystemTrayDelegate* system_tray_delegate() { 337 SystemTrayDelegate* system_tray_delegate() {
340 return system_tray_delegate_.get(); 338 return system_tray_delegate_.get();
341 } 339 }
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 600
603 // Initializes virtual keyboard controller. 601 // Initializes virtual keyboard controller.
604 void InitKeyboard(); 602 void InitKeyboard();
605 603
606 // Initializes the root window so that it can host browser windows. 604 // Initializes the root window so that it can host browser windows.
607 void InitRootWindow(aura::Window* root_window); 605 void InitRootWindow(aura::Window* root_window);
608 606
609 void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate); 607 void SetSystemTrayDelegate(std::unique_ptr<SystemTrayDelegate> delegate);
610 void DeleteSystemTrayDelegate(); 608 void DeleteSystemTrayDelegate();
611 609
612 void CreateShelfDelegate();
613
614 // Destroys all child windows including widgets across all roots. 610 // Destroys all child windows including widgets across all roots.
615 void CloseAllRootWindowChildWindows(); 611 void CloseAllRootWindowChildWindows();
616 612
617 // SystemModalContainerEventFilterDelegate: 613 // SystemModalContainerEventFilterDelegate:
618 bool CanWindowReceiveEvents(aura::Window* window) override; 614 bool CanWindowReceiveEvents(aura::Window* window) override;
619 615
620 // Overridden from ui::EventTarget: 616 // Overridden from ui::EventTarget:
621 bool CanAcceptEvent(const ui::Event& event) override; 617 bool CanAcceptEvent(const ui::Event& event) override;
622 EventTarget* GetParentTarget() override; 618 EventTarget* GetParentTarget() override;
623 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override; 619 std::unique_ptr<ui::EventTargetIterator> GetChildIterator() const override;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
670 std::unique_ptr<LocaleNotificationController> locale_notification_controller_; 666 std::unique_ptr<LocaleNotificationController> locale_notification_controller_;
671 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 667 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
672 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; 668 std::unique_ptr<MaximizeModeController> maximize_mode_controller_;
673 std::unique_ptr<MediaController> media_controller_; 669 std::unique_ptr<MediaController> media_controller_;
674 std::unique_ptr<MruWindowTracker> mru_window_tracker_; 670 std::unique_ptr<MruWindowTracker> mru_window_tracker_;
675 std::unique_ptr<NewWindowController> new_window_controller_; 671 std::unique_ptr<NewWindowController> new_window_controller_;
676 std::unique_ptr<PaletteDelegate> palette_delegate_; 672 std::unique_ptr<PaletteDelegate> palette_delegate_;
677 std::unique_ptr<ResizeShadowController> resize_shadow_controller_; 673 std::unique_ptr<ResizeShadowController> resize_shadow_controller_;
678 std::unique_ptr<SessionController> session_controller_; 674 std::unique_ptr<SessionController> session_controller_;
679 std::unique_ptr<ShelfController> shelf_controller_; 675 std::unique_ptr<ShelfController> shelf_controller_;
680 std::unique_ptr<ShelfDelegate> shelf_delegate_;
681 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; 676 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_;
682 std::unique_ptr<ShellDelegate> shell_delegate_; 677 std::unique_ptr<ShellDelegate> shell_delegate_;
683 std::unique_ptr<ShutdownController> shutdown_controller_; 678 std::unique_ptr<ShutdownController> shutdown_controller_;
684 std::unique_ptr<SystemTrayController> system_tray_controller_; 679 std::unique_ptr<SystemTrayController> system_tray_controller_;
685 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; 680 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_;
686 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; 681 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_;
687 std::unique_ptr<ToastManager> toast_manager_; 682 std::unique_ptr<ToastManager> toast_manager_;
688 std::unique_ptr<VpnList> vpn_list_; 683 std::unique_ptr<VpnList> vpn_list_;
689 std::unique_ptr<WallpaperController> wallpaper_controller_; 684 std::unique_ptr<WallpaperController> wallpaper_controller_;
690 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_; 685 std::unique_ptr<WallpaperDelegate> wallpaper_delegate_;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 base::ObserverList<ShellObserver> shell_observers_; 799 base::ObserverList<ShellObserver> shell_observers_;
805 800
806 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 801 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
807 802
808 DISALLOW_COPY_AND_ASSIGN(Shell); 803 DISALLOW_COPY_AND_ASSIGN(Shell);
809 }; 804 };
810 805
811 } // namespace ash 806 } // namespace ash
812 807
813 #endif // ASH_SHELL_H_ 808 #endif // ASH_SHELL_H_
OLDNEW
« ash/shelf/shelf_model_unittest.cc ('K') | « ash/shelf/shelf_widget.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698