OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/extensions/extension_function.h" | 9 #include "chrome/browser/extensions/extension_function.h" |
10 | 10 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // } | 57 // } |
58 | 58 |
59 // launchData.intent.data and launchData.intent.postResults are created in a | 59 // launchData.intent.data and launchData.intent.postResults are created in a |
60 // custom dispatch event in javascript. The FileEntry is created from | 60 // custom dispatch event in javascript. The FileEntry is created from |
61 // |file_system_id| and |base_name|. | 61 // |file_system_id| and |base_name|. |
62 static void DispatchOnLaunchedEventWithFileEntry( | 62 static void DispatchOnLaunchedEventWithFileEntry( |
63 Profile* profile, | 63 Profile* profile, |
64 const Extension* extension, | 64 const Extension* extension, |
65 const string16& action, | 65 const string16& action, |
66 const std::string& file_system_id, | 66 const std::string& file_system_id, |
67 const FilePath& base_name); | 67 const std::string& base_name); |
68 | 68 |
69 // Dispatches the onLaunched event to the app implemented by |extension| | 69 // Dispatches the onLaunched event to the app implemented by |extension| |
70 // running in |profile|. The event parameter launchData will have a field | 70 // running in |profile|. The event parameter launchData will have a field |
71 // called intent, populated by |web_intent_data|. | 71 // called intent, populated by |web_intent_data|. |
72 static void DispatchOnLaunchedEventWithWebIntent( | 72 static void DispatchOnLaunchedEventWithWebIntent( |
73 Profile* profile, | 73 Profile* profile, |
74 const Extension* extension, | 74 const Extension* extension, |
75 const webkit_glue::WebIntentData web_intent_data); | 75 const webkit_glue::WebIntentData web_intent_data); |
76 }; | 76 }; |
77 | 77 |
78 } // namespace extensions | 78 } // namespace extensions |
79 | 79 |
80 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_ | 80 #endif // CHROME_BROWSER_EXTENSIONS_API_APP_APP_API_H_ |
OLD | NEW |