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

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

Issue 16781002: Vibration API: plumbing from Blink to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fold VibrationService into VibrationMessageFilter. Created 7 years, 5 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual bool processMemorySizesInBytes( 129 virtual bool processMemorySizesInBytes(
130 size_t* private_bytes, size_t* shared_bytes); 130 size_t* private_bytes, size_t* shared_bytes);
131 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 131 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
132 const WebKit::WebGraphicsContext3D::Attributes& attributes); 132 const WebKit::WebGraphicsContext3D::Attributes& attributes);
133 virtual WebKit::WebGraphicsContext3DProvider* 133 virtual WebKit::WebGraphicsContext3DProvider*
134 createSharedOffscreenGraphicsContext3DProvider(); 134 createSharedOffscreenGraphicsContext3DProvider();
135 virtual WebKit::WebCompositorSupport* compositorSupport(); 135 virtual WebKit::WebCompositorSupport* compositorSupport();
136 virtual WebKit::WebString convertIDNToUnicode( 136 virtual WebKit::WebString convertIDNToUnicode(
137 const WebKit::WebString& host, const WebKit::WebString& languages); 137 const WebKit::WebString& host, const WebKit::WebString& languages);
138 138
139 virtual void vibrate(unsigned int milliseconds);
140 virtual void cancelVibration();
141
139 // Disables the WebSandboxSupport implementation for testing. 142 // Disables the WebSandboxSupport implementation for testing.
140 // Tests that do not set up a full sandbox environment should call 143 // Tests that do not set up a full sandbox environment should call
141 // SetSandboxEnabledForTesting(false) _before_ creating any instances 144 // SetSandboxEnabledForTesting(false) _before_ creating any instances
142 // of this class, to ensure that we don't attempt to use sandbox-related 145 // of this class, to ensure that we don't attempt to use sandbox-related
143 // file descriptors or other resources. 146 // file descriptors or other resources.
144 // 147 //
145 // Returns the previous |enable| value. 148 // Returns the previous |enable| value.
146 static bool SetSandboxEnabledForTesting(bool enable); 149 static bool SetSandboxEnabledForTesting(bool enable);
147 150
148 // Set WebGamepads to return when sampleGamepads() is invoked. 151 // Set WebGamepads to return when sampleGamepads() is invoked.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 195 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
193 196
194 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; 197 scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
195 198
196 webkit::WebCompositorSupportImpl compositor_support_; 199 webkit::WebCompositorSupportImpl compositor_support_;
197 }; 200 };
198 201
199 } // namespace content 202 } // namespace content
200 203
201 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 204 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698