| 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/id_map.h" | 9 #include "base/id_map.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "cc/blink/web_compositor_support_impl.h" | 11 #include "cc/blink/web_compositor_support_impl.h" |
| 12 #include "content/child/blink_platform_impl.h" | 12 #include "content/child/blink_platform_impl.h" |
| 13 #include "content/common/content_export.h" | 13 #include "content/common/content_export.h" |
| 14 #include "content/renderer/webpublicsuffixlist_impl.h" | 14 #include "content/renderer/webpublicsuffixlist_impl.h" |
| 15 #include "device/vibration/vibration_manager.mojom.h" |
| 15 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 16 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| 16 #include "third_party/WebKit/public/platform/WebIDBFactory.h" | 17 #include "third_party/WebKit/public/platform/WebIDBFactory.h" |
| 17 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" | 18 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" |
| 18 | 19 |
| 19 namespace base { | 20 namespace base { |
| 20 class MessageLoopProxy; | 21 class MessageLoopProxy; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace cc { | 24 namespace cc { |
| 24 class ContextProvider; | 25 class ContextProvider; |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 bool CheckPreparsedJsCachingEnabled() const; | 187 bool CheckPreparsedJsCachingEnabled() const; |
| 187 | 188 |
| 188 // Factory that takes a type and return PlatformEventObserverBase that matches | 189 // Factory that takes a type and return PlatformEventObserverBase that matches |
| 189 // it. | 190 // it. |
| 190 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( | 191 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( |
| 191 blink::WebPlatformEventType type); | 192 blink::WebPlatformEventType type); |
| 192 | 193 |
| 193 // Use the data previously set via SetMockDevice...DataForTesting() and send | 194 // Use the data previously set via SetMockDevice...DataForTesting() and send |
| 194 // them to the registered listener. | 195 // them to the registered listener. |
| 195 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); | 196 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); |
| 197 device::VibrationManagerPtr& GetConnectedVibrationManagerService(); |
| 196 | 198 |
| 197 scoped_ptr<RendererClipboardClient> clipboard_client_; | 199 scoped_ptr<RendererClipboardClient> clipboard_client_; |
| 198 scoped_ptr<WebClipboardImpl> clipboard_; | 200 scoped_ptr<WebClipboardImpl> clipboard_; |
| 199 | 201 |
| 200 class FileUtilities; | 202 class FileUtilities; |
| 201 scoped_ptr<FileUtilities> file_utilities_; | 203 scoped_ptr<FileUtilities> file_utilities_; |
| 202 | 204 |
| 203 class MimeRegistry; | 205 class MimeRegistry; |
| 204 scoped_ptr<MimeRegistry> mime_registry_; | 206 scoped_ptr<MimeRegistry> mime_registry_; |
| 205 | 207 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 233 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 235 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
| 234 | 236 |
| 235 cc_blink::WebCompositorSupportImpl compositor_support_; | 237 cc_blink::WebCompositorSupportImpl compositor_support_; |
| 236 | 238 |
| 237 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 239 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
| 238 | 240 |
| 239 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 241 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
| 240 | 242 |
| 241 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 243 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 242 | 244 |
| 245 // Handle to the Vibration mojo service. |
| 246 device::VibrationManagerPtr vibration_manager_; |
| 247 |
| 243 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); | 248 DISALLOW_COPY_AND_ASSIGN(RendererWebKitPlatformSupportImpl); |
| 244 }; | 249 }; |
| 245 | 250 |
| 246 } // namespace content | 251 } // namespace content |
| 247 | 252 |
| 248 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ | 253 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ |
| OLD | NEW |