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

Side by Side Diff: ash/shell.h

Issue 2857103007: [Night Light] CL2: Ash and system tray work (Closed)
Patch Set: Update comment Created 3 years, 7 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
« no previous file with comments | « ash/resources/vector_icons/system_tray_night_light.1x.icon ('k') | ash/shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "ash/metrics/user_metrics_recorder.h" 13 #include "ash/metrics/user_metrics_recorder.h"
14 #include "ash/public/cpp/shelf_types.h" 14 #include "ash/public/cpp/shelf_types.h"
15 #include "ash/session/session_observer.h" 15 #include "ash/session/session_observer.h"
16 #include "ash/wm/cursor_manager_chromeos.h" 16 #include "ash/wm/cursor_manager_chromeos.h"
17 #include "ash/wm/system_modal_container_event_filter_delegate.h" 17 #include "ash/wm/system_modal_container_event_filter_delegate.h"
18 #include "base/gtest_prod_util.h" 18 #include "base/gtest_prod_util.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/memory/weak_ptr.h" 20 #include "base/memory/weak_ptr.h"
21 #include "base/observer_list.h" 21 #include "base/observer_list.h"
22 #include "ui/aura/window.h" 22 #include "ui/aura/window.h"
23 #include "ui/display/screen.h" 23 #include "ui/display/screen.h"
24 #include "ui/events/event_target.h" 24 #include "ui/events/event_target.h"
25 #include "ui/wm/core/cursor_manager.h" 25 #include "ui/wm/core/cursor_manager.h"
26 #include "ui/wm/public/activation_change_observer.h" 26 #include "ui/wm/public/activation_change_observer.h"
27 27
28 class PrefRegistrySimple;
28 class PrefService; 29 class PrefService;
29 30
30 namespace aura { 31 namespace aura {
31 class RootWindow; 32 class RootWindow;
32 class UserActivityForwarder; 33 class UserActivityForwarder;
33 class Window; 34 class Window;
34 class WindowManagerClient; 35 class WindowManagerClient;
35 class WindowTreeClient; 36 class WindowTreeClient;
36 namespace client { 37 namespace client {
37 class ActivationClient; 38 class ActivationClient;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 class LinkHandlerModelFactory; 115 class LinkHandlerModelFactory;
115 class LocaleNotificationController; 116 class LocaleNotificationController;
116 class LockStateController; 117 class LockStateController;
117 class LogoutConfirmationController; 118 class LogoutConfirmationController;
118 class MagnificationController; 119 class MagnificationController;
119 class MaximizeModeController; 120 class MaximizeModeController;
120 class MediaController; 121 class MediaController;
121 class MouseCursorEventFilter; 122 class MouseCursorEventFilter;
122 class MruWindowTracker; 123 class MruWindowTracker;
123 class NewWindowController; 124 class NewWindowController;
125 class NightLightController;
124 class OverlayEventFilter; 126 class OverlayEventFilter;
125 class PaletteDelegate; 127 class PaletteDelegate;
126 class PartialMagnificationController; 128 class PartialMagnificationController;
127 class PowerButtonController; 129 class PowerButtonController;
128 class PowerEventObserver; 130 class PowerEventObserver;
129 class ProjectingObserver; 131 class ProjectingObserver;
130 class ResizeShadowController; 132 class ResizeShadowController;
131 class ResolutionNotificationController; 133 class ResolutionNotificationController;
132 class RootWindowController; 134 class RootWindowController;
133 class ShellPort; 135 class ShellPort;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 static void set_window_manager_client(aura::WindowManagerClient* client) { 256 static void set_window_manager_client(aura::WindowManagerClient* client) {
255 window_manager_client_ = client; 257 window_manager_client_ = client;
256 } 258 }
257 static aura::WindowManagerClient* window_manager_client() { 259 static aura::WindowManagerClient* window_manager_client() {
258 return window_manager_client_; 260 return window_manager_client_;
259 } 261 }
260 262
261 static Config GetAshConfig(); 263 static Config GetAshConfig();
262 static bool ShouldUseIMEService(); 264 static bool ShouldUseIMEService();
263 265
266 // Registers all ash related prefs to the given |registry|.
267 static void RegisterPrefs(PrefRegistrySimple* registry);
268
264 // Creates a default views::NonClientFrameView for use by windows in the 269 // Creates a default views::NonClientFrameView for use by windows in the
265 // Ash environment. 270 // Ash environment.
266 views::NonClientFrameView* CreateDefaultNonClientFrameView( 271 views::NonClientFrameView* CreateDefaultNonClientFrameView(
267 views::Widget* widget); 272 views::Widget* widget);
268 273
269 // Sets work area insets of the display containing |window|, pings observers. 274 // Sets work area insets of the display containing |window|, pings observers.
270 void SetDisplayWorkAreaInsets(aura::Window* window, 275 void SetDisplayWorkAreaInsets(aura::Window* window,
271 const gfx::Insets& insets); 276 const gfx::Insets& insets);
272 277
273 // Called when a casting session is started or stopped. 278 // Called when a casting session is started or stopped.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 return logout_confirmation_controller_.get(); 325 return logout_confirmation_controller_.get();
321 } 326 }
322 MaximizeModeController* maximize_mode_controller() { 327 MaximizeModeController* maximize_mode_controller() {
323 return maximize_mode_controller_.get(); 328 return maximize_mode_controller_.get();
324 } 329 }
325 MediaController* media_controller() { return media_controller_.get(); } 330 MediaController* media_controller() { return media_controller_.get(); }
326 MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); } 331 MruWindowTracker* mru_window_tracker() { return mru_window_tracker_.get(); }
327 NewWindowController* new_window_controller() { 332 NewWindowController* new_window_controller() {
328 return new_window_controller_.get(); 333 return new_window_controller_.get();
329 } 334 }
335 NightLightController* night_light_controller() {
336 return night_light_controller_.get();
337 }
330 SessionController* session_controller() { return session_controller_.get(); } 338 SessionController* session_controller() { return session_controller_.get(); }
331 ShelfController* shelf_controller() { return shelf_controller_.get(); } 339 ShelfController* shelf_controller() { return shelf_controller_.get(); }
332 ShelfModel* shelf_model(); 340 ShelfModel* shelf_model();
333 ShutdownController* shutdown_controller() { 341 ShutdownController* shutdown_controller() {
334 return shutdown_controller_.get(); 342 return shutdown_controller_.get();
335 } 343 }
336 SystemTrayController* system_tray_controller() { 344 SystemTrayController* system_tray_controller() {
337 return system_tray_controller_.get(); 345 return system_tray_controller_.get();
338 } 346 }
339 SystemTrayDelegate* system_tray_delegate() { 347 SystemTrayDelegate* system_tray_delegate() {
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 std::unique_ptr<KeyboardUI> keyboard_ui_; 687 std::unique_ptr<KeyboardUI> keyboard_ui_;
680 std::unique_ptr<LocaleNotificationController> locale_notification_controller_; 688 std::unique_ptr<LocaleNotificationController> locale_notification_controller_;
681 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_; 689 std::unique_ptr<LogoutConfirmationController> logout_confirmation_controller_;
682 std::unique_ptr<MaximizeModeController> maximize_mode_controller_; 690 std::unique_ptr<MaximizeModeController> maximize_mode_controller_;
683 std::unique_ptr<MediaController> media_controller_; 691 std::unique_ptr<MediaController> media_controller_;
684 std::unique_ptr<MruWindowTracker> mru_window_tracker_; 692 std::unique_ptr<MruWindowTracker> mru_window_tracker_;
685 std::unique_ptr<NewWindowController> new_window_controller_; 693 std::unique_ptr<NewWindowController> new_window_controller_;
686 std::unique_ptr<PaletteDelegate> palette_delegate_; 694 std::unique_ptr<PaletteDelegate> palette_delegate_;
687 std::unique_ptr<ResizeShadowController> resize_shadow_controller_; 695 std::unique_ptr<ResizeShadowController> resize_shadow_controller_;
688 std::unique_ptr<SessionController> session_controller_; 696 std::unique_ptr<SessionController> session_controller_;
697 std::unique_ptr<NightLightController> night_light_controller_;
689 std::unique_ptr<ShelfController> shelf_controller_; 698 std::unique_ptr<ShelfController> shelf_controller_;
690 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_; 699 std::unique_ptr<ShelfWindowWatcher> shelf_window_watcher_;
691 std::unique_ptr<ShellDelegate> shell_delegate_; 700 std::unique_ptr<ShellDelegate> shell_delegate_;
692 std::unique_ptr<ShutdownController> shutdown_controller_; 701 std::unique_ptr<ShutdownController> shutdown_controller_;
693 std::unique_ptr<SystemTrayController> system_tray_controller_; 702 std::unique_ptr<SystemTrayController> system_tray_controller_;
694 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; 703 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_;
695 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_; 704 std::unique_ptr<SystemTrayNotifier> system_tray_notifier_;
696 std::unique_ptr<ToastManager> toast_manager_; 705 std::unique_ptr<ToastManager> toast_manager_;
697 std::unique_ptr<TrayAction> tray_action_; 706 std::unique_ptr<TrayAction> tray_action_;
698 std::unique_ptr<VpnList> vpn_list_; 707 std::unique_ptr<VpnList> vpn_list_;
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
814 base::ObserverList<ShellObserver> shell_observers_; 823 base::ObserverList<ShellObserver> shell_observers_;
815 824
816 scoped_refptr<base::SequencedWorkerPool> blocking_pool_; 825 scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
817 826
818 DISALLOW_COPY_AND_ASSIGN(Shell); 827 DISALLOW_COPY_AND_ASSIGN(Shell);
819 }; 828 };
820 829
821 } // namespace ash 830 } // namespace ash
822 831
823 #endif // ASH_SHELL_H_ 832 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/resources/vector_icons/system_tray_night_light.1x.icon ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698