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

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: Explicitly permit including WebVibration from content/browser/ 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 #if defined(OS_ANDROID)
140 virtual void vibrate(unsigned int milliseconds);
141 virtual void cancelVibration();
142 #endif // defined(OS_ANDROID)
143
139 // Disables the WebSandboxSupport implementation for testing. 144 // Disables the WebSandboxSupport implementation for testing.
140 // Tests that do not set up a full sandbox environment should call 145 // Tests that do not set up a full sandbox environment should call
141 // SetSandboxEnabledForTesting(false) _before_ creating any instances 146 // SetSandboxEnabledForTesting(false) _before_ creating any instances
142 // of this class, to ensure that we don't attempt to use sandbox-related 147 // of this class, to ensure that we don't attempt to use sandbox-related
143 // file descriptors or other resources. 148 // file descriptors or other resources.
144 // 149 //
145 // Returns the previous |enable| value. 150 // Returns the previous |enable| value.
146 static bool SetSandboxEnabledForTesting(bool enable); 151 static bool SetSandboxEnabledForTesting(bool enable);
147 152
148 // Set WebGamepads to return when sampleGamepads() is invoked. 153 // 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_; 197 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
193 198
194 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; 199 scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
195 200
196 webkit::WebCompositorSupportImpl compositor_support_; 201 webkit::WebCompositorSupportImpl compositor_support_;
197 }; 202 };
198 203
199 } // namespace content 204 } // namespace content
200 205
201 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 206 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698