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

Unified Diff: extensions/browser/api/app_runtime/app_runtime_api.h

Issue 2212303003: Implement app launch changes for app runtime extension proposal. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tool-screenshot
Patch Set: Nits Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
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 1548387b2e57d4b0040b00cd457c2fc15139d51c..99a55dea4fded8ed598cad3562d3e0e5ac47e3f7 100644
--- a/extensions/browser/api/app_runtime/app_runtime_api.h
+++ b/extensions/browser/api/app_runtime/app_runtime_api.h
@@ -24,6 +24,12 @@ class WebContents;
namespace extensions {
+namespace api {
+namespace app_runtime {
+struct ActionData;
+}
+}
+
class Extension;
struct EntryInfo;
struct GrantedFileEntry;
@@ -34,12 +40,14 @@ class AppRuntimeEventRouter {
static void DispatchOnEmbedRequestedEvent(
content::BrowserContext* context,
std::unique_ptr<base::DictionaryValue> app_embedding_request_data,
- const extensions::Extension* extension);
+ const Extension* extension);
// Dispatches the onLaunched event to the given app.
- static void DispatchOnLaunchedEvent(content::BrowserContext* context,
- const Extension* extension,
- extensions::AppLaunchSource source);
+ static void DispatchOnLaunchedEvent(
+ content::BrowserContext* context,
+ const Extension* extension,
+ AppLaunchSource source,
+ std::unique_ptr<api::app_runtime::ActionData> action_data);
// Dispatches the onRestarted event to the given app, providing a list of
// restored file entries from the previous run.
@@ -64,9 +72,11 @@ class AppRuntimeEventRouter {
static void DispatchOnLaunchedEventWithFileEntries(
content::BrowserContext* context,
const Extension* extension,
+ AppLaunchSource source,
const std::string& handler_id,
const std::vector<EntryInfo>& entries,
- const std::vector<GrantedFileEntry>& file_entries);
+ const std::vector<GrantedFileEntry>& file_entries,
+ std::unique_ptr<api::app_runtime::ActionData> action_data);
// |handler_id| corresponds to the id of the url_handlers item
// in the manifest that resulted in a match which triggered this launch.
« no previous file with comments | « chrome/browser/chromeos/note_taking_app_utils.cc ('k') | extensions/browser/api/app_runtime/app_runtime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698