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/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // screenlock web UI. | 57 // screenlock web UI. |
58 scoped_ptr<base::DictionaryValue> ToDictionaryValue() const; | 58 scoped_ptr<base::DictionaryValue> ToDictionaryValue() const; |
59 | 59 |
60 // Sets the icon that should be shown in the UI. | 60 // Sets the icon that should be shown in the UI. |
61 void SetIcon(UserPodCustomIcon icon); | 61 void SetIcon(UserPodCustomIcon icon); |
62 | 62 |
63 // Sets the icon tooltip. If |autoshow| is set the tooltip is automatically | 63 // Sets the icon tooltip. If |autoshow| is set the tooltip is automatically |
64 // shown with the icon. | 64 // shown with the icon. |
65 void SetTooltip(const base::string16& tooltip, bool autoshow); | 65 void SetTooltip(const base::string16& tooltip, bool autoshow); |
66 | 66 |
67 // Sets the accessiblity label of the icon. If this attribute is not | 67 // Sets the accessibility label of the icon. If this attribute is not |
68 // provided, then the tooltip will be used. | 68 // provided, then the tooltip will be used. |
69 void SetAriaLabel(const base::string16& aria_label); | 69 void SetAriaLabel(const base::string16& aria_label); |
70 | 70 |
71 // If hardlock on click is set, clicking the icon in the screenlock will | 71 // If hardlock on click is set, clicking the icon in the screenlock will |
72 // go to state where password is required for unlock. | 72 // go to state where password is required for unlock. |
73 void SetHardlockOnClick(); | 73 void SetHardlockOnClick(); |
74 | 74 |
75 private: | 75 private: |
76 UserPodCustomIcon icon_; | 76 UserPodCustomIcon icon_; |
77 | 77 |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 | 158 |
159 LockHandler* lock_handler_; // Not owned | 159 LockHandler* lock_handler_; // Not owned |
160 // The last focused user's id. | 160 // The last focused user's id. |
161 std::string focused_user_id_; | 161 std::string focused_user_id_; |
162 ObserverList<Observer, true> observers_; | 162 ObserverList<Observer, true> observers_; |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); | 164 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); |
165 }; | 165 }; |
166 | 166 |
167 #endif // CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ | 167 #endif // CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ |
OLD | NEW |