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

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

Issue 132313009: New API to copy syncfs folder to localfs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: nit Created 6 years, 11 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 // 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 namespace developerPrivate { 8 namespace developerPrivate {
9 9
10 enum ItemType { 10 enum ItemType {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 optional VoidCallback callback); 168 optional VoidCallback callback);
169 169
170 // Allow / Disallow item with |item_id| in incognito mode. 170 // Allow / Disallow item with |item_id| in incognito mode.
171 static void allowIncognito(DOMString item_id, 171 static void allowIncognito(DOMString item_id,
172 boolean allow, 172 boolean allow,
173 VoidCallback callback); 173 VoidCallback callback);
174 174
175 // Load a user selected unpacked item 175 // Load a user selected unpacked item
176 static void loadUnpacked(optional VoidCallback callback); 176 static void loadUnpacked(optional VoidCallback callback);
177 177
178 // Copies the syncfs folder for the extension to local disk. 178 // Loads an extension / app from a given |directory|
179 static void exportSyncfsFolderToLocalfs(DOMString folder_name, 179 static void loadDirectory([instanceOf=DirectoryEntry] object directory,
180 optional VoidCallback callback); 180 PathCallback callback);
181
182 // Loads the unpacked app / extension.
183 // |callback| called with itemId of the loaded item.
184 static void loadProject(DOMString project_name,
185 PathCallback callback);
186 181
187 // Open Dialog to browse to an entry. 182 // Open Dialog to browse to an entry.
188 // |select_type| : Select a file or a folder. 183 // |select_type| : Select a file or a folder.
189 // |file_type| : Required file type. For Example pem type is for private 184 // |file_type| : Required file type. For Example pem type is for private
190 // key and load type is for an unpacked item. 185 // key and load type is for an unpacked item.
191 // |callback| : called with selected item's path. 186 // |callback| : called with selected item's path.
192 static void choosePath(SelectType select_type, 187 static void choosePath(SelectType select_type,
193 FileType file_type, 188 FileType file_type,
194 PathCallback callback); 189 PathCallback callback);
195 190
(...skipping 12 matching lines...) Expand all
208 // Returns true if the profile is managed. 203 // Returns true if the profile is managed.
209 static void isProfileManaged(BooleanCallback callback); 204 static void isProfileManaged(BooleanCallback callback);
210 }; 205 };
211 206
212 interface Events { 207 interface Events {
213 // Fired when a item state is changed. 208 // Fired when a item state is changed.
214 static void onItemStateChanged(EventData response); 209 static void onItemStateChanged(EventData response);
215 }; 210 };
216 211
217 }; 212 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698