| OLD | NEW |
| 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 void TestWebKitPlatformSupport::SetThemeEngine(WebKit::WebThemeEngine* engine) { | 381 void TestWebKitPlatformSupport::SetThemeEngine(WebKit::WebThemeEngine* engine) { |
| 382 active_theme_engine_ = engine ? | 382 active_theme_engine_ = engine ? |
| 383 engine : WebKitPlatformSupportImpl::themeEngine(); | 383 engine : WebKitPlatformSupportImpl::themeEngine(); |
| 384 } | 384 } |
| 385 | 385 |
| 386 WebKit::WebThemeEngine* TestWebKitPlatformSupport::themeEngine() { | 386 WebKit::WebThemeEngine* TestWebKitPlatformSupport::themeEngine() { |
| 387 return active_theme_engine_; | 387 return active_theme_engine_; |
| 388 } | 388 } |
| 389 #endif | 389 #endif |
| 390 | 390 |
| 391 WebKit::WebSharedWorkerRepository* | |
| 392 TestWebKitPlatformSupport::sharedWorkerRepository() { | |
| 393 return NULL; | |
| 394 } | |
| 395 | |
| 396 WebKit::WebGraphicsContext3D* | 391 WebKit::WebGraphicsContext3D* |
| 397 TestWebKitPlatformSupport::createOffscreenGraphicsContext3D( | 392 TestWebKitPlatformSupport::createOffscreenGraphicsContext3D( |
| 398 const WebKit::WebGraphicsContext3D::Attributes& attributes) { | 393 const WebKit::WebGraphicsContext3D::Attributes& attributes) { |
| 399 switch (webkit_support::GetGraphicsContext3DImplementation()) { | 394 switch (webkit_support::GetGraphicsContext3DImplementation()) { |
| 400 case webkit_support::IN_PROCESS: | 395 case webkit_support::IN_PROCESS: |
| 401 return webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView( | 396 return webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView( |
| 402 attributes, false); | 397 attributes, false); |
| 403 case webkit_support::IN_PROCESS_COMMAND_BUFFER: { | 398 case webkit_support::IN_PROCESS_COMMAND_BUFFER: { |
| 404 scoped_ptr<webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl> | 399 scoped_ptr<webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl> |
| 405 context(new | 400 context(new |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 | 484 |
| 490 WebKit::WebRTCPeerConnectionHandler* | 485 WebKit::WebRTCPeerConnectionHandler* |
| 491 TestWebKitPlatformSupport::createRTCPeerConnectionHandler( | 486 TestWebKitPlatformSupport::createRTCPeerConnectionHandler( |
| 492 WebKit::WebRTCPeerConnectionHandlerClient* client) { | 487 WebKit::WebRTCPeerConnectionHandlerClient* client) { |
| 493 if (shadow_platform_delegate_) | 488 if (shadow_platform_delegate_) |
| 494 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client); | 489 return shadow_platform_delegate_->createRTCPeerConnectionHandler(client); |
| 495 | 490 |
| 496 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler( | 491 return webkit_glue::WebKitPlatformSupportImpl::createRTCPeerConnectionHandler( |
| 497 client); | 492 client); |
| 498 } | 493 } |
| OLD | NEW |