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 PPAPI_THUNK_PPB_FLASH_API_H_ | 5 #ifndef PPAPI_THUNK_PPB_FLASH_API_H_ |
6 #define PPAPI_THUNK_PPB_FLASH_API_H_ | 6 #define PPAPI_THUNK_PPB_FLASH_API_H_ |
7 | 7 |
8 #include "ppapi/c/private/ppb_flash.h" | 8 #include "ppapi/c/private/ppb_flash.h" |
| 9 #include "ppapi/c/private/ppb_flash_clipboard.h" |
9 #include "ppapi/thunk/ppapi_thunk_export.h" | 10 #include "ppapi/thunk/ppapi_thunk_export.h" |
10 | 11 |
11 namespace ppapi { | 12 namespace ppapi { |
12 namespace thunk { | 13 namespace thunk { |
13 | 14 |
14 // This class collects all of the Flash interface-related APIs into one place. | 15 // This class collects all of the Flash interface-related APIs into one place. |
15 class PPAPI_THUNK_EXPORT PPB_Flash_API { | 16 class PPAPI_THUNK_EXPORT PPB_Flash_API { |
16 public: | 17 public: |
17 virtual ~PPB_Flash_API() {} | 18 virtual ~PPB_Flash_API() {} |
18 | 19 |
(...skipping 16 matching lines...) Expand all Loading... |
35 const char* target, | 36 const char* target, |
36 PP_Bool from_user_action) = 0; | 37 PP_Bool from_user_action) = 0; |
37 virtual void RunMessageLoop(PP_Instance instance) = 0; | 38 virtual void RunMessageLoop(PP_Instance instance) = 0; |
38 virtual void QuitMessageLoop(PP_Instance instance) = 0; | 39 virtual void QuitMessageLoop(PP_Instance instance) = 0; |
39 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; | 40 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; |
40 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0; | 41 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0; |
41 virtual int32_t InvokePrinting(PP_Instance instance) = 0; | 42 virtual int32_t InvokePrinting(PP_Instance instance) = 0; |
42 virtual void UpdateActivity(PP_Instance instance) = 0; | 43 virtual void UpdateActivity(PP_Instance instance) = 0; |
43 virtual PP_Var GetDeviceID(PP_Instance instance) = 0; | 44 virtual PP_Var GetDeviceID(PP_Instance instance) = 0; |
44 | 45 |
| 46 // FlashClipboard. |
| 47 virtual PP_Bool IsClipboardFormatAvailable( |
| 48 PP_Instance instance, |
| 49 PP_Flash_Clipboard_Type clipboard_type, |
| 50 PP_Flash_Clipboard_Format format) = 0; |
| 51 virtual PP_Var ReadClipboardData(PP_Instance instance, |
| 52 PP_Flash_Clipboard_Type clipboard_type, |
| 53 PP_Flash_Clipboard_Format format) = 0; |
| 54 virtual int32_t WriteClipboardData(PP_Instance instance, |
| 55 PP_Flash_Clipboard_Type clipboard_type, |
| 56 uint32_t data_item_count, |
| 57 const PP_Flash_Clipboard_Format formats[], |
| 58 const PP_Var data_items[]) = 0; |
| 59 |
45 // FlashFullscreen. | 60 // FlashFullscreen. |
46 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; | 61 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; |
47 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, | 62 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, |
48 PP_Bool fullscreen) = 0; | 63 PP_Bool fullscreen) = 0; |
49 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0; | 64 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0; |
50 }; | 65 }; |
51 | 66 |
52 } // namespace thunk | 67 } // namespace thunk |
53 } // namespace ppapi | 68 } // namespace ppapi |
54 | 69 |
55 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ | 70 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ |
OLD | NEW |