| Index: components/test_runner/test_runner.cc
|
| diff --git a/components/test_runner/test_runner.cc b/components/test_runner/test_runner.cc
|
| index 2ffbee56bf67b22984b3ecb21694717e2ecca392..79224b133b7981acdf98fc3d09e43bddf7d80473 100644
|
| --- a/components/test_runner/test_runner.cc
|
| +++ b/components/test_runner/test_runner.cc
|
| @@ -272,6 +272,7 @@ class TestRunnerBindings : public gin::Wrappable<TestRunnerBindings> {
|
| void SetWindowIsKey(bool value);
|
| std::string PathToLocalResource(const std::string& path);
|
| void SetBackingScaleFactor(double value, v8::Local<v8::Function> callback);
|
| + void EnableUseZoomForDSF(v8::Local<v8::Function> callback);
|
| void SetColorProfile(const std::string& name,
|
| v8::Local<v8::Function> callback);
|
| void SetPOSIXLocale(const std::string& locale);
|
| @@ -545,6 +546,8 @@ gin::ObjectTemplateBuilder TestRunnerBindings::GetObjectTemplateBuilder(
|
| &TestRunnerBindings::PathToLocalResource)
|
| .SetMethod("setBackingScaleFactor",
|
| &TestRunnerBindings::SetBackingScaleFactor)
|
| + .SetMethod("enableUseZoomForDSF",
|
| + &TestRunnerBindings::EnableUseZoomForDSF)
|
| .SetMethod("setColorProfile", &TestRunnerBindings::SetColorProfile)
|
| .SetMethod("setPOSIXLocale", &TestRunnerBindings::SetPOSIXLocale)
|
| .SetMethod("setMIDIAccessorResult",
|
| @@ -1347,6 +1350,12 @@ void TestRunnerBindings::SetBackingScaleFactor(
|
| runner_->SetBackingScaleFactor(value, callback);
|
| }
|
|
|
| +void TestRunnerBindings::EnableUseZoomForDSF(
|
| + v8::Local<v8::Function> callback) {
|
| + if (runner_)
|
| + runner_->EnableUseZoomForDSF(callback);
|
| +}
|
| +
|
| void TestRunnerBindings::SetColorProfile(
|
| const std::string& name, v8::Local<v8::Function> callback) {
|
| if (runner_)
|
| @@ -2859,6 +2868,11 @@ void TestRunner::SetBackingScaleFactor(double value,
|
| delegate_->PostTask(new InvokeCallbackTask(this, callback));
|
| }
|
|
|
| +void TestRunner::EnableUseZoomForDSF(v8::Local<v8::Function> callback) {
|
| + delegate_->EnableUseZoomForDSF();
|
| + delegate_->PostTask(new InvokeCallbackTask(this, callback));
|
| +}
|
| +
|
| void TestRunner::SetColorProfile(const std::string& name,
|
| v8::Local<v8::Function> callback) {
|
| delegate_->SetDeviceColorProfile(name);
|
|
|