OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
11 #include "base/platform_file.h" | 11 #include "base/platform_file.h" |
(...skipping 15 matching lines...) Expand all Loading... |
27 namespace base { | 27 namespace base { |
28 class MessageLoopProxy; | 28 class MessageLoopProxy; |
29 class Time; | 29 class Time; |
30 } | 30 } |
31 | 31 |
32 namespace fileapi { | 32 namespace fileapi { |
33 class FileSystemCallbackDispatcher; | 33 class FileSystemCallbackDispatcher; |
34 } | 34 } |
35 | 35 |
36 namespace gfx { | 36 namespace gfx { |
| 37 class Point; |
37 class Rect; | 38 class Rect; |
38 } | 39 } |
39 | 40 |
40 namespace gpu { | 41 namespace gpu { |
41 class CommandBuffer; | 42 class CommandBuffer; |
42 } | 43 } |
43 | 44 |
44 namespace skia { | 45 namespace skia { |
45 class PlatformCanvas; | 46 class PlatformCanvas; |
46 } | 47 } |
(...skipping 10 matching lines...) Expand all Loading... |
57 | 58 |
58 class TransportDIB; | 59 class TransportDIB; |
59 | 60 |
60 namespace webkit { | 61 namespace webkit { |
61 namespace ppapi { | 62 namespace ppapi { |
62 | 63 |
63 class FileIO; | 64 class FileIO; |
64 class FullscreenContainer; | 65 class FullscreenContainer; |
65 class PluginInstance; | 66 class PluginInstance; |
66 class PluginModule; | 67 class PluginModule; |
| 68 class PPB_Flash_Menu_Impl; |
67 class PPB_Flash_NetConnector_Impl; | 69 class PPB_Flash_NetConnector_Impl; |
68 | 70 |
69 // Virtual interface that the browser implements to implement features for | 71 // Virtual interface that the browser implements to implement features for |
70 // PPAPI plugins. | 72 // PPAPI plugins. |
71 class PluginDelegate { | 73 class PluginDelegate { |
72 public: | 74 public: |
73 // This interface is used for the PluginModule to tell the code in charge of | 75 // This interface is used for the PluginModule to tell the code in charge of |
74 // re-using modules which modules currently exist. | 76 // re-using modules which modules currently exist. |
75 // | 77 // |
76 // It is different than the other interfaces, which are scoped to the | 78 // It is different than the other interfaces, which are scoped to the |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
295 GetFileThreadMessageLoopProxy() = 0; | 297 GetFileThreadMessageLoopProxy() = 0; |
296 | 298 |
297 virtual int32_t ConnectTcp( | 299 virtual int32_t ConnectTcp( |
298 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | 300 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, |
299 const char* host, | 301 const char* host, |
300 uint16_t port) = 0; | 302 uint16_t port) = 0; |
301 virtual int32_t ConnectTcpAddress( | 303 virtual int32_t ConnectTcpAddress( |
302 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | 304 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, |
303 const struct PP_Flash_NetAddress* addr) = 0; | 305 const struct PP_Flash_NetAddress* addr) = 0; |
304 | 306 |
| 307 // Show the given context menu at the given position (in the render view's |
| 308 // coordinates). |
| 309 virtual int32_t ShowContextMenu( |
| 310 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 311 const gfx::Point& position) = 0; |
| 312 |
305 // Create a fullscreen container for a plugin instance. This effectively | 313 // Create a fullscreen container for a plugin instance. This effectively |
306 // switches the plugin to fullscreen. | 314 // switches the plugin to fullscreen. |
307 virtual FullscreenContainer* CreateFullscreenContainer( | 315 virtual FullscreenContainer* CreateFullscreenContainer( |
308 PluginInstance* instance) = 0; | 316 PluginInstance* instance) = 0; |
309 | 317 |
310 // Returns a string with the name of the default 8-bit char encoding. | 318 // Returns a string with the name of the default 8-bit char encoding. |
311 virtual std::string GetDefaultEncoding() = 0; | 319 virtual std::string GetDefaultEncoding() = 0; |
312 | 320 |
313 // Sets the mininum and maximium zoom factors. | 321 // Sets the mininum and maximium zoom factors. |
314 virtual void ZoomLimitsChanged(double minimum_factor, | 322 virtual void ZoomLimitsChanged(double minimum_factor, |
(...skipping 11 matching lines...) Expand all Loading... |
326 virtual void SetContentRestriction(int restrictions) = 0; | 334 virtual void SetContentRestriction(int restrictions) = 0; |
327 | 335 |
328 // Tells the browser that the PDF has an unsupported feature. | 336 // Tells the browser that the PDF has an unsupported feature. |
329 virtual void HasUnsupportedFeature() = 0; | 337 virtual void HasUnsupportedFeature() = 0; |
330 }; | 338 }; |
331 | 339 |
332 } // namespace ppapi | 340 } // namespace ppapi |
333 } // namespace webkit | 341 } // namespace webkit |
334 | 342 |
335 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 343 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |