| 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/webkit_support.h" | 5 #include "webkit/support/webkit_support.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/base64.h" | 8 #include "base/base64.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 } | 563 } |
| 564 WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware( | 564 WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware( |
| 565 DRTLayerTreeViewClient* client) { | 565 DRTLayerTreeViewClient* client) { |
| 566 return CreateLayerTreeView(SOFTWARE_CONTEXT, client); | 566 return CreateLayerTreeView(SOFTWARE_CONTEXT, client); |
| 567 } | 567 } |
| 568 WebKit::WebLayerTreeView* CreateLayerTreeView3d( | 568 WebKit::WebLayerTreeView* CreateLayerTreeView3d( |
| 569 DRTLayerTreeViewClient* client) { | 569 DRTLayerTreeViewClient* client) { |
| 570 return CreateLayerTreeView(MESA_CONTEXT, client); | 570 return CreateLayerTreeView(MESA_CONTEXT, client); |
| 571 } | 571 } |
| 572 | 572 |
| 573 void SetThreadedCompositorEnabled(bool enabled) { |
| 574 test_environment->webkit_platform_support()-> |
| 575 set_threaded_compositing_enabled(enabled); |
| 576 } |
| 577 |
| 573 void RegisterMockedURL(const WebKit::WebURL& url, | 578 void RegisterMockedURL(const WebKit::WebURL& url, |
| 574 const WebKit::WebURLResponse& response, | 579 const WebKit::WebURLResponse& response, |
| 575 const WebKit::WebString& file_path) { | 580 const WebKit::WebString& file_path) { |
| 576 test_environment->webkit_platform_support()->url_loader_factory()-> | 581 test_environment->webkit_platform_support()->url_loader_factory()-> |
| 577 RegisterURL(url, response, file_path); | 582 RegisterURL(url, response, file_path); |
| 578 } | 583 } |
| 579 | 584 |
| 580 void RegisterMockedErrorURL(const WebKit::WebURL& url, | 585 void RegisterMockedErrorURL(const WebKit::WebURL& url, |
| 581 const WebKit::WebURLResponse& response, | 586 const WebKit::WebURLResponse& response, |
| 582 const WebKit::WebURLError& error) { | 587 const WebKit::WebURLError& error) { |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 935 // Logging | 940 // Logging |
| 936 void EnableWebCoreLogChannels(const std::string& channels) { | 941 void EnableWebCoreLogChannels(const std::string& channels) { |
| 937 webkit_glue::EnableWebCoreLogChannels(channels); | 942 webkit_glue::EnableWebCoreLogChannels(channels); |
| 938 } | 943 } |
| 939 | 944 |
| 940 void SetGamepadData(const WebKit::WebGamepads& pads) { | 945 void SetGamepadData(const WebKit::WebGamepads& pads) { |
| 941 test_environment->webkit_platform_support()->setGamepadData(pads); | 946 test_environment->webkit_platform_support()->setGamepadData(pads); |
| 942 } | 947 } |
| 943 | 948 |
| 944 } // namespace webkit_support | 949 } // namespace webkit_support |
| OLD | NEW |