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

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 patch by review comments. Created 7 years, 3 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
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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 virtual void setDeviceMotionListener( 141 virtual void setDeviceMotionListener(
142 WebKit::WebDeviceMotionListener* listener) OVERRIDE; 142 WebKit::WebDeviceMotionListener* listener) OVERRIDE;
143 virtual void setDeviceOrientationListener( 143 virtual void setDeviceOrientationListener(
144 WebKit::WebDeviceOrientationListener* listener) OVERRIDE; 144 WebKit::WebDeviceOrientationListener* listener) OVERRIDE;
145 virtual WebKit::WebCrypto* crypto() OVERRIDE; 145 virtual WebKit::WebCrypto* crypto() OVERRIDE;
146 virtual void queryStorageUsageAndQuota( 146 virtual void queryStorageUsageAndQuota(
147 const WebKit::WebURL& storage_partition, 147 const WebKit::WebURL& storage_partition,
148 WebKit::WebStorageQuotaType, 148 WebKit::WebStorageQuotaType,
149 WebKit::WebStorageQuotaCallbacks*) OVERRIDE; 149 WebKit::WebStorageQuotaCallbacks*) OVERRIDE;
150 150
151 #if defined(OS_ANDROID)
152 virtual void vibrate(unsigned int milliseconds); 151 virtual void vibrate(unsigned int milliseconds);
153 virtual void cancelVibration(); 152 virtual void cancelVibration();
Peter Beverloo 2013/09/13 16:14:12 These should be annotated with OVERRIDE because th
154 #endif // defined(OS_ANDROID)
155 153
156 // Disables the WebSandboxSupport implementation for testing. 154 // Disables the WebSandboxSupport implementation for testing.
157 // Tests that do not set up a full sandbox environment should call 155 // Tests that do not set up a full sandbox environment should call
158 // SetSandboxEnabledForTesting(false) _before_ creating any instances 156 // SetSandboxEnabledForTesting(false) _before_ creating any instances
159 // of this class, to ensure that we don't attempt to use sandbox-related 157 // of this class, to ensure that we don't attempt to use sandbox-related
160 // file descriptors or other resources. 158 // file descriptors or other resources.
161 // 159 //
162 // Returns the previous |enable| value. 160 // Returns the previous |enable| value.
163 static bool SetSandboxEnabledForTesting(bool enable); 161 static bool SetSandboxEnabledForTesting(bool enable);
164 162
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; 215 scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
218 216
219 webkit::WebCompositorSupportImpl compositor_support_; 217 webkit::WebCompositorSupportImpl compositor_support_;
220 218
221 scoped_ptr<WebCryptoImpl> web_crypto_; 219 scoped_ptr<WebCryptoImpl> web_crypto_;
222 }; 220 };
223 221
224 } // namespace content 222 } // namespace content
225 223
226 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 224 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698