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

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: Created 7 years, 6 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 WebKit::WebRTCPeerConnectionHandlerClient* client); 113 WebKit::WebRTCPeerConnectionHandlerClient* client);
114 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( 114 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter(
115 WebKit::WebMediaStreamCenterClient* client); 115 WebKit::WebMediaStreamCenterClient* client);
116 virtual bool processMemorySizesInBytes( 116 virtual bool processMemorySizesInBytes(
117 size_t* private_bytes, size_t* shared_bytes); 117 size_t* private_bytes, size_t* shared_bytes);
118 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 118 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
119 const WebKit::WebGraphicsContext3D::Attributes& attributes); 119 const WebKit::WebGraphicsContext3D::Attributes& attributes);
120 virtual WebKit::WebGraphicsContext3DProvider* 120 virtual WebKit::WebGraphicsContext3DProvider*
121 createSharedOffscreenGraphicsContext3DProvider(); 121 createSharedOffscreenGraphicsContext3DProvider();
122 virtual WebKit::WebCompositorSupport* compositorSupport(); 122 virtual WebKit::WebCompositorSupport* compositorSupport();
123 virtual void vibrate(unsigned time) OVERRIDE;
Peter Beverloo 2013/06/13 11:27:45 nit: white line above here to improve readability.
Michael van Ouwerkerk 2013/06/18 14:39:23 Done.
124 virtual void cancelVibration() OVERRIDE;
123 125
124 // Disables the WebSandboxSupport implementation for testing. 126 // Disables the WebSandboxSupport implementation for testing.
125 // Tests that do not set up a full sandbox environment should call 127 // Tests that do not set up a full sandbox environment should call
126 // SetSandboxEnabledForTesting(false) _before_ creating any instances 128 // SetSandboxEnabledForTesting(false) _before_ creating any instances
127 // of this class, to ensure that we don't attempt to use sandbox-related 129 // of this class, to ensure that we don't attempt to use sandbox-related
128 // file descriptors or other resources. 130 // file descriptors or other resources.
129 // 131 //
130 // Returns the previous |enable| value. 132 // Returns the previous |enable| value.
131 static bool SetSandboxEnabledForTesting(bool enable); 133 static bool SetSandboxEnabledForTesting(bool enable);
132 134
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 177 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
176 178
177 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; 179 scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
178 180
179 webkit::WebCompositorSupportImpl compositor_support_; 181 webkit::WebCompositorSupportImpl compositor_support_;
180 }; 182 };
181 183
182 } // namespace content 184 } // namespace content
183 185
184 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 186 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698