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

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

Issue 1872873002: Add autotestPrivate.getVisibleNotifications API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 namespace autotestPrivate { 7 namespace autotestPrivate {
8 8
9 dictionary LoginStatusDict { 9 dictionary LoginStatusDict {
10 // Are we logged in? 10 // Are we logged in?
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 boolean isUserInstalled; 46 boolean isUserInstalled;
47 boolean isEnabled; 47 boolean isEnabled;
48 boolean allowedInIncognito; 48 boolean allowedInIncognito;
49 boolean hasPageAction; 49 boolean hasPageAction;
50 }; 50 };
51 dictionary ExtensionsInfoArray { 51 dictionary ExtensionsInfoArray {
52 ExtensionInfoDict[] extensions; 52 ExtensionInfoDict[] extensions;
53 }; 53 };
54 callback ExtensionsInfoCallback = void (ExtensionsInfoArray info); 54 callback ExtensionsInfoCallback = void (ExtensionsInfoArray info);
55 55
56 dictionary Notification {
victorhsieh0 2016/04/08 19:11:12 yoshiki@, I tentatively added these fields, but if
yoshiki 2016/04/11 04:49:46 I think we can test a state of progress bar as wel
victorhsieh0 2016/04/11 18:28:26 Done.
57 DOMString id;
58 DOMString type;
59 DOMString title;
60 DOMString message;
61 long priority;
62 };
63 dictionary NotificationArray {
64 Notification[] notifications;
65 };
66 callback NotificationArrayCallback =
yoshiki 2016/04/11 04:41:47 nit: no need for new line.
victorhsieh0 2016/04/11 18:28:26 Done.
67 void (NotificationArray notifications);
68
56 interface Functions { 69 interface Functions {
57 // Logout of a user session. 70 // Logout of a user session.
58 static void logout(); 71 static void logout();
59 72
60 // Restart the browser. 73 // Restart the browser.
61 static void restart(); 74 static void restart();
62 75
63 // Shutdown the browser. 76 // Shutdown the browser.
64 // |force|: if set, ignore ongoing downloads and onunbeforeunload handlers. 77 // |force|: if set, ignore ongoing downloads and onunbeforeunload handlers.
65 static void shutdown(boolean force); 78 static void shutdown(boolean force);
(...skipping 30 matching lines...) Expand all
96 // |enabled|: if set, enable Australian scrolling. 109 // |enabled|: if set, enable Australian scrolling.
97 static void setNaturalScroll(boolean enabled); 110 static void setNaturalScroll(boolean enabled);
98 111
99 // Set the mouse pointer sensitivity setting. 112 // Set the mouse pointer sensitivity setting.
100 // |value|: the pointer sensitivity setting index. 113 // |value|: the pointer sensitivity setting index.
101 static void setMouseSensitivity(long value); 114 static void setMouseSensitivity(long value);
102 115
103 // Swap the primary mouse button for left click. 116 // Swap the primary mouse button for left click.
104 // |right|: if set, swap the primary mouse button. 117 // |right|: if set, swap the primary mouse button.
105 static void setPrimaryButtonRight(boolean right); 118 static void setPrimaryButtonRight(boolean right);
119
120 // Get visible notifications on the system.
121 static void getVisibleNotifications(NotificationArrayCallback callback);
106 }; 122 };
107 }; 123 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698