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

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

Issue 286793002: [DeviceLight] Add renderer+common parts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix jochen's comments Created 6 years, 6 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_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/child/blink_platform_impl.h" 10 #include "content/child/blink_platform_impl.h"
(...skipping 19 matching lines...) Expand all
30 namespace blink { 30 namespace blink {
31 class WebBatteryStatus; 31 class WebBatteryStatus;
32 class WebDeviceMotionData; 32 class WebDeviceMotionData;
33 class WebDeviceOrientationData; 33 class WebDeviceOrientationData;
34 class WebGraphicsContext3DProvider; 34 class WebGraphicsContext3DProvider;
35 class WebScreenOrientationListener; 35 class WebScreenOrientationListener;
36 } 36 }
37 37
38 namespace content { 38 namespace content {
39 class BatteryStatusDispatcher; 39 class BatteryStatusDispatcher;
40 class DeviceLightEventPump;
40 class DeviceMotionEventPump; 41 class DeviceMotionEventPump;
41 class DeviceOrientationEventPump; 42 class DeviceOrientationEventPump;
42 class QuotaMessageFilter; 43 class QuotaMessageFilter;
43 class RendererClipboardClient; 44 class RendererClipboardClient;
44 class RenderView; 45 class RenderView;
45 class ScreenOrientationDispatcher; 46 class ScreenOrientationDispatcher;
46 class ThreadSafeSender; 47 class ThreadSafeSender;
47 class WebClipboardImpl; 48 class WebClipboardImpl;
48 class WebDatabaseObserverImpl; 49 class WebDatabaseObserverImpl;
49 class WebFileSystemImpl; 50 class WebFileSystemImpl;
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 131 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
131 const blink::WebGraphicsContext3D::Attributes& attributes); 132 const blink::WebGraphicsContext3D::Attributes& attributes);
132 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 133 virtual blink::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
133 const blink::WebGraphicsContext3D::Attributes& attributes, 134 const blink::WebGraphicsContext3D::Attributes& attributes,
134 blink::WebGraphicsContext3D* share_context); 135 blink::WebGraphicsContext3D* share_context);
135 virtual blink::WebGraphicsContext3DProvider* 136 virtual blink::WebGraphicsContext3DProvider*
136 createSharedOffscreenGraphicsContext3DProvider(); 137 createSharedOffscreenGraphicsContext3DProvider();
137 virtual blink::WebCompositorSupport* compositorSupport(); 138 virtual blink::WebCompositorSupport* compositorSupport();
138 virtual blink::WebString convertIDNToUnicode( 139 virtual blink::WebString convertIDNToUnicode(
139 const blink::WebString& host, const blink::WebString& languages); 140 const blink::WebString& host, const blink::WebString& languages);
141 virtual void setDeviceLightListener(blink::WebDeviceLightListener* listener);
140 virtual void setDeviceMotionListener( 142 virtual void setDeviceMotionListener(
141 blink::WebDeviceMotionListener* listener); 143 blink::WebDeviceMotionListener* listener);
142 virtual void setDeviceOrientationListener( 144 virtual void setDeviceOrientationListener(
143 blink::WebDeviceOrientationListener* listener); 145 blink::WebDeviceOrientationListener* listener);
144 virtual void queryStorageUsageAndQuota( 146 virtual void queryStorageUsageAndQuota(
145 const blink::WebURL& storage_partition, 147 const blink::WebURL& storage_partition,
146 blink::WebStorageQuotaType, 148 blink::WebStorageQuotaType,
147 blink::WebStorageQuotaCallbacks); 149 blink::WebStorageQuotaCallbacks);
148 virtual void vibrate(unsigned int milliseconds); 150 virtual void vibrate(unsigned int milliseconds);
149 virtual void cancelVibration(); 151 virtual void cancelVibration();
(...skipping 18 matching lines...) Expand all
168 static void SetMockGamepadsForTesting(const blink::WebGamepads& pads); 170 static void SetMockGamepadsForTesting(const blink::WebGamepads& pads);
169 171
170 // Notifies blink::WebGamepadListener about a new gamepad if a listener 172 // Notifies blink::WebGamepadListener about a new gamepad if a listener
171 // has been set via setGamepadListener. 173 // has been set via setGamepadListener.
172 static void MockGamepadConnected(int index, const blink::WebGamepad& pad); 174 static void MockGamepadConnected(int index, const blink::WebGamepad& pad);
173 175
174 // Notifies blink::WebGamepadListener that a gamepad has been disconnected if 176 // Notifies blink::WebGamepadListener that a gamepad has been disconnected if
175 // a listener has been set via setGamepadListener. 177 // a listener has been set via setGamepadListener.
176 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad); 178 static void MockGamepadDisconnected(int index, const blink::WebGamepad& pad);
177 179
180 // Set a double to return when setDeviceLightListener is invoked.
181 static void SetMockDeviceLightDataForTesting(double data);
178 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked. 182 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked.
179 static void SetMockDeviceMotionDataForTesting( 183 static void SetMockDeviceMotionDataForTesting(
180 const blink::WebDeviceMotionData& data); 184 const blink::WebDeviceMotionData& data);
181 // Set WebDeviceOrientationData to return when setDeviceOrientationListener 185 // Set WebDeviceOrientationData to return when setDeviceOrientationListener
182 // is invoked. 186 // is invoked.
183 static void SetMockDeviceOrientationDataForTesting( 187 static void SetMockDeviceOrientationDataForTesting(
184 const blink::WebDeviceOrientationData& data); 188 const blink::WebDeviceOrientationData& data);
185 // Forces the screen orientation for testing purposes. 189 // Forces the screen orientation for testing purposes.
186 static void SetMockScreenOrientationForTesting( 190 static void SetMockScreenOrientationForTesting(
187 RenderView* render_view, 191 RenderView* render_view,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 225
222 // If true, then a GetPlugins call is allowed to rescan the disk. 226 // If true, then a GetPlugins call is allowed to rescan the disk.
223 bool plugin_refresh_allowed_; 227 bool plugin_refresh_allowed_;
224 228
225 scoped_ptr<blink::WebIDBFactory> web_idb_factory_; 229 scoped_ptr<blink::WebIDBFactory> web_idb_factory_;
226 230
227 scoped_ptr<blink::WebBlobRegistry> blob_registry_; 231 scoped_ptr<blink::WebBlobRegistry> blob_registry_;
228 232
229 WebPublicSuffixListImpl public_suffix_list_; 233 WebPublicSuffixListImpl public_suffix_list_;
230 234
235 scoped_ptr<DeviceLightEventPump> device_light_event_pump_;
231 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; 236 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_;
232 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; 237 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_;
233 238
234 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; 239 scoped_refptr<base::MessageLoopProxy> child_thread_loop_;
235 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 240 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
236 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 241 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
237 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 242 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
238 243
239 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 244 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
240 245
241 webkit::WebCompositorSupportImpl compositor_support_; 246 webkit::WebCompositorSupportImpl compositor_support_;
242 247
243 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; 248 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_;
244 249
245 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; 250 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_;
246 251
247 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; 252 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_;
248 253
249 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); 254 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
250 }; 255 };
251 256
252 } // namespace content 257 } // namespace content
253 258
254 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 259 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698