Chromium Code Reviews| Index: extensions/common/api/app_runtime.idl |
| diff --git a/extensions/common/api/app_runtime.idl b/extensions/common/api/app_runtime.idl |
| index 41ebeac743a04bf2a7a1673a663848c6986344cd..d918309054a5b2b848dc9a711742d4b7a055294c 100644 |
| --- a/extensions/common/api/app_runtime.idl |
| +++ b/extensions/common/api/app_runtime.idl |
| @@ -15,6 +15,21 @@ namespace app.runtime { |
| DOMString type; |
| }; |
| + // Enumeration of app launch sources. |
| + enum LaunchSource { |
| + app_launcher, |
| + new_tab_page, |
| + restart, |
| + reload, |
| + file_handler, |
| + url_handler, |
| + |
| + // App-specific |
|
benwells
2014/10/21 03:51:58
Lets try and make these non-app specific. How abou
cylee1
2014/10/21 13:41:17
Done.
|
| + gethelp_system_tray, |
| + gethelp_about_page, |
| + gethelp_keyboard |
| + }; |
| + |
| // Optional data for the launch. Either <code>items</code>, or |
| // the pair (<code>url, referrerUrl</code>) can be present for any given |
| // launch. |
| @@ -40,6 +55,9 @@ namespace app.runtime { |
| // href="https://support.google.com/chromebook/answer/3134673">Chrome OS |
| // kiosk session</a>. |
| boolean? isKioskSession; |
| + |
| + // Where the app is launched from. |
| + LaunchSource? source; |
| }; |
| // This object specifies details and operations to perform on the embedding |