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

Side by Side Diff: ash/shell.h

Issue 2690543003: Send notification to users upon receiving sms messages (Closed)
Patch Set: fix nits Created 3 years, 10 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/default_200_percent/cros/status/status_sms_dismiss.png ('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>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 class ResolutionNotificationController; 102 class ResolutionNotificationController;
103 class RootWindowController; 103 class RootWindowController;
104 class ScopedOverviewAnimationSettingsFactoryAura; 104 class ScopedOverviewAnimationSettingsFactoryAura;
105 class ScreenOrientationController; 105 class ScreenOrientationController;
106 class ScreenshotController; 106 class ScreenshotController;
107 class ScreenPinningController; 107 class ScreenPinningController;
108 class ScreenPositionController; 108 class ScreenPositionController;
109 class SessionStateDelegate; 109 class SessionStateDelegate;
110 struct ShellInitParams; 110 struct ShellInitParams;
111 class ShutdownObserver; 111 class ShutdownObserver;
112 class SmsObserver;
112 class StickyKeysController; 113 class StickyKeysController;
113 class SystemGestureEventFilter; 114 class SystemGestureEventFilter;
114 class SystemModalContainerEventFilter; 115 class SystemModalContainerEventFilter;
115 class SystemTray; 116 class SystemTray;
116 class ToplevelWindowEventHandler; 117 class ToplevelWindowEventHandler;
117 class AshTouchTransformController; 118 class AshTouchTransformController;
118 class ScreenLayoutObserver; 119 class ScreenLayoutObserver;
119 class VirtualKeyboardController; 120 class VirtualKeyboardController;
120 class VideoActivityNotifier; 121 class VideoActivityNotifier;
121 class VideoDetector; 122 class VideoDetector;
122 class WebNotificationTray; 123 class WebNotificationTray;
123 class WindowPositioner; 124 class WindowPositioner;
124 class WindowTreeHostManager; 125 class WindowTreeHostManager;
125 class WmShell; 126 class WmShell;
126 class WmWindow; 127 class WmWindow;
127 128
128 namespace shell { 129 namespace shell {
129 class WindowWatcher; 130 class WindowWatcher;
130 } 131 }
131 132
132 namespace test { 133 namespace test {
133 class ShellTestApi; 134 class ShellTestApi;
135 class SmsObserverTest;
134 } 136 }
135 137
136 // Shell is a singleton object that presents the Shell API and implements the 138 // Shell is a singleton object that presents the Shell API and implements the
137 // RootWindow's delegate interface. 139 // RootWindow's delegate interface.
138 // 140 //
139 // Upon creation, the Shell sets itself as the RootWindow's delegate, which 141 // Upon creation, the Shell sets itself as the RootWindow's delegate, which
140 // takes ownership of the Shell. 142 // takes ownership of the Shell.
141 class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate, 143 class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
142 public ui::EventTarget { 144 public ui::EventTarget {
143 public: 145 public:
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 402
401 GPUSupport* gpu_support() { return gpu_support_.get(); } 403 GPUSupport* gpu_support() { return gpu_support_.get(); }
402 404
403 private: 405 private:
404 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor); 406 FRIEND_TEST_ALL_PREFIXES(ExtendedDesktopTest, TestCursor);
405 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors); 407 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, MouseEventCursors);
406 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate); 408 FRIEND_TEST_ALL_PREFIXES(WindowManagerTest, TransformActivate);
407 friend class RootWindowController; 409 friend class RootWindowController;
408 friend class test::ShellTestApi; 410 friend class test::ShellTestApi;
409 friend class shell::WindowWatcher; 411 friend class shell::WindowWatcher;
412 friend class SmsObserverTest;
410 413
411 explicit Shell(std::unique_ptr<WmShell> wm_shell); 414 explicit Shell(std::unique_ptr<WmShell> wm_shell);
412 ~Shell() override; 415 ~Shell() override;
413 416
414 void Init(const ShellInitParams& init_params); 417 void Init(const ShellInitParams& init_params);
415 418
416 // Initializes virtual keyboard controller. 419 // Initializes virtual keyboard controller.
417 void InitKeyboard(); 420 void InitKeyboard();
418 421
419 // Initializes the root window so that it can host browser windows. 422 // Initializes the root window so that it can host browser windows.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 std::unique_ptr<DisplayColorManager> display_color_manager_; 522 std::unique_ptr<DisplayColorManager> display_color_manager_;
520 std::unique_ptr<DisplayErrorObserver> display_error_observer_; 523 std::unique_ptr<DisplayErrorObserver> display_error_observer_;
521 std::unique_ptr<ProjectingObserver> projecting_observer_; 524 std::unique_ptr<ProjectingObserver> projecting_observer_;
522 525
523 // Listens for output changes and updates the display manager. 526 // Listens for output changes and updates the display manager.
524 std::unique_ptr<display::DisplayChangeObserver> display_change_observer_; 527 std::unique_ptr<display::DisplayChangeObserver> display_change_observer_;
525 528
526 // Listens for shutdown and updates DisplayConfigurator. 529 // Listens for shutdown and updates DisplayConfigurator.
527 std::unique_ptr<ShutdownObserver> shutdown_observer_; 530 std::unique_ptr<ShutdownObserver> shutdown_observer_;
528 531
532 // Listens for new sms messages and shows notifications.
533 std::unique_ptr<SmsObserver> sms_observer_;
534
529 // Implements content::ScreenOrientationController for Chrome OS. 535 // Implements content::ScreenOrientationController for Chrome OS.
530 std::unique_ptr<ScreenOrientationController> screen_orientation_controller_; 536 std::unique_ptr<ScreenOrientationController> screen_orientation_controller_;
531 std::unique_ptr<ScreenLayoutObserver> screen_layout_observer_; 537 std::unique_ptr<ScreenLayoutObserver> screen_layout_observer_;
532 538
533 std::unique_ptr<AshTouchTransformController> touch_transformer_controller_; 539 std::unique_ptr<AshTouchTransformController> touch_transformer_controller_;
534 540
535 std::unique_ptr<ui::EventHandler> magnifier_key_scroll_handler_; 541 std::unique_ptr<ui::EventHandler> magnifier_key_scroll_handler_;
536 std::unique_ptr<ui::EventHandler> speech_feedback_handler_; 542 std::unique_ptr<ui::EventHandler> speech_feedback_handler_;
537 std::unique_ptr<LaserPointerController> laser_pointer_controller_; 543 std::unique_ptr<LaserPointerController> laser_pointer_controller_;
538 std::unique_ptr<PartialMagnificationController> 544 std::unique_ptr<PartialMagnificationController>
(...skipping 18 matching lines...) Expand all
557 std::unique_ptr<ImmersiveHandlerFactoryAsh> immersive_handler_factory_; 563 std::unique_ptr<ImmersiveHandlerFactoryAsh> immersive_handler_factory_;
558 564
559 std::unique_ptr<AppListDelegateImpl> app_list_delegate_impl_; 565 std::unique_ptr<AppListDelegateImpl> app_list_delegate_impl_;
560 566
561 DISALLOW_COPY_AND_ASSIGN(Shell); 567 DISALLOW_COPY_AND_ASSIGN(Shell);
562 }; 568 };
563 569
564 } // namespace ash 570 } // namespace ash
565 571
566 #endif // ASH_SHELL_H_ 572 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/resources/default_200_percent/cros/status/status_sms_dismiss.png ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698