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

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

Issue 935303002: [Smart Lock] Measure clicks on the lock icon during Easy Unlock's trial run. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 void SetTooltip(const base::string16& tooltip, bool autoshow); 60 void SetTooltip(const base::string16& tooltip, bool autoshow);
61 61
62 // Sets the accessibility label of the icon. If this attribute is not 62 // Sets the accessibility label of the icon. If this attribute is not
63 // provided, then the tooltip will be used. 63 // provided, then the tooltip will be used.
64 void SetAriaLabel(const base::string16& aria_label); 64 void SetAriaLabel(const base::string16& aria_label);
65 65
66 // If hardlock on click is set, clicking the icon in the screenlock will 66 // If hardlock on click is set, clicking the icon in the screenlock will
67 // go to state where password is required for unlock. 67 // go to state where password is required for unlock.
68 void SetHardlockOnClick(); 68 void SetHardlockOnClick();
69 69
70 // If the current lock screen is a trial run to introduce users to Easy
71 // Unlock, the icon will record metrics upon click.
72 void SetTrialRun();
73
70 private: 74 private:
71 UserPodCustomIcon icon_; 75 UserPodCustomIcon icon_;
72 76
73 base::string16 tooltip_; 77 base::string16 tooltip_;
74 bool autoshow_tooltip_; 78 bool autoshow_tooltip_;
75 79
76 base::string16 aria_label_; 80 base::string16 aria_label_;
77 81
78 bool hardlock_on_click_; 82 bool hardlock_on_click_;
79 83
84 bool is_trial_run_;
85
80 DISALLOW_COPY_AND_ASSIGN(UserPodCustomIconOptions); 86 DISALLOW_COPY_AND_ASSIGN(UserPodCustomIconOptions);
81 }; 87 };
82 88
83 class LockHandler { 89 class LockHandler {
84 public: 90 public:
85 // Supported authentication types. Keep in sync with the enum in 91 // Supported authentication types. Keep in sync with the enum in
86 // user_pod_row.js. 92 // user_pod_row.js.
87 enum AuthType { 93 enum AuthType {
88 OFFLINE_PASSWORD = 0, 94 OFFLINE_PASSWORD = 0,
89 ONLINE_SIGN_IN = 1, 95 ONLINE_SIGN_IN = 1,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 183
178 LockHandler* lock_handler_; // Not owned 184 LockHandler* lock_handler_; // Not owned
179 // The last focused user's id. 185 // The last focused user's id.
180 std::string focused_user_id_; 186 std::string focused_user_id_;
181 ObserverList<Observer, true> observers_; 187 ObserverList<Observer, true> observers_;
182 188
183 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge); 189 DISALLOW_COPY_AND_ASSIGN(ScreenlockBridge);
184 }; 190 };
185 191
186 #endif // CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_ 192 #endif // CHROME_BROWSER_SIGNIN_SCREENLOCK_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/easy_unlock_service.cc ('k') | chrome/browser/signin/screenlock_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698