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

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

Issue 195873019: Gamepad API: add support for connection events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add some more comments Created 6 years, 9 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 #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
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 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 HistogramCustomizer* histogram_customizer() { 361 HistogramCustomizer* histogram_customizer() {
361 return &histogram_customizer_; 362 return &histogram_customizer_;
362 } 363 }
363 364
364 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, 365 void SetFlingCurveParameters(const std::vector<float>& new_touchpad,
365 const std::vector<float>& new_touchscreen); 366 const std::vector<float>& new_touchscreen);
366 367
367 // Retrieve current gamepad data. 368 // Retrieve current gamepad data.
368 void SampleGamepads(blink::WebGamepads* data); 369 void SampleGamepads(blink::WebGamepads* data);
369 370
371 // Set a listener for gamepad connected/disconnected events.
372 // A non-null listener must be set first before calling SampleGamepads.
373 void SetGamepadListener(blink::WebGamepadListener* listener);
374
370 // Called by a RenderWidget when it is created or destroyed. This 375 // Called by a RenderWidget when it is created or destroyed. This
371 // allows the process to know when there are no visible widgets. 376 // allows the process to know when there are no visible widgets.
372 void WidgetCreated(); 377 void WidgetCreated();
373 void WidgetDestroyed(); 378 void WidgetDestroyed();
374 void WidgetHidden(); 379 void WidgetHidden();
375 void WidgetRestored(); 380 void WidgetRestored();
376 381
377 void AddSharedWorkerRoute(int32 routing_id, IPC::Listener* listener); 382 void AddSharedWorkerRoute(int32 routing_id, IPC::Listener* listener);
378 void RemoveSharedWorkerRoute(int32 routing_id); 383 void RemoveSharedWorkerRoute(int32 routing_id);
379 384
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 524
520 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; 525 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_;
521 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 526 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
522 527
523 HistogramCustomizer histogram_customizer_; 528 HistogramCustomizer histogram_customizer_;
524 529
525 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 530 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
526 531
527 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; 532 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_;
528 533
529 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 534 scoped_refptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
530 535
531 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from 536 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from
532 // multiple threads. Current allocation mechanism for IOSurface 537 // multiple threads. Current allocation mechanism for IOSurface
533 // backed GpuMemoryBuffers prevent this. crbug.com/325045 538 // backed GpuMemoryBuffers prevent this. crbug.com/325045
534 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; 539 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_;
535 540
536 // Compositor settings 541 // Compositor settings
537 bool is_gpu_rasterization_enabled_; 542 bool is_gpu_rasterization_enabled_;
538 bool is_gpu_rasterization_forced_; 543 bool is_gpu_rasterization_forced_;
539 bool is_impl_side_painting_enabled_; 544 bool is_impl_side_painting_enabled_;
540 bool is_low_res_tiling_enabled_; 545 bool is_low_res_tiling_enabled_;
541 bool is_lcd_text_enabled_; 546 bool is_lcd_text_enabled_;
542 bool is_map_image_enabled_; 547 bool is_map_image_enabled_;
543 548
544 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 549 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
545 }; 550 };
546 551
547 } // namespace content 552 } // namespace content
548 553
549 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 554 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698