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

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

Issue 12943010: Add native permissions dialog for apps_devtools app. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: reused the ReviewPermissions in extension_install_prompt.cc 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
« no previous file with comments | « chrome/browser/resources/apps_debugger/permissions_overlay.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // developerPrivate API. 5 // developerPrivate API.
6 // This is a private API exposing developing and debugging functionalities for 6 // This is a private API exposing developing and debugging functionalities for
7 // apps and extensions. 7 // apps and extensions.
8 8
9 namespace developerPrivate { 9 namespace developerPrivate {
10 10
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 static void autoUpdate(BooleanCallback callback); 113 static void autoUpdate(BooleanCallback callback);
114 114
115 // Returns information of all the extensions and apps installed. 115 // Returns information of all the extensions and apps installed.
116 // |include_disabled| : include disabled items. 116 // |include_disabled| : include disabled items.
117 // |include_terminated| : include terminated items. 117 // |include_terminated| : include terminated items.
118 // |callback| : Called with items info. 118 // |callback| : Called with items info.
119 static void getItemsInfo(boolean include_disabled, 119 static void getItemsInfo(boolean include_disabled,
120 boolean include_terminated, 120 boolean include_terminated,
121 ItemsInfoCallback callback); 121 ItemsInfoCallback callback);
122 122
123 // Opens a permissions dialog for given |itemId|.
124 static void showPermissionsDialog(DOMString itemId,
125 optional VoidCallback callback);
126
123 // Opens an inspect window for given |options| 127 // Opens an inspect window for given |options|
124 static void inspect(InspectOptions options, 128 static void inspect(InspectOptions options,
125 optional VoidCallback callback); 129 optional VoidCallback callback);
126 130
127 // Enable / Disable file access for a given |item_id| 131 // Enable / Disable file access for a given |item_id|
128 static void allowFileAccess(DOMString item_id, 132 static void allowFileAccess(DOMString item_id,
129 boolean allow, 133 boolean allow,
130 optional VoidCallback callback); 134 optional VoidCallback callback);
131 135
132 // Reloads a given item with |itemId|. 136 // Reloads a given item with |itemId|.
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 long flags, 168 long flags,
165 PackCallback callback); 169 PackCallback callback);
166 170
167 // Gets localized translated strings for apps_debugger. It returns the 171 // Gets localized translated strings for apps_debugger. It returns the
168 // strings as a dictionary mapping from string identifier to the 172 // strings as a dictionary mapping from string identifier to the
169 // translated string to use in the apps_debugger app UI. 173 // translated string to use in the apps_debugger app UI.
170 static void getStrings(GetStringsCallback callback); 174 static void getStrings(GetStringsCallback callback);
171 }; 175 };
172 176
173 }; 177 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/apps_debugger/permissions_overlay.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698