OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ |
7 | 7 |
| 8 #include <string> |
| 9 |
8 #include "base/shared_memory.h" | 10 #include "base/shared_memory.h" |
9 #include "base/sync_socket.h" | 11 #include "base/sync_socket.h" |
10 #include "third_party/ppapi/c/pp_stdint.h" | 12 #include "third_party/ppapi/c/pp_stdint.h" |
11 | 13 |
12 class AudioMessageFilter; | 14 class AudioMessageFilter; |
13 | 15 |
14 namespace skia { | 16 namespace skia { |
15 class PlatformCanvas; | 17 class PlatformCanvas; |
16 } | 18 } |
17 | 19 |
| 20 namespace WebKit { |
| 21 class WebFileChooserCompletion; |
| 22 struct WebFileChooserParams; |
| 23 } |
| 24 |
18 namespace pepper { | 25 namespace pepper { |
19 | 26 |
20 class PluginInstance; | 27 class PluginInstance; |
21 | 28 |
22 // Virtual interface that the browser implements to implement features for | 29 // Virtual interface that the browser implements to implement features for |
23 // Pepper plugins. | 30 // Pepper plugins. |
24 class PluginDelegate { | 31 class PluginDelegate { |
25 public: | 32 public: |
26 // Represents an image. This is to allow the browser layer to supply a correct | 33 // Represents an image. This is to allow the browser layer to supply a correct |
27 // image representation. In Chrome, this will be a TransportDIB. | 34 // image representation. In Chrome, this will be a TransportDIB. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 int total, | 88 int total, |
82 bool final_result) = 0; | 89 bool final_result) = 0; |
83 | 90 |
84 // Notifies that the index of the currently selected item has been updated. | 91 // Notifies that the index of the currently selected item has been updated. |
85 virtual void DidChangeSelectedFindResult(int identifier, int index) = 0; | 92 virtual void DidChangeSelectedFindResult(int identifier, int index) = 0; |
86 | 93 |
87 // The caller will own the pointer returned from this. | 94 // The caller will own the pointer returned from this. |
88 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, | 95 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, |
89 uint32_t sample_count, | 96 uint32_t sample_count, |
90 PlatformAudio::Client* client) = 0; | 97 PlatformAudio::Client* client) = 0; |
| 98 |
| 99 // Runs a file chooser. |
| 100 virtual bool RunFileChooser( |
| 101 const WebKit::WebFileChooserParams& params, |
| 102 WebKit::WebFileChooserCompletion* chooser_completion) = 0; |
91 }; | 103 }; |
92 | 104 |
93 } // namespace pepper | 105 } // namespace pepper |
94 | 106 |
95 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ | 107 #endif // WEBKIT_GLUE_PLUGINS_PEPPER_PLUGIN_DELEGATE_H_ |
OLD | NEW |