| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "content/shell/test_runner/test_runner_for_specific_view.h" | 5 #include "content/shell/test_runner/test_runner_for_specific_view.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <limits> | 8 #include <limits> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 | 384 |
| 385 void TestRunnerForSpecificView::EnableUseZoomForDSF( | 385 void TestRunnerForSpecificView::EnableUseZoomForDSF( |
| 386 v8::Local<v8::Function> callback) { | 386 v8::Local<v8::Function> callback) { |
| 387 delegate()->EnableUseZoomForDSF(); | 387 delegate()->EnableUseZoomForDSF(); |
| 388 PostV8Callback(callback); | 388 PostV8Callback(callback); |
| 389 } | 389 } |
| 390 | 390 |
| 391 void TestRunnerForSpecificView::SetColorProfile( | 391 void TestRunnerForSpecificView::SetColorProfile( |
| 392 const std::string& name, | 392 const std::string& name, |
| 393 v8::Local<v8::Function> callback) { | 393 v8::Local<v8::Function> callback) { |
| 394 delegate()->SetDeviceColorProfile(name); | 394 delegate()->SetDeviceColorSpace(name); |
| 395 PostV8Callback(callback); | 395 PostV8Callback(callback); |
| 396 } | 396 } |
| 397 | 397 |
| 398 void TestRunnerForSpecificView::DispatchBeforeInstallPromptEvent( | 398 void TestRunnerForSpecificView::DispatchBeforeInstallPromptEvent( |
| 399 const std::vector<std::string>& event_platforms, | 399 const std::vector<std::string>& event_platforms, |
| 400 v8::Local<v8::Function> callback) { | 400 v8::Local<v8::Function> callback) { |
| 401 delegate()->DispatchBeforeInstallPromptEvent( | 401 delegate()->DispatchBeforeInstallPromptEvent( |
| 402 event_platforms, | 402 event_platforms, |
| 403 base::Bind( | 403 base::Bind( |
| 404 &TestRunnerForSpecificView::DispatchBeforeInstallPromptCallback, | 404 &TestRunnerForSpecificView::DispatchBeforeInstallPromptCallback, |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 | 693 |
| 694 blink::WebView* TestRunnerForSpecificView::web_view() { | 694 blink::WebView* TestRunnerForSpecificView::web_view() { |
| 695 return web_view_test_proxy_base_->web_view(); | 695 return web_view_test_proxy_base_->web_view(); |
| 696 } | 696 } |
| 697 | 697 |
| 698 WebTestDelegate* TestRunnerForSpecificView::delegate() { | 698 WebTestDelegate* TestRunnerForSpecificView::delegate() { |
| 699 return web_view_test_proxy_base_->delegate(); | 699 return web_view_test_proxy_base_->delegate(); |
| 700 } | 700 } |
| 701 | 701 |
| 702 } // namespace test_runner | 702 } // namespace test_runner |
| OLD | NEW |