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

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

Issue 258693012: Add BatteryStatusEventPump in Chromium for sending Battery status events Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_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 "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 18 matching lines...) Expand all
29 } 29 }
30 30
31 namespace blink { 31 namespace blink {
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 BatteryStatusEventPump;
39 class DeviceMotionEventPump; 40 class DeviceMotionEventPump;
40 class DeviceOrientationEventPump; 41 class DeviceOrientationEventPump;
41 class QuotaMessageFilter; 42 class QuotaMessageFilter;
42 class RendererClipboardClient; 43 class RendererClipboardClient;
43 class ScreenOrientationDispatcher; 44 class ScreenOrientationDispatcher;
44 class ThreadSafeSender; 45 class ThreadSafeSender;
45 class WebClipboardImpl; 46 class WebClipboardImpl;
46 class WebDatabaseObserverImpl; 47 class WebDatabaseObserverImpl;
47 class WebFileSystemImpl; 48 class WebFileSystemImpl;
48 49
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 blink::WebGraphicsContext3D* share_context); 133 blink::WebGraphicsContext3D* share_context);
133 virtual blink::WebGraphicsContext3DProvider* 134 virtual blink::WebGraphicsContext3DProvider*
134 createSharedOffscreenGraphicsContext3DProvider(); 135 createSharedOffscreenGraphicsContext3DProvider();
135 virtual blink::WebCompositorSupport* compositorSupport(); 136 virtual blink::WebCompositorSupport* compositorSupport();
136 virtual blink::WebString convertIDNToUnicode( 137 virtual blink::WebString convertIDNToUnicode(
137 const blink::WebString& host, const blink::WebString& languages); 138 const blink::WebString& host, const blink::WebString& languages);
138 virtual void setDeviceMotionListener( 139 virtual void setDeviceMotionListener(
139 blink::WebDeviceMotionListener* listener) OVERRIDE; 140 blink::WebDeviceMotionListener* listener) OVERRIDE;
140 virtual void setDeviceOrientationListener( 141 virtual void setDeviceOrientationListener(
141 blink::WebDeviceOrientationListener* listener) OVERRIDE; 142 blink::WebDeviceOrientationListener* listener) OVERRIDE;
143 virtual void setBatteryStatusListener(
144 blink::WebBatteryStatusListener* listener) OVERRIDE;
142 virtual void queryStorageUsageAndQuota( 145 virtual void queryStorageUsageAndQuota(
143 const blink::WebURL& storage_partition, 146 const blink::WebURL& storage_partition,
144 blink::WebStorageQuotaType, 147 blink::WebStorageQuotaType,
145 blink::WebStorageQuotaCallbacks) OVERRIDE; 148 blink::WebStorageQuotaCallbacks) OVERRIDE;
146 virtual void vibrate(unsigned int milliseconds); 149 virtual void vibrate(unsigned int milliseconds);
147 virtual void cancelVibration(); 150 virtual void cancelVibration();
148 virtual void setScreenOrientationListener( 151 virtual void setScreenOrientationListener(
149 blink::WebScreenOrientationListener*) OVERRIDE; 152 blink::WebScreenOrientationListener*) OVERRIDE;
150 virtual void lockOrientation(blink::WebScreenOrientationLockType) OVERRIDE; 153 virtual void lockOrientation(blink::WebScreenOrientationLockType) OVERRIDE;
151 virtual void unlockOrientation() OVERRIDE; 154 virtual void unlockOrientation() OVERRIDE;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 214
212 scoped_ptr<blink::WebIDBFactory> web_idb_factory_; 215 scoped_ptr<blink::WebIDBFactory> web_idb_factory_;
213 216
214 scoped_ptr<blink::WebBlobRegistry> blob_registry_; 217 scoped_ptr<blink::WebBlobRegistry> blob_registry_;
215 218
216 WebPublicSuffixListImpl public_suffix_list_; 219 WebPublicSuffixListImpl public_suffix_list_;
217 220
218 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_; 221 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_;
219 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_; 222 scoped_ptr<DeviceOrientationEventPump> device_orientation_event_pump_;
220 223
224 scoped_ptr<BatteryStatusEventPump> battery_status_event_pump_;
225
221 scoped_refptr<base::MessageLoopProxy> child_thread_loop_; 226 scoped_refptr<base::MessageLoopProxy> child_thread_loop_;
222 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 227 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
223 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 228 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
224 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 229 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
225 230
226 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 231 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
227 232
228 webkit::WebCompositorSupportImpl compositor_support_; 233 webkit::WebCompositorSupportImpl compositor_support_;
229 234
230 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; 235 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_;
231 236
232 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; 237 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_;
233 238
234 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); 239 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl);
235 }; 240 };
236 241
237 } // namespace content 242 } // namespace content
238 243
239 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 244 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/battery_status/battery_status_event_pump.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698