OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SIGNIN_SCREENLOCK_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ |
6 #define CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ | 6 #define CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 class LockHandler { | 35 class LockHandler { |
36 public: | 36 public: |
37 // Supported authentication types. Keep in sync with the enum in | 37 // Supported authentication types. Keep in sync with the enum in |
38 // user_pod_row.js. | 38 // user_pod_row.js. |
39 enum AuthType { | 39 enum AuthType { |
40 OFFLINE_PASSWORD = 0, | 40 OFFLINE_PASSWORD = 0, |
41 ONLINE_SIGN_IN = 1, | 41 ONLINE_SIGN_IN = 1, |
42 NUMERIC_PIN = 2, | 42 NUMERIC_PIN = 2, |
43 USER_CLICK = 3, | 43 USER_CLICK = 3, |
| 44 EXPAND_THEN_USER_CLICK = 4, |
44 }; | 45 }; |
45 | 46 |
46 // Displays |message| in a banner on the lock screen. | 47 // Displays |message| in a banner on the lock screen. |
47 virtual void ShowBannerMessage(const std::string& message) = 0; | 48 virtual void ShowBannerMessage(const std::string& message) = 0; |
48 | 49 |
49 // Shows a custom icon in the user pod on the lock screen. | 50 // Shows a custom icon in the user pod on the lock screen. |
50 virtual void ShowUserPodCustomIcon(const std::string& user_email, | 51 virtual void ShowUserPodCustomIcon(const std::string& user_email, |
51 const gfx::Image& icon) = 0; | 52 const gfx::Image& icon) = 0; |
52 | 53 |
53 // Hides the custom icon in user pod for a user. | 54 // Hides the custom icon in user pod for a user. |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 ScreenlockBridge(); | 93 ScreenlockBridge(); |
93 ~ScreenlockBridge(); | 94 ~ScreenlockBridge(); |
94 | 95 |
95 LockHandler* lock_handler_; // Not owned | 96 LockHandler* lock_handler_; // Not owned |
96 ObserverList<Observer, true> observers_; | 97 ObserverList<Observer, true> observers_; |
97 | 98 |
98 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); | 99 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); |
99 }; | 100 }; |
100 | 101 |
101 #endif // CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ | 102 #endif // CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ |
OLD | NEW |