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

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: Fixed clang compile issues 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 virtual void setDeviceMotionListener( 138 virtual void setDeviceMotionListener(
139 blink::WebDeviceMotionListener* listener) OVERRIDE; 139 blink::WebDeviceMotionListener* listener) OVERRIDE;
140 virtual void setDeviceOrientationListener( 140 virtual void setDeviceOrientationListener(
141 blink::WebDeviceOrientationListener* listener) OVERRIDE; 141 blink::WebDeviceOrientationListener* listener) OVERRIDE;
142 virtual blink::WebCrypto* crypto() OVERRIDE; 142 virtual blink::WebCrypto* crypto() OVERRIDE;
143 virtual void queryStorageUsageAndQuota( 143 virtual void queryStorageUsageAndQuota(
144 const blink::WebURL& storage_partition, 144 const blink::WebURL& storage_partition,
145 blink::WebStorageQuotaType, 145 blink::WebStorageQuotaType,
146 blink::WebStorageQuotaCallbacks*) OVERRIDE; 146 blink::WebStorageQuotaCallbacks*) OVERRIDE;
147 147
148 #if defined(OS_ANDROID)
149 virtual void vibrate(unsigned int milliseconds); 148 virtual void vibrate(unsigned int milliseconds);
150 virtual void cancelVibration(); 149 virtual void cancelVibration();
151 #endif // defined(OS_ANDROID)
152 150
153 // Disables the WebSandboxSupport implementation for testing. 151 // Disables the WebSandboxSupport implementation for testing.
154 // Tests that do not set up a full sandbox environment should call 152 // Tests that do not set up a full sandbox environment should call
155 // SetSandboxEnabledForTesting(false) _before_ creating any instances 153 // SetSandboxEnabledForTesting(false) _before_ creating any instances
156 // of this class, to ensure that we don't attempt to use sandbox-related 154 // of this class, to ensure that we don't attempt to use sandbox-related
157 // file descriptors or other resources. 155 // file descriptors or other resources.
158 // 156 //
159 // Returns the previous |enable| value. 157 // Returns the previous |enable| value.
160 static bool SetSandboxEnabledForTesting(bool enable); 158 static bool SetSandboxEnabledForTesting(bool enable);
161 159
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 scoped_refptr<QuotaMessageFilter> quota_message_filter_; 204 scoped_refptr<QuotaMessageFilter> quota_message_filter_;
207 205
208 webkit::WebCompositorSupportImpl compositor_support_; 206 webkit::WebCompositorSupportImpl compositor_support_;
209 207
210 scoped_ptr<WebCryptoImpl> web_crypto_; 208 scoped_ptr<WebCryptoImpl> web_crypto_;
211 }; 209 };
212 210
213 } // namespace content 211 } // namespace content
214 212
215 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 213 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698