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

Side by Side Diff: content/renderer/pepper/pepper_plugin_instance_impl.cc

Issue 26406002: Miscellanous changes detected by strict aliasing warnings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 months 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 | « no previous file | remoting/client/plugin/pepper_util.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) 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 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" 5 #include "content/renderer/pepper/pepper_plugin_instance_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 PPB_Gamepad_API* PepperPluginInstanceImpl::GamepadImpl::AsPPB_Gamepad_API() { 462 PPB_Gamepad_API* PepperPluginInstanceImpl::GamepadImpl::AsPPB_Gamepad_API() {
463 return this; 463 return this;
464 } 464 }
465 465
466 void PepperPluginInstanceImpl::GamepadImpl::Sample( 466 void PepperPluginInstanceImpl::GamepadImpl::Sample(
467 PP_Instance instance, 467 PP_Instance instance,
468 PP_GamepadsSampleData* data) { 468 PP_GamepadsSampleData* data) {
469 WebKit::WebGamepads webkit_data; 469 WebKit::WebGamepads webkit_data;
470 RenderThreadImpl::current()->SampleGamepads(&webkit_data); 470 RenderThreadImpl::current()->SampleGamepads(&webkit_data);
471 ConvertWebKitGamepadData( 471 ConvertWebKitGamepadData(
472 *reinterpret_cast<const ppapi::WebKitGamepads*>(&webkit_data), data); 472 bit_cast<ppapi::WebKitGamepads>(webkit_data), data);
473 } 473 }
474 474
475 PepperPluginInstanceImpl::PepperPluginInstanceImpl( 475 PepperPluginInstanceImpl::PepperPluginInstanceImpl(
476 RenderViewImpl* render_view, 476 RenderViewImpl* render_view,
477 PluginModule* module, 477 PluginModule* module,
478 ppapi::PPP_Instance_Combined* instance_interface, 478 ppapi::PPP_Instance_Combined* instance_interface,
479 WebPluginContainer* container, 479 WebPluginContainer* container,
480 const GURL& plugin_url) 480 const GURL& plugin_url)
481 : render_view_(render_view), 481 : render_view_(render_view),
482 module_(module), 482 module_(module),
(...skipping 2517 matching lines...) Expand 10 before | Expand all | Expand 10 after
3000 // Running out-of-process. Initiate an IPC call to notify the plugin 3000 // Running out-of-process. Initiate an IPC call to notify the plugin
3001 // process. 3001 // process.
3002 ppapi::proxy::HostDispatcher* dispatcher = 3002 ppapi::proxy::HostDispatcher* dispatcher =
3003 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance()); 3003 ppapi::proxy::HostDispatcher::GetForInstance(pp_instance());
3004 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad( 3004 dispatcher->Send(new PpapiMsg_PPPInstance_HandleDocumentLoad(
3005 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data)); 3005 ppapi::API_ID_PPP_INSTANCE, pp_instance(), pending_host_id, data));
3006 } 3006 }
3007 } 3007 }
3008 3008
3009 } // namespace content 3009 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | remoting/client/plugin/pepper_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698