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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shell.h
diff --git a/ash/shell.h b/ash/shell.h
index 33b7ed6e70f5fb05ce3bef8a93a02e6bb6f7a0f5..8731782e48cc45a22831e3edb4bffa2921505c6c 100644
--- a/ash/shell.h
+++ b/ash/shell.h
@@ -109,6 +109,7 @@ class ScreenPositionController;
class SessionStateDelegate;
struct ShellInitParams;
class ShutdownObserver;
+class SmsObserver;
class StickyKeysController;
class SystemGestureEventFilter;
class SystemModalContainerEventFilter;
@@ -131,6 +132,7 @@ class WindowWatcher;
namespace test {
class ShellTestApi;
+class SmsObserverTest;
}
// Shell is a singleton object that presents the Shell API and implements the
@@ -407,6 +409,7 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
friend class RootWindowController;
friend class test::ShellTestApi;
friend class shell::WindowWatcher;
+ friend class SmsObserverTest;
explicit Shell(std::unique_ptr<WmShell> wm_shell);
~Shell() override;
@@ -526,6 +529,9 @@ class ASH_EXPORT Shell : public SystemModalContainerEventFilterDelegate,
// Listens for shutdown and updates DisplayConfigurator.
std::unique_ptr<ShutdownObserver> shutdown_observer_;
+ // Listens for new sms messages and shows notifications.
+ std::unique_ptr<SmsObserver> sms_observer_;
+
// Implements content::ScreenOrientationController for Chrome OS.
std::unique_ptr<ScreenOrientationController> screen_orientation_controller_;
std::unique_ptr<ScreenLayoutObserver> screen_layout_observer_;
« 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