OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "ppapi/proxy/ppb_flash_proxy.h" | 5 #include "ppapi/proxy/ppb_flash_proxy.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "ppapi/c/dev/ppb_font_dev.h" | 10 #include "ppapi/c/dev/ppb_font_dev.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // performance. | 146 // performance. |
147 // | 147 // |
148 // On Linux, it would be better to go directly to the browser process for | 148 // On Linux, it would be better to go directly to the browser process for |
149 // this message rather than proxy it through some instance in a renderer. | 149 // this message rather than proxy it through some instance in a renderer. |
150 double result = 0; | 150 double result = 0; |
151 dispatcher->Send(new PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset( | 151 dispatcher->Send(new PpapiHostMsg_PPBFlash_GetLocalTimeZoneOffset( |
152 API_ID_PPB_FLASH, instance, t, &result)); | 152 API_ID_PPB_FLASH, instance, t, &result)); |
153 return result; | 153 return result; |
154 } | 154 } |
155 | 155 |
156 PP_Var GetCommandLineArgs(PP_Module pp_module) { | 156 PP_Var GetCommandLineArgs(PP_Module /*pp_module*/) { |
157 std::string args = ProxyModule::GetInstance()->GetFlashCommandLineArgs(); | 157 std::string args = ProxyModule::GetInstance()->GetFlashCommandLineArgs(); |
158 return StringVar::StringToPPVar(pp_module, args); | 158 return StringVar::StringToPPVar(args); |
159 } | 159 } |
160 | 160 |
161 const PPB_Flash flash_interface = { | 161 const PPB_Flash flash_interface = { |
162 &SetInstanceAlwaysOnTop, | 162 &SetInstanceAlwaysOnTop, |
163 &DrawGlyphs, | 163 &DrawGlyphs, |
164 &GetProxyForURL, | 164 &GetProxyForURL, |
165 &Navigate, | 165 &Navigate, |
166 &RunMessageLoop, | 166 &RunMessageLoop, |
167 &QuitMessageLoop, | 167 &QuitMessageLoop, |
168 &GetLocalTimeZoneOffset, | 168 &GetLocalTimeZoneOffset, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 } | 299 } |
300 | 300 |
301 void PPB_Flash_Proxy::OnMsgGetLocalTimeZoneOffset(PP_Instance instance, | 301 void PPB_Flash_Proxy::OnMsgGetLocalTimeZoneOffset(PP_Instance instance, |
302 PP_Time t, | 302 PP_Time t, |
303 double* result) { | 303 double* result) { |
304 *result = ppb_flash_impl_->GetLocalTimeZoneOffset(instance, t); | 304 *result = ppb_flash_impl_->GetLocalTimeZoneOffset(instance, t); |
305 } | 305 } |
306 | 306 |
307 } // namespace proxy | 307 } // namespace proxy |
308 } // namespace ppapi | 308 } // namespace ppapi |
OLD | NEW |