OLD | NEW |
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 Loading... |
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 // Copies the syncfs directory for the extension to local disk. |
179 static void exportSyncfsFolderToLocalfs(DOMString folder_name, | 179 // Loads an extension / app from a given |directory| |
180 optional VoidCallback callback); | 180 static void loadDirectory([instanceOf=DirectoryEntry] object directory, |
181 | 181 PathCallback callback); |
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 | 182 |
187 // Open Dialog to browse to an entry. | 183 // Open Dialog to browse to an entry. |
188 // |select_type| : Select a file or a folder. | 184 // |select_type| : Select a file or a folder. |
189 // |file_type| : Required file type. For Example pem type is for private | 185 // |file_type| : Required file type. For Example pem type is for private |
190 // key and load type is for an unpacked item. | 186 // key and load type is for an unpacked item. |
191 // |callback| : called with selected item's path. | 187 // |callback| : called with selected item's path. |
192 static void choosePath(SelectType select_type, | 188 static void choosePath(SelectType select_type, |
193 FileType file_type, | 189 FileType file_type, |
194 PathCallback callback); | 190 PathCallback callback); |
195 | 191 |
(...skipping 12 matching lines...) Expand all Loading... |
208 // Returns true if the profile is managed. | 204 // Returns true if the profile is managed. |
209 static void isProfileManaged(BooleanCallback callback); | 205 static void isProfileManaged(BooleanCallback callback); |
210 }; | 206 }; |
211 | 207 |
212 interface Events { | 208 interface Events { |
213 // Fired when a item state is changed. | 209 // Fired when a item state is changed. |
214 static void onItemStateChanged(EventData response); | 210 static void onItemStateChanged(EventData response); |
215 }; | 211 }; |
216 | 212 |
217 }; | 213 }; |
OLD | NEW |