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

Side by Side Diff: apps/launcher.h

Issue 300063006: Files.app: Let Files.app pass mutliple files to file handlers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « apps/browser/api/app_runtime/app_runtime_api.cc ('k') | apps/launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 8 #include <string>
9 #include <vector>
9 10
10 class GURL; 11 class GURL;
11 class Profile; 12 class Profile;
12 13
13 namespace base { 14 namespace base {
14 class CommandLine; 15 class CommandLine;
15 class FilePath; 16 class FilePath;
16 } 17 }
17 18
18 namespace extensions { 19 namespace extensions {
(...skipping 15 matching lines...) Expand all
34 // with the contents of |file_path| available through the launch data. 35 // with the contents of |file_path| available through the launch data.
35 void LaunchPlatformAppWithPath(Profile* profile, 36 void LaunchPlatformAppWithPath(Profile* profile,
36 const extensions::Extension* extension, 37 const extensions::Extension* extension,
37 const base::FilePath& file_path); 38 const base::FilePath& file_path);
38 39
39 // Launches the platform app |extension| with no launch data. 40 // Launches the platform app |extension| with no launch data.
40 void LaunchPlatformApp(Profile* profile, 41 void LaunchPlatformApp(Profile* profile,
41 const extensions::Extension* extension); 42 const extensions::Extension* extension);
42 43
43 // Launches the platform app |extension| with |handler_id| and the contents of 44 // Launches the platform app |extension| with |handler_id| and the contents of
44 // |file_path| available through the launch data. |handler_id| corresponds to 45 // |file_paths| available through the launch data. |handler_id| corresponds to
45 // the id of the file_handlers item in the manifest that resulted in a match 46 // the id of the file_handlers item in the manifest that resulted in a match
46 // that triggered this launch. 47 // that triggered this launch.
47 void LaunchPlatformAppWithFileHandler(Profile* profile, 48 void LaunchPlatformAppWithFileHandler(
48 const extensions::Extension* extension, 49 Profile* profile,
49 const std::string& handler_id, 50 const extensions::Extension* extension,
50 const base::FilePath& file_path); 51 const std::string& handler_id,
52 const std::vector<base::FilePath>& file_paths);
51 53
52 // Launches the platform app |extension| with |handler_id|, |url| and 54 // Launches the platform app |extension| with |handler_id|, |url| and
53 // |referrer_url| available through the launch data. |handler_id| corresponds to 55 // |referrer_url| available through the launch data. |handler_id| corresponds to
54 // the id of the file_handlers item in the manifest that resulted in a match 56 // the id of the file_handlers item in the manifest that resulted in a match
55 // that triggered this launch. 57 // that triggered this launch.
56 void LaunchPlatformAppWithUrl(Profile* profile, 58 void LaunchPlatformAppWithUrl(Profile* profile,
57 const extensions::Extension* extension, 59 const extensions::Extension* extension,
58 const std::string& handler_id, 60 const std::string& handler_id,
59 const GURL& url, 61 const GURL& url,
60 const GURL& referrer_url); 62 const GURL& referrer_url);
61 63
62 void RestartPlatformApp(Profile* profile, 64 void RestartPlatformApp(Profile* profile,
63 const extensions::Extension* extension); 65 const extensions::Extension* extension);
64 66
65 } // namespace apps 67 } // namespace apps
66 68
67 #endif // APPS_LAUNCHER_H_ 69 #endif // APPS_LAUNCHER_H_
OLDNEW
« no previous file with comments | « apps/browser/api/app_runtime/app_runtime_api.cc ('k') | apps/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698