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

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: Rebased and 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 149
Avi (use Gerrit) 2013/11/19 18:11:56 Drop blank line now that there is no #if.
ostap 2013/11/19 19:58:33 Done.
150 #if defined(OS_ANDROID)
151 virtual void vibrate(unsigned int milliseconds); 150 virtual void vibrate(unsigned int milliseconds);
152 virtual void cancelVibration(); 151 virtual void cancelVibration();
153 #endif // defined(OS_ANDROID)
154 152
155 // Disables the WebSandboxSupport implementation for testing. 153 // Disables the WebSandboxSupport implementation for testing.
156 // Tests that do not set up a full sandbox environment should call 154 // Tests that do not set up a full sandbox environment should call
157 // SetSandboxEnabledForTesting(false) _before_ creating any instances 155 // SetSandboxEnabledForTesting(false) _before_ creating any instances
158 // of this class, to ensure that we don't attempt to use sandbox-related 156 // of this class, to ensure that we don't attempt to use sandbox-related
159 // file descriptors or other resources. 157 // file descriptors or other resources.
160 // 158 //
161 // Returns the previous |enable| value. 159 // Returns the previous |enable| value.
162 static bool SetSandboxEnabledForTesting(bool enable); 160 static bool SetSandboxEnabledForTesting(bool enable);
163 161
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_; 212 scoped_ptr<WebDatabaseObserverImpl> web_database_observer_impl_;
215 213
216 webkit::WebCompositorSupportImpl compositor_support_; 214 webkit::WebCompositorSupportImpl compositor_support_;
217 215
218 scoped_ptr<WebCryptoImpl> web_crypto_; 216 scoped_ptr<WebCryptoImpl> web_crypto_;
219 }; 217 };
220 218
221 } // namespace content 219 } // namespace content
222 220
223 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 221 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698