Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_ | |
| 6 #define CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 class ExtensionHost; | |
| 10 | |
| 11 namespace extensions { | |
| 12 | |
| 13 // Transforms and dispatches command line arguments to WebIntent data. A | |
| 14 // window.intent object will be created in the |host| ExtensionHost's | |
| 15 // render view if: | |
| 16 // - there is an argument on the command line, and | |
| 17 // - it has a MIME type for which the platform app associated with |host| | |
| 18 // provides the WebIntent action http://webintents.org/view. | |
| 19 | |
| 20 // The window.intent object will be setup as follows: | |
| 21 // - action will have http://webintents.org/view | |
| 22 // - type will have the MIME type for the file | |
| 23 // - data will have the filename as a file:/// URL. | |
|
Greg Billock
2012/03/28 14:21:02
The current thinking is that if the contents are b
benwells
2012/03/29 03:29:18
Greg and I chatted about this and he filled me in
| |
| 24 | |
| 25 // |host| must not be NULL. | |
| 26 void DispatchPlatformAppIntentData(ExtensionHost* host); | |
| 27 | |
| 28 } // namespace extensions | |
| 29 | |
| 30 #endif // CHROME_BROWSER_EXTENSIONS_PLATFORM_APP_INTENT_DISPATCHER_H_ | |
| OLD | NEW |