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

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

Issue 133943002: Gamepad API support for chrome on android (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 6 years, 11 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 // Copyright (c) 2014, NVIDIA CORPORATION. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 4 // found in the LICENSE file.
4 5
5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 7 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 8
8 #include <set> 9 #include <set>
9 #include <string> 10 #include <string>
10 #include <vector> 11 #include <vector>
11 12
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 DISALLOW_COPY_AND_ASSIGN(HistogramCustomizer); 331 DISALLOW_COPY_AND_ASSIGN(HistogramCustomizer);
331 }; 332 };
332 333
333 HistogramCustomizer* histogram_customizer() { 334 HistogramCustomizer* histogram_customizer() {
334 return &histogram_customizer_; 335 return &histogram_customizer_;
335 } 336 }
336 337
337 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, 338 void SetFlingCurveParameters(const std::vector<float>& new_touchpad,
338 const std::vector<float>& new_touchscreen); 339 const std::vector<float>& new_touchscreen);
339 340
341 #if defined(OS_ANDROID)
342 // Resume current gamepad poll thread.
343 void ResumeGamepads();
344 // Pause current gamepad poll thread.
345 void PauseGamepads();
346 #endif
347
340 // Retrieve current gamepad data. 348 // Retrieve current gamepad data.
341 void SampleGamepads(blink::WebGamepads* data); 349 void SampleGamepads(blink::WebGamepads* data);
342 350
343 // Get the browser process's notion of the renderer process's ID. 351 // Get the browser process's notion of the renderer process's ID.
344 // This is the first argument to RenderWidgetHost::FromID. Ideally 352 // This is the first argument to RenderWidgetHost::FromID. Ideally
345 // this would be available on all platforms via base::Process. 353 // this would be available on all platforms via base::Process.
346 base::ProcessId renderer_process_id() const; 354 base::ProcessId renderer_process_id() const;
347 355
348 private: 356 private:
349 // ChildThread 357 // ChildThread
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 // multiple threads. Current allocation mechanism for IOSurface 508 // multiple threads. Current allocation mechanism for IOSurface
501 // backed GpuMemoryBuffers prevent this. crbug.com/325045 509 // backed GpuMemoryBuffers prevent this. crbug.com/325045
502 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; 510 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_;
503 511
504 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 512 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
505 }; 513 };
506 514
507 } // namespace content 515 } // namespace content
508 516
509 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 517 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698