| 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 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 #include "ppapi/c/pp_errors.h" | 24 #include "ppapi/c/pp_errors.h" |
| 25 #include "ppapi/c/pp_instance.h" | 25 #include "ppapi/c/pp_instance.h" |
| 26 #include "ppapi/c/pp_stdint.h" | 26 #include "ppapi/c/pp_stdint.h" |
| 27 #include "ui/gfx/size.h" | 27 #include "ui/gfx/size.h" |
| 28 #include "webkit/fileapi/file_system_types.h" | 28 #include "webkit/fileapi/file_system_types.h" |
| 29 #include "webkit/glue/clipboard_client.h" | 29 #include "webkit/glue/clipboard_client.h" |
| 30 #include "webkit/plugins/ppapi/dir_contents.h" | 30 #include "webkit/plugins/ppapi/dir_contents.h" |
| 31 #include "webkit/quota/quota_types.h" | 31 #include "webkit/quota/quota_types.h" |
| 32 | 32 |
| 33 class GURL; | 33 class GURL; |
| 34 struct PP_HostResolver_Private_Hint; |
| 34 struct PP_NetAddress_Private; | 35 struct PP_NetAddress_Private; |
| 35 class SkBitmap; | 36 class SkBitmap; |
| 36 class TransportDIB; | 37 class TransportDIB; |
| 37 | 38 |
| 38 namespace base { | 39 namespace base { |
| 39 class MessageLoopProxy; | 40 class MessageLoopProxy; |
| 40 class Time; | 41 class Time; |
| 41 } | 42 } |
| 42 | 43 |
| 43 namespace fileapi { | 44 namespace fileapi { |
| 44 class FileSystemCallbackDispatcher; | 45 class FileSystemCallbackDispatcher; |
| 45 } | 46 } |
| 46 | 47 |
| 47 namespace gfx { | 48 namespace gfx { |
| 48 class Point; | 49 class Point; |
| 49 } | 50 } |
| 50 | 51 |
| 51 namespace gpu { | 52 namespace gpu { |
| 52 class CommandBuffer; | 53 class CommandBuffer; |
| 53 } | 54 } |
| 54 | 55 |
| 55 namespace ppapi { | 56 namespace ppapi { |
| 57 class PPB_HostResolver_Shared; |
| 56 struct DeviceRefData; | 58 struct DeviceRefData; |
| 59 struct HostPortPair; |
| 57 struct Preferences; | 60 struct Preferences; |
| 58 } | 61 } |
| 59 | 62 |
| 60 namespace skia { | 63 namespace skia { |
| 61 class PlatformCanvas; | 64 class PlatformCanvas; |
| 62 } | 65 } |
| 63 | 66 |
| 64 namespace WebKit { | 67 namespace WebKit { |
| 65 class WebFileChooserCompletion; | 68 class WebFileChooserCompletion; |
| 66 class WebGamepads; | 69 class WebGamepads; |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 472 | 475 |
| 473 // For PPB_TCPServerSocket_Private. | 476 // For PPB_TCPServerSocket_Private. |
| 474 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, | 477 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, |
| 475 uint32 temp_socket_id, | 478 uint32 temp_socket_id, |
| 476 const PP_NetAddress_Private& addr, | 479 const PP_NetAddress_Private& addr, |
| 477 int32_t backlog) = 0; | 480 int32_t backlog) = 0; |
| 478 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0; | 481 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0; |
| 479 virtual void TCPServerSocketStopListening(uint32 real_socket_id, | 482 virtual void TCPServerSocketStopListening(uint32 real_socket_id, |
| 480 uint32 temp_socket_id) = 0; | 483 uint32 temp_socket_id) = 0; |
| 481 | 484 |
| 485 // For PPB_HostResolver_Private. |
| 486 virtual void RegisterHostResolver( |
| 487 ::ppapi::PPB_HostResolver_Shared* host_resolver, |
| 488 uint32 host_resolver_id) = 0; |
| 489 virtual void HostResolverResolve( |
| 490 uint32 host_resolver_id, |
| 491 const ::ppapi::HostPortPair& host_port, |
| 492 const PP_HostResolver_Private_Hint* hint) = 0; |
| 493 virtual void UnregisterHostResolver(uint32 host_resolver_id) = 0; |
| 494 |
| 482 // Show the given context menu at the given position (in the plugin's | 495 // Show the given context menu at the given position (in the plugin's |
| 483 // coordinates). | 496 // coordinates). |
| 484 virtual int32_t ShowContextMenu( | 497 virtual int32_t ShowContextMenu( |
| 485 PluginInstance* instance, | 498 PluginInstance* instance, |
| 486 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 499 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 487 const gfx::Point& position) = 0; | 500 const gfx::Point& position) = 0; |
| 488 | 501 |
| 489 // Create a fullscreen container for a plugin instance. This effectively | 502 // Create a fullscreen container for a plugin instance. This effectively |
| 490 // switches the plugin to fullscreen. | 503 // switches the plugin to fullscreen. |
| 491 virtual FullscreenContainer* CreateFullscreenContainer( | 504 virtual FullscreenContainer* CreateFullscreenContainer( |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 const EnumerateDevicesCallback& callback) = 0; | 592 const EnumerateDevicesCallback& callback) = 0; |
| 580 // Create a ClipboardClient for writing to the clipboard. The caller will own | 593 // Create a ClipboardClient for writing to the clipboard. The caller will own |
| 581 // the pointer to this. | 594 // the pointer to this. |
| 582 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 595 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 583 }; | 596 }; |
| 584 | 597 |
| 585 } // namespace ppapi | 598 } // namespace ppapi |
| 586 } // namespace webkit | 599 } // namespace webkit |
| 587 | 600 |
| 588 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 601 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |