| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 namespace WebKit { | 64 namespace WebKit { |
| 65 class WebFileChooserCompletion; | 65 class WebFileChooserCompletion; |
| 66 class WebGamepads; | 66 class WebGamepads; |
| 67 struct WebCursorInfo; | 67 struct WebCursorInfo; |
| 68 struct WebFileChooserParams; | 68 struct WebFileChooserParams; |
| 69 } | 69 } |
| 70 | 70 |
| 71 namespace webkit_glue { | 71 namespace webkit_glue { |
| 72 class ClipboardClient; | 72 class ClipboardClient; |
| 73 class P2PTransport; | 73 class P2PTransport; |
| 74 class NetworkListObserver; | |
| 75 } // namespace webkit_glue | 74 } // namespace webkit_glue |
| 76 | 75 |
| 77 namespace webkit { | 76 namespace webkit { |
| 78 namespace ppapi { | 77 namespace ppapi { |
| 79 | 78 |
| 80 class FileIO; | 79 class FileIO; |
| 81 class FullscreenContainer; | 80 class FullscreenContainer; |
| 82 class PepperFilePath; | 81 class PepperFilePath; |
| 83 class PluginInstance; | 82 class PluginInstance; |
| 84 class PluginModule; | 83 class PluginModule; |
| (...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 476 | 475 |
| 477 // For PPB_TCPServerSocket_Private. | 476 // For PPB_TCPServerSocket_Private. |
| 478 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, | 477 virtual void TCPServerSocketListen(PPB_TCPServerSocket_Private_Impl* socket, |
| 479 uint32 temp_socket_id, | 478 uint32 temp_socket_id, |
| 480 const PP_NetAddress_Private& addr, | 479 const PP_NetAddress_Private& addr, |
| 481 int32_t backlog) = 0; | 480 int32_t backlog) = 0; |
| 482 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0; | 481 virtual void TCPServerSocketAccept(uint32 real_socket_id) = 0; |
| 483 virtual void TCPServerSocketStopListening(uint32 real_socket_id, | 482 virtual void TCPServerSocketStopListening(uint32 real_socket_id, |
| 484 uint32 temp_socket_id) = 0; | 483 uint32 temp_socket_id) = 0; |
| 485 | 484 |
| 486 // Add/remove a network list observer. | |
| 487 virtual bool AddNetworkListObserver( | |
| 488 webkit_glue::NetworkListObserver* observer) = 0; | |
| 489 virtual void RemoveNetworkListObserver( | |
| 490 webkit_glue::NetworkListObserver* observer) = 0; | |
| 491 | |
| 492 // Show the given context menu at the given position (in the plugin's | 485 // Show the given context menu at the given position (in the plugin's |
| 493 // coordinates). | 486 // coordinates). |
| 494 virtual int32_t ShowContextMenu( | 487 virtual int32_t ShowContextMenu( |
| 495 PluginInstance* instance, | 488 PluginInstance* instance, |
| 496 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 489 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 497 const gfx::Point& position) = 0; | 490 const gfx::Point& position) = 0; |
| 498 | 491 |
| 499 // Create a fullscreen container for a plugin instance. This effectively | 492 // Create a fullscreen container for a plugin instance. This effectively |
| 500 // switches the plugin to fullscreen. | 493 // switches the plugin to fullscreen. |
| 501 virtual FullscreenContainer* CreateFullscreenContainer( | 494 virtual FullscreenContainer* CreateFullscreenContainer( |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 const EnumerateDevicesCallback& callback) = 0; | 582 const EnumerateDevicesCallback& callback) = 0; |
| 590 // Create a ClipboardClient for writing to the clipboard. The caller will own | 583 // Create a ClipboardClient for writing to the clipboard. The caller will own |
| 591 // the pointer to this. | 584 // the pointer to this. |
| 592 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 585 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 593 }; | 586 }; |
| 594 | 587 |
| 595 } // namespace ppapi | 588 } // namespace ppapi |
| 596 } // namespace webkit | 589 } // namespace webkit |
| 597 | 590 |
| 598 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 591 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |