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

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

Issue 23496051: Make VibrationMessageFilter available to other platforms. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated by review comments Created 7 years, 1 month 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 const blink::WebString& host, const blink::WebString& languages); 139 const blink::WebString& host, const blink::WebString& languages);
140 virtual void setDeviceMotionListener( 140 virtual void setDeviceMotionListener(
141 blink::WebDeviceMotionListener* listener) OVERRIDE; 141 blink::WebDeviceMotionListener* listener) OVERRIDE;
142 virtual void setDeviceOrientationListener( 142 virtual void setDeviceOrientationListener(
143 blink::WebDeviceOrientationListener* listener) OVERRIDE; 143 blink::WebDeviceOrientationListener* listener) OVERRIDE;
144 virtual blink::WebCrypto* crypto() OVERRIDE; 144 virtual blink::WebCrypto* crypto() OVERRIDE;
145 virtual void queryStorageUsageAndQuota( 145 virtual void queryStorageUsageAndQuota(
146 const blink::WebURL& storage_partition, 146 const blink::WebURL& storage_partition,
147 blink::WebStorageQuotaType, 147 blink::WebStorageQuotaType,
148 blink::WebStorageQuotaCallbacks*) OVERRIDE; 148 blink::WebStorageQuotaCallbacks*) OVERRIDE;
149
150 #if defined(OS_ANDROID)
151 virtual void vibrate(unsigned int milliseconds); 149 virtual void vibrate(unsigned int milliseconds);
152 virtual void cancelVibration(); 150 virtual void cancelVibration();
153 #endif // defined(OS_ANDROID)
154 151
155 // Disables the WebSandboxSupport implementation for testing. 152 // Disables the WebSandboxSupport implementation for testing.
156 // Tests that do not set up a full sandbox environment should call 153 // Tests that do not set up a full sandbox environment should call
157 // SetSandboxEnabledForTesting(false) _before_ creating any instances 154 // SetSandboxEnabledForTesting(false) _before_ creating any instances
158 // of this class, to ensure that we don't attempt to use sandbox-related 155 // of this class, to ensure that we don't attempt to use sandbox-related
159 // file descriptors or other resources. 156 // file descriptors or other resources.
160 // 157 //
161 // Returns the previous |enable| value. 158 // Returns the previous |enable| value.
162 static bool SetSandboxEnabledForTesting(bool enable); 159 static bool SetSandboxEnabledForTesting(bool enable);
163 160
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 211 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
215 212
216 webkit::WebCompositorSupportImpl compositor_support_; 213 webkit::WebCompositorSupportImpl compositor_support_;
217 214
218 scoped_ptr<WebCryptoImpl> web_crypto_; 215 scoped_ptr<WebCryptoImpl> web_crypto_;
219 }; 216 };
220 217
221 } // namespace content 218 } // namespace content
222 219
223 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 220 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698