OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_THUNK_PPB_FLASH_API_H_ |
| 6 #define PPAPI_THUNK_PPB_FLASH_API_H_ |
| 7 |
| 8 #include "ppapi/c/private/ppb_flash.h" |
| 9 #include "ppapi/thunk/ppapi_thunk_export.h" |
| 10 |
| 11 namespace ppapi { |
| 12 namespace thunk { |
| 13 |
| 14 // This class collects all of the Flash interface-related APIs into one place. |
| 15 class PPAPI_THUNK_EXPORT PPB_Flash_API { |
| 16 public: |
| 17 virtual ~PPB_Flash_API() {} |
| 18 |
| 19 // Flash. |
| 20 virtual void SetInstanceAlwaysOnTop(PP_Instance instance, PP_Bool on_top) = 0; |
| 21 virtual PP_Bool DrawGlyphs(PP_Instance instance, |
| 22 PP_Resource pp_image_data, |
| 23 const PP_FontDescription_Dev* font_desc, |
| 24 uint32_t color, |
| 25 const PP_Point* position, |
| 26 const PP_Rect* clip, |
| 27 const float transformation[3][3], |
| 28 PP_Bool allow_subpixel_aa, |
| 29 uint32_t glyph_count, |
| 30 const uint16_t glyph_indices[], |
| 31 const PP_Point glyph_advances[]) = 0; |
| 32 virtual PP_Var GetProxyForURL(PP_Instance instance, const char* url) = 0; |
| 33 virtual int32_t Navigate(PP_Instance instance, |
| 34 PP_Resource request_info, |
| 35 const char* target, |
| 36 PP_Bool from_user_action) = 0; |
| 37 virtual void RunMessageLoop(PP_Instance instance) = 0; |
| 38 virtual void QuitMessageLoop(PP_Instance instance) = 0; |
| 39 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 int32_t InvokePrinting(PP_Instance instance) = 0; |
| 42 virtual void UpdateActivity(PP_Instance instance) = 0; |
| 43 virtual PP_Var GetDeviceID(PP_Instance instance) = 0; |
| 44 |
| 45 // FlashFullscreen. |
| 46 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) = 0; |
| 47 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, |
| 48 PP_Bool fullscreen) = 0; |
| 49 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, PP_Size* size) = 0; |
| 50 }; |
| 51 |
| 52 } // namespace thunk |
| 53 } // namespace ppapi |
| 54 |
| 55 #endif // PPAPI_THUNK_PPB_FLASH_API_H_ |
OLD | NEW |