| 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_PROXY_PPB_FLASH_PROXY_H_ | 5 #ifndef PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
| 6 #define PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 6 #define PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 virtual ~PPB_Flash_Proxy(); | 40 virtual ~PPB_Flash_Proxy(); |
| 41 | 41 |
| 42 // This flash proxy also proxies the PPB_Flash_Print interface. This one | 42 // This flash proxy also proxies the PPB_Flash_Print interface. This one |
| 43 // doesn't use the regular thunk system because the _impl side is actually in | 43 // doesn't use the regular thunk system because the _impl side is actually in |
| 44 // Chrome rather than with the rest of the interface implementations. | 44 // Chrome rather than with the rest of the interface implementations. |
| 45 static const PPB_Flash_Print_1_0* GetFlashPrintInterface(); | 45 static const PPB_Flash_Print_1_0* GetFlashPrintInterface(); |
| 46 | 46 |
| 47 // InterfaceProxy implementation. | 47 // InterfaceProxy implementation. |
| 48 virtual bool OnMessageReceived(const IPC::Message& msg); | 48 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 49 | 49 |
| 50 // PPB_Flash_API implementation. | |
| 51 virtual void SetInstanceAlwaysOnTop(PP_Instance instance, | |
| 52 PP_Bool on_top) OVERRIDE; | |
| 53 virtual PP_Bool DrawGlyphs( | |
| 54 PP_Instance instance, | |
| 55 PP_Resource pp_image_data, | |
| 56 const PP_BrowserFont_Trusted_Description* font_desc, | |
| 57 uint32_t color, | |
| 58 const PP_Point* position, | |
| 59 const PP_Rect* clip, | |
| 60 const float transformation[3][3], | |
| 61 PP_Bool allow_subpixel_aa, | |
| 62 uint32_t glyph_count, | |
| 63 const uint16_t glyph_indices[], | |
| 64 const PP_Point glyph_advances[]) OVERRIDE; | |
| 65 virtual int32_t Navigate(PP_Instance instance, | |
| 66 PP_Resource request_info, | |
| 67 const char* target, | |
| 68 PP_Bool from_user_action) OVERRIDE; | |
| 69 virtual int32_t Navigate(PP_Instance instance, | |
| 70 const URLRequestInfoData& data, | |
| 71 const char* target, | |
| 72 PP_Bool from_user_action) OVERRIDE; | |
| 73 virtual PP_Bool IsRectTopmost(PP_Instance instance, | |
| 74 const PP_Rect* rect) OVERRIDE; | |
| 75 | |
| 76 static const ApiID kApiID = API_ID_PPB_FLASH; | 50 static const ApiID kApiID = API_ID_PPB_FLASH; |
| 77 | 51 |
| 78 private: | 52 private: |
| 79 // Message handlers. | 53 // Message handlers. |
| 80 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, | |
| 81 PP_Bool on_top); | |
| 82 void OnHostMsgDrawGlyphs(PP_Instance instance, | |
| 83 const PPBFlash_DrawGlyphs_Params& params, | |
| 84 PP_Bool* result); | |
| 85 void OnHostMsgNavigate(PP_Instance instance, | |
| 86 const URLRequestInfoData& data, | |
| 87 const std::string& target, | |
| 88 PP_Bool from_user_action, | |
| 89 int32_t* result); | |
| 90 void OnHostMsgIsRectTopmost(PP_Instance instance, | |
| 91 PP_Rect rect, | |
| 92 PP_Bool* result); | |
| 93 void OnHostMsgInvokePrinting(PP_Instance instance); | 54 void OnHostMsgInvokePrinting(PP_Instance instance); |
| 94 | 55 |
| 95 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); | 56 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); |
| 96 }; | 57 }; |
| 97 | 58 |
| 98 } // namespace proxy | 59 } // namespace proxy |
| 99 } // namespace ppapi | 60 } // namespace ppapi |
| 100 | 61 |
| 101 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 62 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
| OLD | NEW |