OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_PROXY_PPB_FLASH_CLIPBOARD_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_FLASH_CLIPBOARD_PROXY_H_ |
| 7 |
| 8 #include "ppapi/c/pp_instance.h" |
| 9 #include "ppapi/proxy/interface_proxy.h" |
| 10 |
| 11 struct PPB_Flash_Clipboard; |
| 12 |
| 13 namespace pp { |
| 14 namespace proxy { |
| 15 |
| 16 class SerializedVarReceiveInput; |
| 17 class SerializedVarReturnValue; |
| 18 |
| 19 class PPB_Flash_Clipboard_Proxy : public InterfaceProxy { |
| 20 public: |
| 21 PPB_Flash_Clipboard_Proxy(Dispatcher* dispatcher, |
| 22 const void* target_interface); |
| 23 virtual ~PPB_Flash_Clipboard_Proxy(); |
| 24 |
| 25 static const Info* GetInfo(); |
| 26 |
| 27 const PPB_Flash_Clipboard* ppb_flash_clipboard_target() const { |
| 28 return reinterpret_cast<const PPB_Flash_Clipboard*>(target_interface()); |
| 29 } |
| 30 |
| 31 // InterfaceProxy implementation. |
| 32 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 33 |
| 34 private: |
| 35 // Message handlers. |
| 36 void OnMsgReadPlainText(PP_Instance instance_id, |
| 37 int clipboard_type, |
| 38 SerializedVarReturnValue result); |
| 39 void OnMsgWritePlainText(PP_Instance instance_id, |
| 40 int clipboard_type, |
| 41 SerializedVarReceiveInput text, |
| 42 int32_t* result); |
| 43 }; |
| 44 |
| 45 } // namespace proxy |
| 46 } // namespace pp |
| 47 |
| 48 #endif // PPAPI_PROXY_PPB_FLASH_CLIPBOARD_PROXY_H_ |
OLD | NEW |