| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 PP_DirContents_Dev** contents) OVERRIDE; | 104 PP_DirContents_Dev** contents) OVERRIDE; |
| 105 virtual int32_t CreateTemporaryFile(PP_Instance instance, | 105 virtual int32_t CreateTemporaryFile(PP_Instance instance, |
| 106 PP_FileHandle* file) OVERRIDE; | 106 PP_FileHandle* file) OVERRIDE; |
| 107 virtual int32_t OpenFileRef(PP_Instance instance, | 107 virtual int32_t OpenFileRef(PP_Instance instance, |
| 108 PP_Resource file_ref, | 108 PP_Resource file_ref, |
| 109 int32_t mode, | 109 int32_t mode, |
| 110 PP_FileHandle* file) OVERRIDE; | 110 PP_FileHandle* file) OVERRIDE; |
| 111 virtual int32_t QueryFileRef(PP_Instance instance, | 111 virtual int32_t QueryFileRef(PP_Instance instance, |
| 112 PP_Resource file_ref, | 112 PP_Resource file_ref, |
| 113 PP_FileInfo* info) OVERRIDE; | 113 PP_FileInfo* info) OVERRIDE; |
| 114 virtual PP_Bool FlashIsFullscreen(PP_Instance instance) OVERRIDE; | |
| 115 virtual PP_Bool FlashSetFullscreen(PP_Instance instance, | |
| 116 PP_Bool fullscreen) OVERRIDE; | |
| 117 virtual PP_Bool FlashGetScreenSize(PP_Instance instance, | |
| 118 PP_Size* size) OVERRIDE; | |
| 119 | 114 |
| 120 static const ApiID kApiID = API_ID_PPB_FLASH; | 115 static const ApiID kApiID = API_ID_PPB_FLASH; |
| 121 | 116 |
| 122 private: | 117 private: |
| 123 // Message handlers. | 118 // Message handlers. |
| 124 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, | 119 void OnHostMsgSetInstanceAlwaysOnTop(PP_Instance instance, |
| 125 PP_Bool on_top); | 120 PP_Bool on_top); |
| 126 void OnHostMsgDrawGlyphs(PP_Instance instance, | 121 void OnHostMsgDrawGlyphs(PP_Instance instance, |
| 127 const PPBFlash_DrawGlyphs_Params& params, | 122 const PPBFlash_DrawGlyphs_Params& params, |
| 128 PP_Bool* result); | 123 PP_Bool* result); |
| 129 void OnHostMsgGetProxyForURL(PP_Instance instance, | 124 void OnHostMsgGetProxyForURL(PP_Instance instance, |
| 130 const std::string& url, | 125 const std::string& url, |
| 131 SerializedVarReturnValue result); | 126 SerializedVarReturnValue result); |
| 132 void OnHostMsgNavigate(PP_Instance instance, | 127 void OnHostMsgNavigate(PP_Instance instance, |
| 133 const URLRequestInfoData& data, | 128 const URLRequestInfoData& data, |
| 134 const std::string& target, | 129 const std::string& target, |
| 135 PP_Bool from_user_action, | 130 PP_Bool from_user_action, |
| 136 int32_t* result); | 131 int32_t* result); |
| 137 void OnHostMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, | 132 void OnHostMsgGetLocalTimeZoneOffset(PP_Instance instance, PP_Time t, |
| 138 double* result); | 133 double* result); |
| 139 void OnHostMsgIsRectTopmost(PP_Instance instance, | 134 void OnHostMsgIsRectTopmost(PP_Instance instance, |
| 140 PP_Rect rect, | 135 PP_Rect rect, |
| 141 PP_Bool* result); | 136 PP_Bool* result); |
| 142 void OnHostMsgFlashSetFullscreen(PP_Instance instance, | |
| 143 PP_Bool fullscreen, | |
| 144 PP_Bool* result); | |
| 145 void OnHostMsgFlashGetScreenSize(PP_Instance instance, | |
| 146 PP_Bool* result, | |
| 147 PP_Size* size); | |
| 148 void OnHostMsgOpenFileRef(PP_Instance instance, | 137 void OnHostMsgOpenFileRef(PP_Instance instance, |
| 149 const ppapi::HostResource& host_resource, | 138 const ppapi::HostResource& host_resource, |
| 150 int32_t mode, | 139 int32_t mode, |
| 151 IPC::PlatformFileForTransit* file_handle, | 140 IPC::PlatformFileForTransit* file_handle, |
| 152 int32_t* result); | 141 int32_t* result); |
| 153 void OnHostMsgQueryFileRef(PP_Instance instance, | 142 void OnHostMsgQueryFileRef(PP_Instance instance, |
| 154 const ppapi::HostResource& host_resource, | 143 const ppapi::HostResource& host_resource, |
| 155 PP_FileInfo* info, | 144 PP_FileInfo* info, |
| 156 int32_t* result); | 145 int32_t* result); |
| 157 void OnHostMsgGetSetting(PP_Instance instance, | 146 void OnHostMsgGetSetting(PP_Instance instance, |
| 158 PP_FlashSetting setting, | 147 PP_FlashSetting setting, |
| 159 SerializedVarReturnValue result); | 148 SerializedVarReturnValue result); |
| 160 void OnHostMsgInvokePrinting(PP_Instance instance); | 149 void OnHostMsgInvokePrinting(PP_Instance instance); |
| 161 | 150 |
| 162 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); | 151 DISALLOW_COPY_AND_ASSIGN(PPB_Flash_Proxy); |
| 163 }; | 152 }; |
| 164 | 153 |
| 165 } // namespace proxy | 154 } // namespace proxy |
| 166 } // namespace ppapi | 155 } // namespace ppapi |
| 167 | 156 |
| 168 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ | 157 #endif // PPAPI_PROXY_PPB_FLASH_PROXY_H_ |
| OLD | NEW |