Chromium Code Reviews| 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/c/private/ppb_flash_file.h" |
|
yzshen1
2012/12/12 19:09:31
nit: I think this is not needed.
raymes
2012/12/12 22:01:21
Done.
| |
| 10 #include "ppapi/thunk/ppapi_thunk_export.h" | 10 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 11 | 11 |
| 12 namespace ppapi { | 12 namespace ppapi { |
| 13 | |
| 14 struct URLRequestInfoData; | |
| 15 | |
| 16 namespace thunk { | 13 namespace thunk { |
| 17 | 14 |
| 18 /////////////////////////// WARNING:DEPRECTATED //////////////////////////////// | 15 /////////////////////////// WARNING:DEPRECTATED //////////////////////////////// |
| 19 // Please do not add any new functions to this API. They should be implemented | 16 // 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 | 17 // in the new-style resource proxy (see flash_functions_api.h and |
| 21 // flash_resource.h). | 18 // flash_resource.h). |
| 22 // TODO(raymes): All of these functions should be moved to | 19 // TODO(raymes): All of these functions should be moved to |
| 23 // flash_functions_api.h. | 20 // flash_functions_api.h. |
| 24 //////////////////////////////////////////////////////////////////////////////// | 21 //////////////////////////////////////////////////////////////////////////////// |
| 25 // This class collects all of the Flash interface-related APIs into one place. | 22 // This class collects all of the Flash interface-related APIs into one place. |
| 26 class PPAPI_THUNK_EXPORT PPB_Flash_API { | 23 class PPAPI_THUNK_EXPORT PPB_Flash_API { |
| 27 public: | 24 public: |
| 28 virtual ~PPB_Flash_API() {} | 25 virtual ~PPB_Flash_API() {} |
| 29 | 26 |
| 30 // Flash. | 27 // 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 double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; | 28 virtual double GetLocalTimeZoneOffset(PP_Instance instance, PP_Time t) = 0; |
| 58 virtual PP_Bool IsRectTopmost(PP_Instance instance, const PP_Rect* rect) = 0; | |
| 59 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0; | 29 virtual PP_Var GetSetting(PP_Instance instance, PP_FlashSetting setting) = 0; |
| 60 }; | 30 }; |
| 61 | 31 |
| 62 } // namespace thunk | 32 } // namespace thunk |
| 63 } // namespace ppapi | 33 } // namespace ppapi |
| 64 | 34 |
| 65 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ | 35 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ |
| OLD | NEW |