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

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

Issue 22320006: Move gamepad reader code out of PepperHelperImpl in the effort to eliminate PepperHelperImpl. I'm a… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix clang Created 7 years, 4 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
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/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #include "content/public/common/content_switches.h" 51 #include "content/public/common/content_switches.h"
52 #include "content/public/common/renderer_preferences.h" 52 #include "content/public/common/renderer_preferences.h"
53 #include "content/public/common/url_constants.h" 53 #include "content/public/common/url_constants.h"
54 #include "content/public/renderer/content_renderer_client.h" 54 #include "content/public/renderer/content_renderer_client.h"
55 #include "content/public/renderer/render_process_observer.h" 55 #include "content/public/renderer/render_process_observer.h"
56 #include "content/public/renderer/render_view_visitor.h" 56 #include "content/public/renderer/render_view_visitor.h"
57 #include "content/renderer/devtools/devtools_agent_filter.h" 57 #include "content/renderer/devtools/devtools_agent_filter.h"
58 #include "content/renderer/dom_storage/dom_storage_dispatcher.h" 58 #include "content/renderer/dom_storage/dom_storage_dispatcher.h"
59 #include "content/renderer/dom_storage/webstoragearea_impl.h" 59 #include "content/renderer/dom_storage/webstoragearea_impl.h"
60 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" 60 #include "content/renderer/dom_storage/webstoragenamespace_impl.h"
61 #include "content/renderer/gamepad_shared_memory_reader.h"
61 #include "content/renderer/gpu/compositor_output_surface.h" 62 #include "content/renderer/gpu/compositor_output_surface.h"
62 #include "content/renderer/gpu/gpu_benchmarking_extension.h" 63 #include "content/renderer/gpu/gpu_benchmarking_extension.h"
63 #include "content/renderer/gpu/input_event_filter.h" 64 #include "content/renderer/gpu/input_event_filter.h"
64 #include "content/renderer/gpu/input_handler_manager.h" 65 #include "content/renderer/gpu/input_handler_manager.h"
65 #include "content/renderer/media/audio_input_message_filter.h" 66 #include "content/renderer/media/audio_input_message_filter.h"
66 #include "content/renderer/media/audio_message_filter.h" 67 #include "content/renderer/media/audio_message_filter.h"
67 #include "content/renderer/media/audio_renderer_mixer_manager.h" 68 #include "content/renderer/media/audio_renderer_mixer_manager.h"
68 #include "content/renderer/media/media_stream_center.h" 69 #include "content/renderer/media/media_stream_center.h"
69 #include "content/renderer/media/media_stream_dependency_factory.h" 70 #include "content/renderer/media/media_stream_dependency_factory.h"
70 #include "content/renderer/media/midi_message_filter.h" 71 #include "content/renderer/media/midi_message_filter.h"
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after
1296 } 1297 }
1297 1298
1298 void RenderThreadImpl::SetFlingCurveParameters( 1299 void RenderThreadImpl::SetFlingCurveParameters(
1299 const std::vector<float>& new_touchpad, 1300 const std::vector<float>& new_touchpad,
1300 const std::vector<float>& new_touchscreen) { 1301 const std::vector<float>& new_touchscreen) {
1301 webkit_platform_support_->SetFlingCurveParameters(new_touchpad, 1302 webkit_platform_support_->SetFlingCurveParameters(new_touchpad,
1302 new_touchscreen); 1303 new_touchscreen);
1303 1304
1304 } 1305 }
1305 1306
1307 void RenderThreadImpl::SampleGamepads(WebKit::WebGamepads* data) {
1308 if (!gamepad_shared_memory_reader_)
1309 gamepad_shared_memory_reader_.reset(new GamepadSharedMemoryReader);
1310 gamepad_shared_memory_reader_->SampleGamepads(*data);
1311 }
1312
1306 } // namespace content 1313 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698