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

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

Issue 826613003: Revert of Vibration API : migrate to device/vibration using mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 12 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
« no previous file with comments | « content/renderer/DEPS ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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"
16 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 15 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
17 #include "third_party/WebKit/public/platform/WebIDBFactory.h" 16 #include "third_party/WebKit/public/platform/WebIDBFactory.h"
18 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 17 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
19 18
20 namespace base { 19 namespace base {
21 class MessageLoopProxy; 20 class MessageLoopProxy;
22 } 21 }
23 22
24 namespace cc { 23 namespace cc {
25 class ContextProvider; 24 class ContextProvider;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 bool CheckPreparsedJsCachingEnabled() const; 192 bool CheckPreparsedJsCachingEnabled() const;
194 193
195 // Factory that takes a type and return PlatformEventObserverBase that matches 194 // Factory that takes a type and return PlatformEventObserverBase that matches
196 // it. 195 // it.
197 static PlatformEventObserverBase* CreatePlatformEventObserverFromType( 196 static PlatformEventObserverBase* CreatePlatformEventObserverFromType(
198 blink::WebPlatformEventType type); 197 blink::WebPlatformEventType type);
199 198
200 // Use the data previously set via SetMockDevice...DataForTesting() and send 199 // Use the data previously set via SetMockDevice...DataForTesting() and send
201 // them to the registered listener. 200 // them to the registered listener.
202 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type); 201 void SendFakeDeviceEventDataForTesting(blink::WebPlatformEventType type);
203 device::VibrationManagerPtr& GetConnectedVibrationManagerService();
204 202
205 scoped_ptr<WebSchedulerImpl> web_scheduler_; 203 scoped_ptr<WebSchedulerImpl> web_scheduler_;
206 204
207 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_; 205 scoped_ptr<RendererClipboardDelegate> clipboard_delegate_;
208 scoped_ptr<WebClipboardImpl> clipboard_; 206 scoped_ptr<WebClipboardImpl> clipboard_;
209 207
210 class FileUtilities; 208 class FileUtilities;
211 scoped_ptr<FileUtilities> file_utilities_; 209 scoped_ptr<FileUtilities> file_utilities_;
212 210
213 class MimeRegistry; 211 class MimeRegistry;
(...skipping 27 matching lines...) Expand all
241 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 239 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
242 240
243 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 241 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
244 242
245 cc_blink::WebCompositorSupportImpl compositor_support_; 243 cc_blink::WebCompositorSupportImpl compositor_support_;
246 244
247 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_; 245 scoped_ptr<blink::WebScrollbarBehavior> web_scrollbar_behavior_;
248 246
249 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_; 247 scoped_ptr<BatteryStatusDispatcher> battery_status_dispatcher_;
250 248
251 // Handle to the Vibration mojo service.
252 device::VibrationManagerPtr vibration_manager_;
253
254 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_; 249 IDMap<PlatformEventObserverBase, IDMapOwnPointer> platform_event_observers_;
255 250
256 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl); 251 DISALLOW_COPY_AND_ASSIGN(RendererBlinkPlatformImpl);
257 }; 252 };
258 253
259 } // namespace content 254 } // namespace content
260 255
261 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_ 256 #endif // CONTENT_RENDERER_RENDERER_BLINK_PLATFORM_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/DEPS ('k') | content/renderer/renderer_blink_platform_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698