OLD | NEW |
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 Loading... |
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 BatteryStatusDispatcher; |
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
142 virtual void queryStorageUsageAndQuota( | 143 virtual void queryStorageUsageAndQuota( |
143 const blink::WebURL& storage_partition, | 144 const blink::WebURL& storage_partition, |
144 blink::WebStorageQuotaType, | 145 blink::WebStorageQuotaType, |
145 blink::WebStorageQuotaCallbacks) OVERRIDE; | 146 blink::WebStorageQuotaCallbacks) OVERRIDE; |
146 virtual void vibrate(unsigned int milliseconds); | 147 virtual void vibrate(unsigned int milliseconds); |
147 virtual void cancelVibration(); | 148 virtual void cancelVibration(); |
148 virtual void setScreenOrientationListener( | 149 virtual void setScreenOrientationListener( |
149 blink::WebScreenOrientationListener*) OVERRIDE; | 150 blink::WebScreenOrientationListener*) OVERRIDE; |
150 virtual void lockOrientation(blink::WebScreenOrientationLockType) OVERRIDE; | 151 virtual void lockOrientation(blink::WebScreenOrientationLockType) OVERRIDE; |
151 virtual void unlockOrientation() OVERRIDE; | 152 virtual void unlockOrientation() OVERRIDE; |
| 153 virtual void setBatteryStatusListener( |
| 154 blink::WebBatteryStatusListener* listener) OVERRIDE; |
152 | 155 |
153 // Disables the WebSandboxSupport implementation for testing. | 156 // Disables the WebSandboxSupport implementation for testing. |
154 // Tests that do not set up a full sandbox environment should call | 157 // Tests that do not set up a full sandbox environment should call |
155 // SetSandboxEnabledForTesting(false) _before_ creating any instances | 158 // SetSandboxEnabledForTesting(false) _before_ creating any instances |
156 // of this class, to ensure that we don't attempt to use sandbox-related | 159 // of this class, to ensure that we don't attempt to use sandbox-related |
157 // file descriptors or other resources. | 160 // file descriptors or other resources. |
158 // | 161 // |
159 // Returns the previous |enable| value. | 162 // Returns the previous |enable| value. |
160 static bool SetSandboxEnabledForTesting(bool enable); | 163 static bool SetSandboxEnabledForTesting(bool enable); |
161 | 164 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 227 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
225 | 228 |
226 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 229 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
227 | 230 |
228 webkit::WebCompositorSupportImpl compositor_support_; | 231 webkit::WebCompositorSupportImpl compositor_support_; |
229 | 232 |
230 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; | 233 scoped_ptr<ScreenOrientationDispatcher> screen_orientation_dispatcher_; |
231 | 234 |
232 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 235 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
233 | 236 |
| 237 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
| 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_ |
OLD | NEW |