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

Side by Side Diff: chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api.h

Issue 446743003: Hook up new API for easy unlock to update lock screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: v Created 6 years, 4 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_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE_AP I_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 // AsyncExtensionFunction: 148 // AsyncExtensionFunction:
149 virtual bool RunAsync() OVERRIDE; 149 virtual bool RunAsync() OVERRIDE;
150 150
151 // Callback that is called when the seek operation succeeds. 151 // Callback that is called when the seek operation succeeds.
152 void OnSeekCompleted(const easy_unlock::SeekDeviceResult& seek_result); 152 void OnSeekCompleted(const easy_unlock::SeekDeviceResult& seek_result);
153 153
154 DISALLOW_COPY_AND_ASSIGN( 154 DISALLOW_COPY_AND_ASSIGN(
155 EasyUnlockPrivateSeekBluetoothDeviceByAddressFunction); 155 EasyUnlockPrivateSeekBluetoothDeviceByAddressFunction);
156 }; 156 };
157 157
158 class EasyUnlockPrivateUpdateScreenlockStateFunction
159 : public SyncExtensionFunction {
160 public:
161 EasyUnlockPrivateUpdateScreenlockStateFunction();
162
163 protected:
164 virtual ~EasyUnlockPrivateUpdateScreenlockStateFunction();
165
166 virtual bool RunSync() OVERRIDE;
167
168 private:
169 DECLARE_EXTENSION_FUNCTION("easyUnlockPrivate.updateScreenlockState",
170 EASYUNLOCKPRIVATE_UPDATESCREENLOCKSTATE)
171 };
xiyuan 2014/08/12 18:09:47 nit: DISALLOW_COPY_AND_ASSIGN( EasyUnlockPriva
tbarzic 2014/08/12 19:14:36 Done.
172
158 } // namespace api 173 } // namespace api
159 } // namespace extensions 174 } // namespace extensions
160 175
161 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE _API_H_ 176 #endif // CHROME_BROWSER_EXTENSIONS_API_EASY_UNLOCK_PRIVATE_EASY_UNLOCK_PRIVATE _API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698