| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/renderer/test_runner/test_runner.h" | 5 #include "content/shell/renderer/test_runner/test_runner.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "content/shell/common/test_runner/test_preferences.h" | 10 #include "content/shell/common/test_runner/test_preferences.h" |
| (...skipping 2485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2496 delegate_->setFocus(proxy_, value); | 2496 delegate_->setFocus(proxy_, value); |
| 2497 } | 2497 } |
| 2498 | 2498 |
| 2499 std::string TestRunner::PathToLocalResource(const std::string& path) { | 2499 std::string TestRunner::PathToLocalResource(const std::string& path) { |
| 2500 return delegate_->pathToLocalResource(path); | 2500 return delegate_->pathToLocalResource(path); |
| 2501 } | 2501 } |
| 2502 | 2502 |
| 2503 void TestRunner::SetBackingScaleFactor(double value, | 2503 void TestRunner::SetBackingScaleFactor(double value, |
| 2504 v8::Handle<v8::Function> callback) { | 2504 v8::Handle<v8::Function> callback) { |
| 2505 delegate_->setDeviceScaleFactor(value); | 2505 delegate_->setDeviceScaleFactor(value); |
| 2506 proxy_->DiscardBackingStore(); | |
| 2507 delegate_->postTask(new InvokeCallbackTask(this, callback)); | 2506 delegate_->postTask(new InvokeCallbackTask(this, callback)); |
| 2508 } | 2507 } |
| 2509 | 2508 |
| 2510 void TestRunner::SetColorProfile(const std::string& name, | 2509 void TestRunner::SetColorProfile(const std::string& name, |
| 2511 v8::Handle<v8::Function> callback) { | 2510 v8::Handle<v8::Function> callback) { |
| 2512 delegate_->setDeviceColorProfile(name); | 2511 delegate_->setDeviceColorProfile(name); |
| 2513 delegate_->postTask(new InvokeCallbackTask(this, callback)); | 2512 delegate_->postTask(new InvokeCallbackTask(this, callback)); |
| 2514 } | 2513 } |
| 2515 | 2514 |
| 2516 void TestRunner::SetPOSIXLocale(const std::string& locale) { | 2515 void TestRunner::SetPOSIXLocale(const std::string& locale) { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2627 } | 2626 } |
| 2628 | 2627 |
| 2629 void TestRunner::DidLosePointerLockInternal() { | 2628 void TestRunner::DidLosePointerLockInternal() { |
| 2630 bool was_locked = pointer_locked_; | 2629 bool was_locked = pointer_locked_; |
| 2631 pointer_locked_ = false; | 2630 pointer_locked_ = false; |
| 2632 if (was_locked) | 2631 if (was_locked) |
| 2633 web_view_->didLosePointerLock(); | 2632 web_view_->didLosePointerLock(); |
| 2634 } | 2633 } |
| 2635 | 2634 |
| 2636 } // namespace content | 2635 } // namespace content |
| OLD | NEW |