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

Side by Side Diff: chrome/browser/signin/screenlock_bridge.h

Issue 369893005: Implement new design for expanded public session pod design (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed ScreenLockerTest. Rebased. Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698