OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEOS_H
_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEOS_H
_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEOS_H
_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEOS_H
_ |
7 | 7 |
8 #include "ash/shell_observer.h" | 8 #include "ash/shell_observer.h" |
9 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" | 9 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" |
10 #include "chromeos/login/login_state.h" | 10 #include "chromeos/login/login_state.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 public chromeos::LoginState::Observer, | 23 public chromeos::LoginState::Observer, |
24 public chromeos::UserAddingScreen::Observer { | 24 public chromeos::UserAddingScreen::Observer { |
25 public: | 25 public: |
26 explicit LoginStateNotificationBlockerChromeOS( | 26 explicit LoginStateNotificationBlockerChromeOS( |
27 message_center::MessageCenter* message_center); | 27 message_center::MessageCenter* message_center); |
28 virtual ~LoginStateNotificationBlockerChromeOS(); | 28 virtual ~LoginStateNotificationBlockerChromeOS(); |
29 | 29 |
30 private: | 30 private: |
31 // message_center::NotificationBlocker overrides: | 31 // message_center::NotificationBlocker overrides: |
32 virtual bool ShouldShowNotificationAsPopup( | 32 virtual bool ShouldShowNotificationAsPopup( |
33 const message_center::NotifierId& notifier_id) const OVERRIDE; | 33 const message_center::NotifierId& notifier_id) const override; |
34 | 34 |
35 // ash::ShellObserver overrides: | 35 // ash::ShellObserver overrides: |
36 virtual void OnLockStateChanged(bool locked) OVERRIDE; | 36 virtual void OnLockStateChanged(bool locked) override; |
37 virtual void OnAppTerminating() OVERRIDE; | 37 virtual void OnAppTerminating() override; |
38 | 38 |
39 // chromeos::LoginState::Observer overrides: | 39 // chromeos::LoginState::Observer overrides: |
40 virtual void LoggedInStateChanged() OVERRIDE; | 40 virtual void LoggedInStateChanged() override; |
41 | 41 |
42 // chromeos::UserAddingScreen::Observer overrides: | 42 // chromeos::UserAddingScreen::Observer overrides: |
43 virtual void OnUserAddingStarted() OVERRIDE; | 43 virtual void OnUserAddingStarted() override; |
44 virtual void OnUserAddingFinished() OVERRIDE; | 44 virtual void OnUserAddingFinished() override; |
45 | 45 |
46 bool locked_; | 46 bool locked_; |
47 bool observing_; | 47 bool observing_; |
48 | 48 |
49 DISALLOW_COPY_AND_ASSIGN(LoginStateNotificationBlockerChromeOS); | 49 DISALLOW_COPY_AND_ASSIGN(LoginStateNotificationBlockerChromeOS); |
50 }; | 50 }; |
51 | 51 |
52 #endif // CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEO
S_H_ | 52 #endif // CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEO
S_H_ |
OLD | NEW |