| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 namespace gfx { | 49 namespace gfx { |
| 50 class Point; | 50 class Point; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace gpu { | 53 namespace gpu { |
| 54 class CommandBuffer; | 54 class CommandBuffer; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace ppapi { | 57 namespace ppapi { |
| 58 class PPB_HostResolver_Shared; | 58 class PPB_HostResolver_Shared; |
| 59 class PPB_X509Certificate_Fields; |
| 59 struct DeviceRefData; | 60 struct DeviceRefData; |
| 60 struct HostPortPair; | 61 struct HostPortPair; |
| 61 struct Preferences; | 62 struct Preferences; |
| 62 } | 63 } |
| 63 | 64 |
| 64 namespace skia { | 65 namespace skia { |
| 65 class PlatformCanvas; | 66 class PlatformCanvas; |
| 66 } | 67 } |
| 67 | 68 |
| 68 namespace WebKit { | 69 namespace WebKit { |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 const ::ppapi::HostPortPair& host_port, | 516 const ::ppapi::HostPortPair& host_port, |
| 516 const PP_HostResolver_Private_Hint* hint) = 0; | 517 const PP_HostResolver_Private_Hint* hint) = 0; |
| 517 virtual void UnregisterHostResolver(uint32 host_resolver_id) = 0; | 518 virtual void UnregisterHostResolver(uint32 host_resolver_id) = 0; |
| 518 | 519 |
| 519 // Add/remove a network list observer. | 520 // Add/remove a network list observer. |
| 520 virtual bool AddNetworkListObserver( | 521 virtual bool AddNetworkListObserver( |
| 521 webkit_glue::NetworkListObserver* observer) = 0; | 522 webkit_glue::NetworkListObserver* observer) = 0; |
| 522 virtual void RemoveNetworkListObserver( | 523 virtual void RemoveNetworkListObserver( |
| 523 webkit_glue::NetworkListObserver* observer) = 0; | 524 webkit_glue::NetworkListObserver* observer) = 0; |
| 524 | 525 |
| 526 // For PPB_X509Certificate_Private. |
| 527 virtual bool X509CertificateParseDER( |
| 528 const std::vector<char>& der, |
| 529 ::ppapi::PPB_X509Certificate_Fields* fields) = 0; |
| 530 |
| 525 // Show the given context menu at the given position (in the plugin's | 531 // Show the given context menu at the given position (in the plugin's |
| 526 // coordinates). | 532 // coordinates). |
| 527 virtual int32_t ShowContextMenu( | 533 virtual int32_t ShowContextMenu( |
| 528 PluginInstance* instance, | 534 PluginInstance* instance, |
| 529 webkit::ppapi::PPB_Flash_Menu_Impl* menu, | 535 webkit::ppapi::PPB_Flash_Menu_Impl* menu, |
| 530 const gfx::Point& position) = 0; | 536 const gfx::Point& position) = 0; |
| 531 | 537 |
| 532 // Create a fullscreen container for a plugin instance. This effectively | 538 // Create a fullscreen container for a plugin instance. This effectively |
| 533 // switches the plugin to fullscreen. | 539 // switches the plugin to fullscreen. |
| 534 virtual FullscreenContainer* CreateFullscreenContainer( | 540 virtual FullscreenContainer* CreateFullscreenContainer( |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 const EnumerateDevicesCallback& callback) = 0; | 628 const EnumerateDevicesCallback& callback) = 0; |
| 623 // Create a ClipboardClient for writing to the clipboard. The caller will own | 629 // Create a ClipboardClient for writing to the clipboard. The caller will own |
| 624 // the pointer to this. | 630 // the pointer to this. |
| 625 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 631 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 626 }; | 632 }; |
| 627 | 633 |
| 628 } // namespace ppapi | 634 } // namespace ppapi |
| 629 } // namespace webkit | 635 } // namespace webkit |
| 630 | 636 |
| 631 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 637 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |