| 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 |
| 68 // provided, then the tooltip will be used. |
| 69 void SetAriaLabel(const base::string16& aria_label); |
| 70 |
| 67 // 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 |
| 68 // go to state where password is required for unlock. | 72 // go to state where password is required for unlock. |
| 69 void SetHardlockOnClick(); | 73 void SetHardlockOnClick(); |
| 70 | 74 |
| 71 private: | 75 private: |
| 72 UserPodCustomIcon icon_; | 76 UserPodCustomIcon icon_; |
| 73 | 77 |
| 74 base::string16 tooltip_; | 78 base::string16 tooltip_; |
| 75 bool autoshow_tooltip_; | 79 bool autoshow_tooltip_; |
| 76 | 80 |
| 81 base::string16 aria_label_; |
| 82 |
| 77 bool hardlock_on_click_; | 83 bool hardlock_on_click_; |
| 78 | 84 |
| 79 DISALLOW_COPY_AND_ASSIGN(UserPodCustomIconOptions); | 85 DISALLOW_COPY_AND_ASSIGN(UserPodCustomIconOptions); |
| 80 }; | 86 }; |
| 81 | 87 |
| 82 class LockHandler { | 88 class LockHandler { |
| 83 public: | 89 public: |
| 84 // Supported authentication types. Keep in sync with the enum in | 90 // Supported authentication types. Keep in sync with the enum in |
| 85 // user_pod_row.js. | 91 // user_pod_row.js. |
| 86 enum AuthType { | 92 enum AuthType { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 158 |
| 153 LockHandler* lock_handler_; // Not owned | 159 LockHandler* lock_handler_; // Not owned |
| 154 // The last focused user's id. | 160 // The last focused user's id. |
| 155 std::string focused_user_id_; | 161 std::string focused_user_id_; |
| 156 ObserverList<Observer, true> observers_; | 162 ObserverList<Observer, true> observers_; |
| 157 | 163 |
| 158 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); | 164 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); |
| 159 }; | 165 }; |
| 160 | 166 |
| 161 #endif // CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ | 167 #endif // CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ |
| OLD | NEW |