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

Side by Side Diff: content/renderer/renderer_webkitplatformsupport_impl.cc

Issue 195873019: Gamepad API: add support for connection events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix alignment issue in ipc code Created 6 years, 7 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
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/renderer_webkitplatformsupport_impl.h" 5 #include "content/renderer/renderer_webkitplatformsupport_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
(...skipping 875 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 if (g_test_gamepads == 0) { 886 if (g_test_gamepads == 0) {
887 RenderThreadImpl::current()->SampleGamepads(&gamepads); 887 RenderThreadImpl::current()->SampleGamepads(&gamepads);
888 } else { 888 } else {
889 gamepads = g_test_gamepads.Get(); 889 gamepads = g_test_gamepads.Get();
890 } 890 }
891 } 891 }
892 892
893 void RendererWebKitPlatformSupportImpl::setGamepadListener( 893 void RendererWebKitPlatformSupportImpl::setGamepadListener(
894 blink::WebGamepadListener* listener) { 894 blink::WebGamepadListener* listener) {
895 web_gamepad_listener = listener; 895 web_gamepad_listener = listener;
896 RenderThreadImpl::current()->SetGamepadListener(listener);
896 } 897 }
897 898
898 //------------------------------------------------------------------------------ 899 //------------------------------------------------------------------------------
899 900
900 WebRTCPeerConnectionHandler* 901 WebRTCPeerConnectionHandler*
901 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler( 902 RendererWebKitPlatformSupportImpl::createRTCPeerConnectionHandler(
902 WebRTCPeerConnectionHandlerClient* client) { 903 WebRTCPeerConnectionHandlerClient* client) {
903 RenderThreadImpl* render_thread = RenderThreadImpl::current(); 904 RenderThreadImpl* render_thread = RenderThreadImpl::current();
904 DCHECK(render_thread); 905 DCHECK(render_thread);
905 if (!render_thread) 906 if (!render_thread)
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1173 return; 1174 return;
1174 QuotaDispatcher::ThreadSpecificInstance( 1175 QuotaDispatcher::ThreadSpecificInstance(
1175 thread_safe_sender_.get(), 1176 thread_safe_sender_.get(),
1176 quota_message_filter_.get())->QueryStorageUsageAndQuota( 1177 quota_message_filter_.get())->QueryStorageUsageAndQuota(
1177 storage_partition, 1178 storage_partition,
1178 static_cast<quota::StorageType>(type), 1179 static_cast<quota::StorageType>(type),
1179 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks)); 1180 QuotaDispatcher::CreateWebStorageQuotaCallbacksWrapper(callbacks));
1180 } 1181 }
1181 1182
1182 } // namespace content 1183 } // namespace content
OLDNEW
« content/renderer/render_thread_impl.h ('K') | « content/renderer/render_thread_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698