Chromium Code Reviews| Index: extensions/browser/api/app_runtime/app_runtime_api.h |
| diff --git a/extensions/browser/api/app_runtime/app_runtime_api.h b/extensions/browser/api/app_runtime/app_runtime_api.h |
| index 1beed1d32ce2209f0cff9c6fadac48277e659cbc..5ffa24c3d460ac4f111fe8ba265d777dc7b2d28c 100644 |
| --- a/extensions/browser/api/app_runtime/app_runtime_api.h |
| +++ b/extensions/browser/api/app_runtime/app_runtime_api.h |
| @@ -9,6 +9,7 @@ |
| #include <vector> |
| #include "base/memory/scoped_ptr.h" |
| +#include "extensions/common/constants.h" |
| class GURL; |
| @@ -38,6 +39,12 @@ class AppRuntimeEventRouter { |
| static void DispatchOnLaunchedEvent(content::BrowserContext* context, |
|
benwells
2014/10/21 03:51:58
Again, can we augment this function instead of cre
cylee1
2014/10/21 13:41:16
Done.
|
| const Extension* extension); |
| + // Dispatches the onLaunched event to the given app with source parameters. |
| + static void DispatchOnLaunchedEventWithSource( |
| + content::BrowserContext* context, |
| + const Extension* extension, |
| + extensions::AppLaunchSource source); |
| + |
| // Dispatches the onRestarted event to the given app, providing a list of |
| // restored file entries from the previous run. |
| static void DispatchOnRestartedEvent(content::BrowserContext* context, |