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

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: 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 #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 15 matching lines...) Expand all
26 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h" 26 #include "third_party/WebKit/public/web/mac/WebScrollbarTheme.h"
27 #endif 27 #endif
28 28
29 class GrContext; 29 class GrContext;
30 class SkBitmap; 30 class SkBitmap;
31 struct ViewMsg_New_Params; 31 struct ViewMsg_New_Params;
32 struct WorkerProcessMsg_CreateWorker_Params; 32 struct WorkerProcessMsg_CreateWorker_Params;
33 33
34 namespace blink { 34 namespace blink {
35 class WebGamepads; 35 class WebGamepads;
36 class WebGamepadListener;
36 class WebGraphicsContext3D; 37 class WebGraphicsContext3D;
37 class WebMediaStreamCenter; 38 class WebMediaStreamCenter;
38 class WebMediaStreamCenterClient; 39 class WebMediaStreamCenterClient;
39 } 40 }
40 41
41 namespace base { 42 namespace base {
42 class MessageLoopProxy; 43 class MessageLoopProxy;
43 class Thread; 44 class Thread;
44 } 45 }
45 46
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 HistogramCustomizer* histogram_customizer() { 360 HistogramCustomizer* histogram_customizer() {
360 return &histogram_customizer_; 361 return &histogram_customizer_;
361 } 362 }
362 363
363 void SetFlingCurveParameters(const std::vector<float>& new_touchpad, 364 void SetFlingCurveParameters(const std::vector<float>& new_touchpad,
364 const std::vector<float>& new_touchscreen); 365 const std::vector<float>& new_touchscreen);
365 366
366 // Retrieve current gamepad data. 367 // Retrieve current gamepad data.
367 void SampleGamepads(blink::WebGamepads* data); 368 void SampleGamepads(blink::WebGamepads* data);
368 369
370 // Set a listener for gamepad connected/disconnected events.
371 // A non-null listener must be set first before calling SampleGamepads.
372 void SetGamepadListener(blink::WebGamepadListener* listener);
jam 2014/05/05 17:20:32 nit: how about we remove this method, and instead
373
369 // Called by a RenderWidget when it is created or destroyed. This 374 // Called by a RenderWidget when it is created or destroyed. This
370 // allows the process to know when there are no visible widgets. 375 // allows the process to know when there are no visible widgets.
371 void WidgetCreated(); 376 void WidgetCreated();
372 void WidgetDestroyed(); 377 void WidgetDestroyed();
373 void WidgetHidden(); 378 void WidgetHidden();
374 void WidgetRestored(); 379 void WidgetRestored();
375 380
376 void AddSharedWorkerRoute(int32 routing_id, IPC::Listener* listener); 381 void AddSharedWorkerRoute(int32 routing_id, IPC::Listener* listener);
377 void RemoveSharedWorkerRoute(int32 routing_id); 382 void RemoveSharedWorkerRoute(int32 routing_id);
378 383
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 528
524 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_; 529 scoped_ptr<AudioRendererMixerManager> audio_renderer_mixer_manager_;
525 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_; 530 scoped_ptr<media::AudioHardwareConfig> audio_hardware_config_;
526 531
527 HistogramCustomizer histogram_customizer_; 532 HistogramCustomizer histogram_customizer_;
528 533
529 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_; 534 scoped_ptr<base::MemoryPressureListener> memory_pressure_listener_;
530 535
531 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_; 536 scoped_ptr<WebRTCIdentityService> webrtc_identity_service_;
532 537
533 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 538 scoped_refptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
534 539
535 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from 540 // TODO(reveman): Allow AllocateGpuMemoryBuffer to be called from
536 // multiple threads. Current allocation mechanism for IOSurface 541 // multiple threads. Current allocation mechanism for IOSurface
537 // backed GpuMemoryBuffers prevent this. crbug.com/325045 542 // backed GpuMemoryBuffers prevent this. crbug.com/325045
538 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_; 543 base::ThreadChecker allocate_gpu_memory_buffer_thread_checker_;
539 544
540 // Compositor settings 545 // Compositor settings
541 bool is_gpu_rasterization_enabled_; 546 bool is_gpu_rasterization_enabled_;
542 bool is_gpu_rasterization_forced_; 547 bool is_gpu_rasterization_forced_;
543 bool is_impl_side_painting_enabled_; 548 bool is_impl_side_painting_enabled_;
544 bool is_low_res_tiling_enabled_; 549 bool is_low_res_tiling_enabled_;
545 bool is_lcd_text_enabled_; 550 bool is_lcd_text_enabled_;
546 bool is_map_image_enabled_; 551 bool is_map_image_enabled_;
547 552
548 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 553 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
549 }; 554 };
550 555
551 } // namespace content 556 } // namespace content
552 557
553 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 558 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698