| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 optional VoidCallback callback); | 158 optional VoidCallback callback); |
| 159 | 159 |
| 160 // Enable / Disable file access for a given |item_id| | 160 // Enable / Disable file access for a given |item_id| |
| 161 static void allowFileAccess(DOMString item_id, | 161 static void allowFileAccess(DOMString item_id, |
| 162 boolean allow, | 162 boolean allow, |
| 163 optional VoidCallback callback); | 163 optional VoidCallback callback); |
| 164 | 164 |
| 165 // Reloads a given item with |itemId|. | 165 // Reloads a given item with |itemId|. |
| 166 static void reload(DOMString itemId, optional VoidCallback callback); | 166 static void reload(DOMString itemId, optional VoidCallback callback); |
| 167 | 167 |
| 168 // Enable / Disable a given item with id |itemId|. | |
| 169 static void enable(DOMString itemId, | |
| 170 boolean enable, | |
| 171 optional VoidCallback callback); | |
| 172 | |
| 173 // Allow / Disallow item with |item_id| in incognito mode. | 168 // Allow / Disallow item with |item_id| in incognito mode. |
| 174 static void allowIncognito(DOMString item_id, | 169 static void allowIncognito(DOMString item_id, |
| 175 boolean allow, | 170 boolean allow, |
| 176 VoidCallback callback); | 171 VoidCallback callback); |
| 177 | 172 |
| 178 // Load a user selected unpacked item | 173 // Load a user selected unpacked item |
| 179 static void loadUnpacked(optional VoidCallback callback); | 174 static void loadUnpacked(optional VoidCallback callback); |
| 180 | 175 |
| 181 // Loads an extension / app from a given |directory| | 176 // Loads an extension / app from a given |directory| |
| 182 static void loadDirectory([instanceOf=DirectoryEntry] object directory, | 177 static void loadDirectory([instanceOf=DirectoryEntry] object directory, |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // - columnNumber (optional): The column to focus the devtools at. | 230 // - columnNumber (optional): The column to focus the devtools at. |
| 236 static void openDevTools(any dict); | 231 static void openDevTools(any dict); |
| 237 }; | 232 }; |
| 238 | 233 |
| 239 interface Events { | 234 interface Events { |
| 240 // Fired when a item state is changed. | 235 // Fired when a item state is changed. |
| 241 static void onItemStateChanged(EventData response); | 236 static void onItemStateChanged(EventData response); |
| 242 }; | 237 }; |
| 243 | 238 |
| 244 }; | 239 }; |
| OLD | NEW |