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_file.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 { |
| 13 |
| 14 struct URLRequestInfoData; |
| 15 |
12 namespace thunk { | 16 namespace thunk { |
13 | 17 |
14 /////////////////////////// WARNING:DEPRECTATED //////////////////////////////// | 18 /////////////////////////// WARNING:DEPRECTATED //////////////////////////////// |
15 // Please do not add any new functions to this API. They should be implemented | 19 // Please do not add any new functions to this API. They should be implemented |
16 // in the new-style resource proxy (see flash_functions_api.h and | 20 // in the new-style resource proxy (see flash_functions_api.h and |
17 // flash_resource.h). | 21 // flash_resource.h). |
18 // TODO(raymes): All of these functions should be moved to | 22 // TODO(raymes): All of these functions should be moved to |
19 // flash_functions_api.h. | 23 // flash_functions_api.h. |
20 //////////////////////////////////////////////////////////////////////////////// | 24 //////////////////////////////////////////////////////////////////////////////// |
21 // This class collects all of the Flash interface-related APIs into one place. | 25 // This class collects all of the Flash interface-related APIs into one place. |
22 class PPAPI_THUNK_EXPORT PPB_Flash_API { | 26 class PPAPI_THUNK_EXPORT PPB_Flash_API { |
23 public: | 27 public: |
24 virtual ~PPB_Flash_API() {} | 28 virtual ~PPB_Flash_API() {} |
25 | 29 |
26 // Flash. | 30 // Flash. |
| 31 virtual void SetInstanceAlwaysOnTop(PP_Instance instance, PP_Bool on_top) = 0; |
| 32 virtual PP_Bool DrawGlyphs( |
| 33 PP_Instance instance, |
| 34 PP_Resource pp_image_data, |
| 35 const PP_BrowserFont_Trusted_Description* font_desc, |
| 36 uint32_t color, |
| 37 const PP_Point* position, |
| 38 const PP_Rect* clip, |
| 39 const float transformation[3][3], |
| 40 PP_Bool allow_subpixel_aa, |
| 41 uint32_t glyph_count, |
| 42 const uint16_t glyph_indices[], |
| 43 const PP_Point glyph_advances[]) = 0; |
| 44 |
| 45 // External function that takes a PPB_URLRequestInfo resource. |
| 46 virtual int32_t Navigate(PP_Instance instance, |
| 47 PP_Resource request_info, |
| 48 const char* target, |
| 49 PP_Bool from_user_action) = 0; |
| 50 |
| 51 // Internal navigate function that takes a URLRequestInfoData. |
| 52 virtual int32_t Navigate(PP_Instance instance, |
| 53 const URLRequestInfoData& data, |
| 54 const char* target, |
| 55 PP_Bool from_user_action) = 0; |
| 56 |
27 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; | 57 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; |
| 58 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0; |
28 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0; | 59 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0; |
29 }; | 60 }; |
30 | 61 |
31 } // namespace thunk | 62 } // namespace thunk |
32 } // namespace ppapi | 63 } // namespace ppapi |
33 | 64 |
34 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ | 65 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ |
OLD | NEW |