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

Side by Side Diff: apps/launcher.h

Issue 2523053004: Enhance chrome.app.window API for shelf integration with restore support (Closed)
Patch Set: Review v2 Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef APPS_LAUNCHER_H_ 5 #ifndef APPS_LAUNCHER_H_
6 #define APPS_LAUNCHER_H_ 6 #define APPS_LAUNCHER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 28 matching lines...) Expand all
39 void LaunchPlatformAppWithCommandLine( 39 void LaunchPlatformAppWithCommandLine(
40 Profile* profile, 40 Profile* profile,
41 const extensions::Extension* app, 41 const extensions::Extension* app,
42 const base::CommandLine& command_line, 42 const base::CommandLine& command_line,
43 const base::FilePath& current_directory, 43 const base::FilePath& current_directory,
44 extensions::AppLaunchSource source, 44 extensions::AppLaunchSource source,
45 extensions::api::app_runtime::PlayStoreStatus play_store_status = 45 extensions::api::app_runtime::PlayStoreStatus play_store_status =
46 extensions::api::app_runtime::PlayStoreStatus:: 46 extensions::api::app_runtime::PlayStoreStatus::
47 PLAY_STORE_STATUS_UNKNOWN); 47 PLAY_STORE_STATUS_UNKNOWN);
48 48
49 // Launches the platform app |app|. |launch_id| is an id that can be passed to
50 // an app when launched in order to support multiple shelf items per app.
51 // Creates appropriate launch data for the |command_line| fields present. |app|
52 // and |profile| must not be NULL. An empty |command_line| means there is no
53 // launch data. If non-empty, |current_directory| is used to expand any relative
54 // paths on the command line. |source| is one of the enumerated values which
55 // trace how the app is launched.
stevenjb 2016/12/06 16:42:07 Rather than repeating the above, the comment shoul
Andra Paraschiv 2016/12/07 08:33:21 Thank you, I updated the comment.
56 void LaunchPlatformAppWithCommandLineAndLaunchId(
57 Profile* profile,
58 const extensions::Extension* app,
59 const std::string& launch_id,
60 const base::CommandLine& command_line,
61 const base::FilePath& current_directory,
62 extensions::AppLaunchSource source,
63 extensions::api::app_runtime::PlayStoreStatus play_store_status =
64 extensions::api::app_runtime::PlayStoreStatus::
65 PLAY_STORE_STATUS_UNKNOWN);
66
49 // Launches the platform app |app| by issuing an onLaunched event with the 67 // Launches the platform app |app| by issuing an onLaunched event with the
50 // contents of |file_path| available through the launch data. 68 // contents of |file_path| available through the launch data.
51 void LaunchPlatformAppWithPath(Profile* profile, 69 void LaunchPlatformAppWithPath(Profile* profile,
52 const extensions::Extension* app, 70 const extensions::Extension* app,
53 const base::FilePath& file_path); 71 const base::FilePath& file_path);
54 72
55 // Launches the platform app |app| with the specific |action_data|. |file_path| 73 // Launches the platform app |app| with the specific |action_data|. |file_path|
56 // is an optional argument and if present contains the file that the app should 74 // is an optional argument and if present contains the file that the app should
57 // open w.r.t. the given action. 75 // open w.r.t. the given action.
58 void LaunchPlatformAppWithAction( 76 void LaunchPlatformAppWithAction(
(...skipping 25 matching lines...) Expand all
84 const extensions::Extension* app, 102 const extensions::Extension* app,
85 const std::string& handler_id, 103 const std::string& handler_id,
86 const GURL& url, 104 const GURL& url,
87 const GURL& referrer_url); 105 const GURL& referrer_url);
88 106
89 void RestartPlatformApp(Profile* profile, const extensions::Extension* app); 107 void RestartPlatformApp(Profile* profile, const extensions::Extension* app);
90 108
91 } // namespace apps 109 } // namespace apps
92 110
93 #endif // APPS_LAUNCHER_H_ 111 #endif // APPS_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698