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/common/shell_observer.h" | 8 #include "ash/common/shell_observer.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" | 10 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 public chromeos::LoginState::Observer, | 24 public chromeos::LoginState::Observer, |
25 public chromeos::UserAddingScreen::Observer { | 25 public chromeos::UserAddingScreen::Observer { |
26 public: | 26 public: |
27 explicit LoginStateNotificationBlockerChromeOS( | 27 explicit LoginStateNotificationBlockerChromeOS( |
28 message_center::MessageCenter* message_center); | 28 message_center::MessageCenter* message_center); |
29 ~LoginStateNotificationBlockerChromeOS() override; | 29 ~LoginStateNotificationBlockerChromeOS() override; |
30 | 30 |
31 private: | 31 private: |
32 // message_center::NotificationBlocker overrides: | 32 // message_center::NotificationBlocker overrides: |
33 bool ShouldShowNotificationAsPopup( | 33 bool ShouldShowNotificationAsPopup( |
34 const message_center::NotifierId& notifier_id) const override; | 34 const message_center::Notification& notification) const override; |
35 | 35 |
36 // ash::ShellObserver overrides: | 36 // ash::ShellObserver overrides: |
37 void OnLockStateChanged(bool locked) override; | 37 void OnLockStateChanged(bool locked) override; |
38 void OnAppTerminating() override; | 38 void OnAppTerminating() override; |
39 | 39 |
40 // chromeos::LoginState::Observer overrides: | 40 // chromeos::LoginState::Observer overrides: |
41 void LoggedInStateChanged() override; | 41 void LoggedInStateChanged() override; |
42 | 42 |
43 // chromeos::UserAddingScreen::Observer overrides: | 43 // chromeos::UserAddingScreen::Observer overrides: |
44 void OnUserAddingStarted() override; | 44 void OnUserAddingStarted() override; |
45 void OnUserAddingFinished() override; | 45 void OnUserAddingFinished() override; |
46 | 46 |
47 bool locked_; | 47 bool locked_; |
48 bool observing_; | 48 bool observing_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(LoginStateNotificationBlockerChromeOS); | 50 DISALLOW_COPY_AND_ASSIGN(LoginStateNotificationBlockerChromeOS); |
51 }; | 51 }; |
52 | 52 |
53 #endif // CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEO
S_H_ | 53 #endif // CHROME_BROWSER_NOTIFICATIONS_LOGIN_STATE_NOTIFICATION_BLOCKER_CHROMEO
S_H_ |
OLD | NEW |