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" | |
10 #include "ppapi/thunk/ppapi_thunk_export.h" | 9 #include "ppapi/thunk/ppapi_thunk_export.h" |
11 | 10 |
12 namespace ppapi { | 11 namespace ppapi { |
13 | |
14 struct URLRequestInfoData; | |
15 | |
16 namespace thunk { | 12 namespace thunk { |
17 | 13 |
18 /////////////////////////// WARNING:DEPRECTATED //////////////////////////////// | 14 /////////////////////////// WARNING:DEPRECTATED //////////////////////////////// |
19 // Please do not add any new functions to this API. They should be implemented | 15 // Please do not add any new functions to this API. They should be implemented |
20 // in the new-style resource proxy (see flash_functions_api.h and | 16 // in the new-style resource proxy (see flash_functions_api.h and |
21 // flash_resource.h). | 17 // flash_resource.h). |
22 // TODO(raymes): All of these functions should be moved to | 18 // TODO(raymes): All of these functions should be moved to |
23 // flash_functions_api.h. | 19 // flash_functions_api.h. |
24 //////////////////////////////////////////////////////////////////////////////// | 20 //////////////////////////////////////////////////////////////////////////////// |
25 // This class collects all of the Flash interface-related APIs into one place. | 21 // This class collects all of the Flash interface-related APIs into one place. |
26 class PPAPI_THUNK_EXPORT PPB_Flash_API { | 22 class PPAPI_THUNK_EXPORT PPB_Flash_API { |
27 public: | 23 public: |
28 virtual ~PPB_Flash_API() {} | 24 virtual ~PPB_Flash_API() {} |
29 | |
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 | |
57 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0; | |
58 }; | 25 }; |
59 | 26 |
60 } // namespace thunk | 27 } // namespace thunk |
61 } // namespace ppapi | 28 } // namespace ppapi |
62 | 29 |
63 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ | 30 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ |
OLD | NEW |