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