Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: ppapi/proxy/ppb_flash_proxy.cc

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/plugin_var_serialization_rules.cc ('k') | ppapi/proxy/ppb_font_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ppapi/proxy/plugin_var_serialization_rules.cc ('k') | ppapi/proxy/ppb_font_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698