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

Side by Side Diff: chrome/common/extensions/api/autotest_private.idl

Issue 13520005: autotestPrivate.loginStatus returns a dictionary instead of a string. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // API for integration testing. To be used on test images with a test component 5 // API for integration testing. To be used on test images with a test component
6 // extension. 6 // extension.
7 [nodoc] namespace autotestPrivate { 7 [nodoc] namespace autotestPrivate {
8 8
9 callback LoginStatusCallback = void (DOMString status); 9 dictionary LoginStatusDict {
10 boolean is_logged_in;
11 boolean is_owner;
12 boolean is_screen_locked;
13
14 boolean is_regular_user;
15 boolean is_guest;
16 boolean is_kiosk;
17
18 DOMString email;
19 DOMString display_email;
20 long user_image;
Matt Perry 2013/04/04 00:12:03 use camelCasing style for these.
achuithb 2013/04/04 00:42:28 Done.
21 };
22 callback LoginStatusCallback = void (LoginStatusDict status);
10 23
11 interface Functions { 24 interface Functions {
12 // Logout of a user session. 25 // Logout of a user session.
13 static void logout(); 26 static void logout();
14 27
15 // Restart the browser. 28 // Restart the browser.
16 static void restart(); 29 static void restart();
17 30
18 // Shutdown the browser. 31 // Shutdown the browser.
19 // |force|: if set, ignore ongoing downloads and onunbeforeunload handlers. 32 // |force|: if set, ignore ongoing downloads and onunbeforeunload handlers.
20 static void shutdown(boolean force); 33 static void shutdown(boolean force);
21 34
22 // Get login status. 35 // Get login status.
23 static void loginStatus(LoginStatusCallback callback); 36 static void loginStatus(LoginStatusCallback callback);
24 }; 37 };
25 }; 38 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698