| 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_BLINK_PLATFORM_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 bool CheckPreparsedJsCachingEnabled() const; | 193 bool CheckPreparsedJsCachingEnabled() const; |
| 193 | 194 |
| 194 // Factory that takes a type and return PlatformEventObserverBase that matches | 195 // Factory that takes a type and return PlatformEventObserverBase that matches |
| 195 // it. | 196 // it. |
| 196 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( | 197 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( |
| 197 blink::WebPlatformEventType type); | 198 blink::WebPlatformEventType type); |
| 198 | 199 |
| 199 // Use the data previously set via SetMockDevice...DataForTesting() and send | 200 // Use the data previously set via SetMockDevice...DataForTesting() and send |
| 200 // them to the registered listener. | 201 // them to the registered listener. |
| 201 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); | 202 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); |
| 203 device::VibrationManagerPtr& GetConnectedVibrationManagerService(); |
| 202 | 204 |
| 203 scoped_ptr<WebSchedulerImpl> web_scheduler_; | 205 scoped_ptr<WebSchedulerImpl> web_scheduler_; |
| 204 | 206 |
| 205 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_; | 207 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_; |
| 206 scoped_ptr<WebClipboardImpl> clipboard_; | 208 scoped_ptr<WebClipboardImpl> clipboard_; |
| 207 | 209 |
| 208 class FileUtilities; | 210 class FileUtilities; |
| 209 scoped_ptr<FileUtilities> file_utilities_; | 211 scoped_ptr<FileUtilities> file_utilities_; |
| 210 | 212 |
| 211 class MimeRegistry; | 213 class MimeRegistry; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 239 scoped_refptr<QuotaMessageFilter> quota_message_filter_; | 241 scoped_refptr<QuotaMessageFilter> quota_message_filter_; |
| 240 | 242 |
| 241 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; | 243 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; |
| 242 | 244 |
| 243 cc_blink::WebCompositorSupportImpl compositor_support_; | 245 cc_blink::WebCompositorSupportImpl compositor_support_; |
| 244 | 246 |
| 245 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; | 247 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; |
| 246 | 248 |
| 247 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; | 249 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; |
| 248 | 250 |
| 251 // Handle to the Vibration mojo service. |
| 252 device::VibrationManagerPtr vibration_manager_; |
| 253 |
| 249 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; | 254 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; |
| 250 | 255 |
| 251 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); | 256 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); |
| 252 }; | 257 }; |
| 253 | 258 |
| 254 } // namespace content | 259 } // namespace content |
| 255 | 260 |
| 256 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ | 261 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ |
| OLD | NEW |