Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: content/shell/renderer/test_runner/test_runner.cc

Issue 282083003: Remove unused WebTestProxy paint/canvas code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove needless comment Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/web_test_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/web_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698