Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: ppapi/proxy/ppb_flash_proxy.h

Issue 10163012: Move the FlashClipboard API into the Flash one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments & fixes. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ppapi/proxy/ppb_flash_clipboard_proxy.cc ('k') | ppapi/proxy/ppb_flash_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/ppb_flash_proxy.h
diff --git a/ppapi/proxy/ppb_flash_proxy.h b/ppapi/proxy/ppb_flash_proxy.h
index 1c051e54fb69692144f323f5025c9d3bc63fb04f..5541697d70956633d0a80e046ec65ffc257c2345 100644
--- a/ppapi/proxy/ppb_flash_proxy.h
+++ b/ppapi/proxy/ppb_flash_proxy.h
@@ -16,8 +16,9 @@
#include "ppapi/c/pp_time.h"
#include "ppapi/c/private/ppb_flash.h"
#include "ppapi/proxy/interface_proxy.h"
+#include "ppapi/proxy/serialized_var.h"
#include "ppapi/shared_impl/host_resource.h"
-#include "ppapi/thunk/ppb_flash_api.h"
+#include "ppapi/shared_impl/ppb_flash_shared.h"
namespace ppapi {
@@ -28,8 +29,7 @@ namespace proxy {
struct PPBFlash_DrawGlyphs_Params;
class SerializedVarReturnValue;
-class PPB_Flash_Proxy : public InterfaceProxy,
- public thunk::PPB_Flash_API {
+class PPB_Flash_Proxy : public InterfaceProxy, public PPB_Flash_Shared {
public:
explicit PPB_Flash_Proxy(Dispatcher* dispatcher);
virtual ~PPB_Flash_Proxy();
@@ -65,6 +65,18 @@ class PPB_Flash_Proxy : public InterfaceProxy,
virtual int32_t InvokePrinting(PP_Instance instance) OVERRIDE;
virtual void UpdateActivity(PP_Instance instance) OVERRIDE;
virtual PP_Var GetDeviceID(PP_Instance instance) OVERRIDE;
+ virtual PP_Bool IsClipboardFormatAvailable(
+ PP_Instance instance,
+ PP_Flash_Clipboard_Type clipboard_type,
+ PP_Flash_Clipboard_Format format) OVERRIDE;
+ virtual PP_Var ReadClipboardData(PP_Instance instance,
+ PP_Flash_Clipboard_Type clipboard_type,
+ PP_Flash_Clipboard_Format format) OVERRIDE;
+ virtual int32_t WriteClipboardData(PP_Instance instance,
+ PP_Flash_Clipboard_Type clipboard_type,
+ uint32_t data_item_count,
+ const PP_Flash_Clipboard_Format formats[],
+ const PP_Var data_items[]) OVERRIDE;
virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE;
virtual PP_Bool FlashSetFullscreen(PP_Instance instance,
PP_Bool fullscreen) OVERRIDE;
@@ -77,7 +89,8 @@ class PPB_Flash_Proxy : public InterfaceProxy,
// Message handlers.
void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance,
PP_Bool on_top);
- void OnHostMsgDrawGlyphs(const PPBFlash_DrawGlyphs_Params& params,
+ void OnHostMsgDrawGlyphs(PP_Instance instance,
+ const PPBFlash_DrawGlyphs_Params& params,
PP_Bool* result);
void OnHostMsgGetProxyForURL(PP_Instance instance,
const std::string& url,
@@ -100,11 +113,18 @@ class PPB_Flash_Proxy : public InterfaceProxy,
void OnHostMsgFlashGetScreenSize(PP_Instance instance,
PP_Bool* result,
PP_Size* size);
-
- // When this proxy is in the host side, this value caches the interface
- // pointer so we don't have to retrieve it from the dispatcher each time.
- // In the plugin, this value is always NULL.
- const PPB_Flash* ppb_flash_impl_;
+ void OnHostMsgIsClipboardFormatAvailable(PP_Instance instance,
+ int clipboard_type,
+ int format,
+ bool* result);
+ void OnHostMsgReadClipboardData(PP_Instance instance,
+ int clipboard_type,
+ int format,
+ SerializedVarReturnValue result);
+ void OnHostMsgWriteClipboardData(PP_Instance instance,
+ int clipboard_type,
+ const std::vector<int>& formats,
+ SerializedVarVectorReceiveInput data_items);
DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy);
};
« no previous file with comments | « ppapi/proxy/ppb_flash_clipboard_proxy.cc ('k') | ppapi/proxy/ppb_flash_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698