| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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_PPB_FLASH_CLIPBOARD_IMPL_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_FLASH_CLIPBOARD_IMPL_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_CLIPBOARD_IMPL_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PPB_FLASH_CLIPBOARD_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" |
| 10 #include "ppapi/shared_impl/function_group_base.h" |
| 11 #include "ppapi/thunk/ppb_flash_clipboard_api.h" |
| 12 |
| 8 struct PPB_Flash_Clipboard; | 13 struct PPB_Flash_Clipboard; |
| 9 | 14 |
| 10 namespace webkit { | 15 namespace webkit { |
| 11 namespace ppapi { | 16 namespace ppapi { |
| 12 | 17 |
| 13 class PPB_Flash_Clipboard_Impl { | 18 class PluginInstance; |
| 19 |
| 20 class PPB_Flash_Clipboard_Impl |
| 21 : public ::ppapi::FunctionGroupBase, |
| 22 public ::ppapi::thunk::PPB_Flash_Clipboard_FunctionAPI { |
| 14 public: | 23 public: |
| 15 static const PPB_Flash_Clipboard* GetInterface(); | 24 PPB_Flash_Clipboard_Impl(PluginInstance* instance); |
| 25 virtual ~PPB_Flash_Clipboard_Impl(); |
| 26 |
| 27 // FunctionGroupBase overrides. |
| 28 virtual ::ppapi::thunk::PPB_Flash_Clipboard_FunctionAPI* |
| 29 AsPPB_Flash_Clipboard_FunctionAPI() OVERRIDE; |
| 30 |
| 31 // PPB_Flash_Clipboard_FunctionAPI implementation. |
| 32 virtual PP_Bool IsFormatAvailable(PP_Instance instance, |
| 33 PP_Flash_Clipboard_Type clipboard_type, |
| 34 PP_Flash_Clipboard_Format format) OVERRIDE; |
| 35 virtual PP_Var ReadPlainText(PP_Instance instance, |
| 36 PP_Flash_Clipboard_Type clipboard_type) OVERRIDE; |
| 37 virtual int32_t WritePlainText(PP_Instance instance, |
| 38 PP_Flash_Clipboard_Type clipboard_type, |
| 39 const PP_Var& text) OVERRIDE; |
| 40 |
| 41 private: |
| 42 PluginInstance* instance_; |
| 43 |
| 44 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Clipboard_Impl); |
| 16 }; | 45 }; |
| 17 | 46 |
| 18 } // namespace ppapi | 47 } // namespace ppapi |
| 19 } // namespace webkit | 48 } // namespace webkit |
| 20 | 49 |
| 21 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_CLIPBOARD_IMPL_H_ | 50 #endif // WEBKIT_PLUGINS_PPAPI_PPB_FLASH_CLIPBOARD_IMPL_H_ |
| OLD | NEW |