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

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

Issue 2688383002: [ScreenOrientation] Merge mojo interface ScreenOrientationListener into ScreenOrientation
Patch Set: Address comments from mlamouri@ Created 3 years, 10 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 #include "content/renderer/renderer_blink_platform_impl.h" 5 #include "content/renderer/renderer_blink_platform_impl.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #include "content/renderer/media/capturefromelement/canvas_capture_handler.h" 58 #include "content/renderer/media/capturefromelement/canvas_capture_handler.h"
59 #include "content/renderer/media/capturefromelement/html_audio_element_capturer_ source.h" 59 #include "content/renderer/media/capturefromelement/html_audio_element_capturer_ source.h"
60 #include "content/renderer/media/capturefromelement/html_video_element_capturer_ source.h" 60 #include "content/renderer/media/capturefromelement/html_video_element_capturer_ source.h"
61 #include "content/renderer/media/image_capture_frame_grabber.h" 61 #include "content/renderer/media/image_capture_frame_grabber.h"
62 #include "content/renderer/media/recorder/media_recorder_handler.h" 62 #include "content/renderer/media/recorder/media_recorder_handler.h"
63 #include "content/renderer/media/renderer_webaudiodevice_impl.h" 63 #include "content/renderer/media/renderer_webaudiodevice_impl.h"
64 #include "content/renderer/media/renderer_webmidiaccessor_impl.h" 64 #include "content/renderer/media/renderer_webmidiaccessor_impl.h"
65 #include "content/renderer/mojo/blink_interface_provider_impl.h" 65 #include "content/renderer/mojo/blink_interface_provider_impl.h"
66 #include "content/renderer/render_thread_impl.h" 66 #include "content/renderer/render_thread_impl.h"
67 #include "content/renderer/renderer_clipboard_delegate.h" 67 #include "content/renderer/renderer_clipboard_delegate.h"
68 #include "content/renderer/screen_orientation/screen_orientation_observer.h"
69 #include "content/renderer/webclipboard_impl.h" 68 #include "content/renderer/webclipboard_impl.h"
70 #include "content/renderer/webgraphicscontext3d_provider_impl.h" 69 #include "content/renderer/webgraphicscontext3d_provider_impl.h"
71 #include "content/renderer/webpublicsuffixlist_impl.h" 70 #include "content/renderer/webpublicsuffixlist_impl.h"
72 #include "gpu/command_buffer/client/gles2_interface.h" 71 #include "gpu/command_buffer/client/gles2_interface.h"
73 #include "gpu/config/gpu_info.h" 72 #include "gpu/config/gpu_info.h"
74 #include "gpu/ipc/client/gpu_channel_host.h" 73 #include "gpu/ipc/client/gpu_channel_host.h"
75 #include "gpu/ipc/common/gpu_stream_constants.h" 74 #include "gpu/ipc/common/gpu_stream_constants.h"
76 #include "ipc/ipc_sync_message_filter.h" 75 #include "ipc/ipc_sync_message_filter.h"
77 #include "media/audio/audio_output_device.h" 76 #include "media/audio/audio_output_device.h"
78 #include "media/blink/webcontentdecryptionmodule_impl.h" 77 #include "media/blink/webcontentdecryptionmodule_impl.h"
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1163 case blink::WebPlatformEventTypeDeviceMotion: 1162 case blink::WebPlatformEventTypeDeviceMotion:
1164 return base::MakeUnique<DeviceMotionEventPump>(thread); 1163 return base::MakeUnique<DeviceMotionEventPump>(thread);
1165 case blink::WebPlatformEventTypeDeviceOrientation: 1164 case blink::WebPlatformEventTypeDeviceOrientation:
1166 return base::MakeUnique<DeviceOrientationEventPump>(thread); 1165 return base::MakeUnique<DeviceOrientationEventPump>(thread);
1167 case blink::WebPlatformEventTypeDeviceOrientationAbsolute: 1166 case blink::WebPlatformEventTypeDeviceOrientationAbsolute:
1168 return base::MakeUnique<DeviceOrientationAbsoluteEventPump>(thread); 1167 return base::MakeUnique<DeviceOrientationAbsoluteEventPump>(thread);
1169 case blink::WebPlatformEventTypeDeviceLight: 1168 case blink::WebPlatformEventTypeDeviceLight:
1170 return base::MakeUnique<DeviceLightEventPump>(thread); 1169 return base::MakeUnique<DeviceLightEventPump>(thread);
1171 case blink::WebPlatformEventTypeGamepad: 1170 case blink::WebPlatformEventTypeGamepad:
1172 return base::MakeUnique<GamepadSharedMemoryReader>(thread); 1171 return base::MakeUnique<GamepadSharedMemoryReader>(thread);
1173 case blink::WebPlatformEventTypeScreenOrientation:
1174 return base::MakeUnique<ScreenOrientationObserver>();
1175 default: 1172 default:
1176 // A default statement is required to prevent compilation errors when 1173 // A default statement is required to prevent compilation errors when
1177 // Blink adds a new type. 1174 // Blink adds a new type.
1178 DVLOG(1) << "RendererBlinkPlatformImpl::startListening() with " 1175 DVLOG(1) << "RendererBlinkPlatformImpl::startListening() with "
1179 "unknown type."; 1176 "unknown type.";
1180 } 1177 }
1181 1178
1182 return NULL; 1179 return NULL;
1183 } 1180 }
1184 1181
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
1288 return &trial_token_validator_; 1285 return &trial_token_validator_;
1289 } 1286 }
1290 1287
1291 void RendererBlinkPlatformImpl::workerContextCreated( 1288 void RendererBlinkPlatformImpl::workerContextCreated(
1292 const v8::Local<v8::Context>& worker) { 1289 const v8::Local<v8::Context>& worker) {
1293 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1290 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1294 worker); 1291 worker);
1295 } 1292 }
1296 1293
1297 } // namespace content 1294 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/screen_orientation/screen_orientation_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698