OLD | NEW |
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 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" | 27 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" |
28 #endif | 28 #endif |
29 | 29 |
30 class GrContext; | 30 class GrContext; |
31 class SkBitmap; | 31 class SkBitmap; |
32 struct ViewMsg_New_Params; | 32 struct ViewMsg_New_Params; |
33 struct WorkerProcessMsg_CreateWorker_Params; | 33 struct WorkerProcessMsg_CreateWorker_Params; |
34 | 34 |
35 namespace blink { | 35 namespace blink { |
36 class WebGamepads; | 36 class WebGamepads; |
| 37 class WebGamepadListener; |
37 class WebGraphicsContext3D; | 38 class WebGraphicsContext3D; |
38 class WebMediaStreamCenter; | 39 class WebMediaStreamCenter; |
39 class WebMediaStreamCenterClient; | 40 class WebMediaStreamCenterClient; |
40 } | 41 } |
41 | 42 |
42 namespace base { | 43 namespace base { |
43 class MessageLoopProxy; | 44 class MessageLoopProxy; |
44 class Thread; | 45 class Thread; |
45 } | 46 } |
46 | 47 |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 HistogramCustomizer* histogram_customizer() { | 359 HistogramCustomizer* histogram_customizer() { |
359 return &histogram_customizer_; | 360 return &histogram_customizer_; |
360 } | 361 } |
361 | 362 |
362 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, | 363 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, |
363 const std::vector<float>& new_touchscreen); | 364 const std::vector<float>& new_touchscreen); |
364 | 365 |
365 // Retrieve current gamepad data. | 366 // Retrieve current gamepad data. |
366 void SampleGamepads(blink::WebGamepads* data); | 367 void SampleGamepads(blink::WebGamepads* data); |
367 | 368 |
| 369 // Set a listener for gamepad connected/disconnected events |
| 370 void SetGamepadListener(blink::WebGamepadListener* listener); |
| 371 |
368 // Called by a RenderWidget when it is created or destroyed. This | 372 // Called by a RenderWidget when it is created or destroyed. This |
369 // allows the process to know when there are no visible widgets. | 373 // allows the process to know when there are no visible widgets. |
370 void WidgetCreated(); | 374 void WidgetCreated(); |
371 void WidgetDestroyed(); | 375 void WidgetDestroyed(); |
372 void WidgetHidden(); | 376 void WidgetHidden(); |
373 void WidgetRestored(); | 377 void WidgetRestored(); |
374 | 378 |
375 private: | 379 private: |
376 // ChildThread | 380 // ChildThread |
377 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; | 381 virtual bool OnControlMessageReceived(const IPC::Message& msg) OVERRIDE; |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
514 | 518 |
515 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; | 519 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; |
516 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; | 520 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; |
517 | 521 |
518 HistogramCustomizer histogram_customizer_; | 522 HistogramCustomizer histogram_customizer_; |
519 | 523 |
520 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; | 524 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; |
521 | 525 |
522 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; | 526 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; |
523 | 527 |
524 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; | 528 scoped_refptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; |
525 | 529 |
526 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from | 530 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from |
527 // multiple threads. Current allocation mechanism for IOSurface | 531 // multiple threads. Current allocation mechanism for IOSurface |
528 // backed GpuMemoryBuffers prevent this. crbug.com/325045 | 532 // backed GpuMemoryBuffers prevent this. crbug.com/325045 |
529 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; | 533 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; |
530 | 534 |
531 // Compositor settings | 535 // Compositor settings |
532 bool is_gpu_rasterization_enabled_; | 536 bool is_gpu_rasterization_enabled_; |
533 bool is_gpu_rasterization_forced_; | 537 bool is_gpu_rasterization_forced_; |
534 bool is_impl_side_painting_enabled_; | 538 bool is_impl_side_painting_enabled_; |
535 bool is_lcd_text_enabled_; | 539 bool is_lcd_text_enabled_; |
536 bool is_map_image_enabled_; | 540 bool is_map_image_enabled_; |
537 | 541 |
538 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); | 542 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); |
539 }; | 543 }; |
540 | 544 |
541 } // namespace content | 545 } // namespace content |
542 | 546 |
543 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ | 547 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ |
OLD | NEW |