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

Side by Side Diff: webkit/support/test_webkit_platform_support.cc

Issue 10827415: Chromium-side implementation of DeviceMotion. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test should set the kEnableDeviceMotion flag Created 8 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "webkit/support/test_webkit_platform_support.h" 5 #include "webkit/support/test_webkit_platform_support.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/metrics/stats_counters.h" 8 #include "base/metrics/stats_counters.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/scoped_temp_dir.h" 10 #include "base/scoped_temp_dir.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 WebKit::WebMimeRegistry* TestWebKitPlatformSupport::mimeRegistry() { 159 WebKit::WebMimeRegistry* TestWebKitPlatformSupport::mimeRegistry() {
160 return &mime_registry_; 160 return &mime_registry_;
161 } 161 }
162 162
163 WebKit::WebClipboard* TestWebKitPlatformSupport::clipboard() { 163 WebKit::WebClipboard* TestWebKitPlatformSupport::clipboard() {
164 // Mock out clipboard calls so that tests don't mess 164 // Mock out clipboard calls so that tests don't mess
165 // with each other's copies/pastes when running in parallel. 165 // with each other's copies/pastes when running in parallel.
166 return &mock_clipboard_; 166 return &mock_clipboard_;
167 } 167 }
168 168
169 WebKit::WebDeviceMotionDetector*
170 TestWebKitPlatformSupport::deviceMotionDetector() {
171 if (shadow_platform_delegate_)
172 return shadow_platform_delegate_->deviceMotionDetector();
173
174 return webkit_glue::WebKitPlatformSupportImpl::deviceMotionDetector();
175 }
176
169 WebKit::WebFileUtilities* TestWebKitPlatformSupport::fileUtilities() { 177 WebKit::WebFileUtilities* TestWebKitPlatformSupport::fileUtilities() {
170 return &file_utilities_; 178 return &file_utilities_;
171 } 179 }
172 180
173 WebKit::WebSandboxSupport* TestWebKitPlatformSupport::sandboxSupport() { 181 WebKit::WebSandboxSupport* TestWebKitPlatformSupport::sandboxSupport() {
174 return NULL; 182 return NULL;
175 } 183 }
176 184
177 WebKit::WebCookieJar* TestWebKitPlatformSupport::cookieJar() { 185 WebKit::WebCookieJar* TestWebKitPlatformSupport::cookieJar() {
178 return &cookie_jar_; 186 return &cookie_jar_;
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 521
514 WebKit::WebRTCPeerConnectionHandler* 522 WebKit::WebRTCPeerConnectionHandler*
515 TestWebKitPlatformSupport::createRTCPeerConnectionHandler( 523 TestWebKitPlatformSupport::createRTCPeerConnectionHandler(
516 WebKit::WebRTCPeerConnectionHandlerClient* client) { 524 WebKit::WebRTCPeerConnectionHandlerClient* client) {
517 if (shadow_platform_delegate_) 525 if (shadow_platform_delegate_)
518 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client); 526 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client);
519 527
520 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler( 528 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler(
521 client); 529 client);
522 } 530 }
OLDNEW
« no previous file with comments | « webkit/support/test_webkit_platform_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698