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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2290233007: Move convertViewportToWindow and convertWindowToViewport from (Closed)
Patch Set: add client to WebSharedWorkerImpl Created 4 years, 2 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/layouttest_support.cc » ('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 (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 "content/shell/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 bool by_user) { 490 bool by_user) {
491 Send(new LayoutTestHostMsg_SimulateWebNotificationClose(routing_id(), title, 491 Send(new LayoutTestHostMsg_SimulateWebNotificationClose(routing_id(), title,
492 by_user)); 492 by_user));
493 } 493 }
494 494
495 void BlinkTestRunner::SetDeviceScaleFactor(float factor) { 495 void BlinkTestRunner::SetDeviceScaleFactor(float factor) {
496 content::SetDeviceScaleFactor(render_view(), factor); 496 content::SetDeviceScaleFactor(render_view(), factor);
497 } 497 }
498 498
499 float BlinkTestRunner::GetWindowToViewportScale() { 499 float BlinkTestRunner::GetWindowToViewportScale() {
500 return content::GetWindowToViewportScale(render_view()); 500 return content::GetWindowToViewportScale(render_view()->GetMainRenderFrame());
501 } 501 }
502 502
503 void BlinkTestRunner::EnableUseZoomForDSF() { 503 void BlinkTestRunner::EnableUseZoomForDSF() {
504 base::CommandLine::ForCurrentProcess()-> 504 base::CommandLine::ForCurrentProcess()->
505 AppendSwitch(switches::kEnableUseZoomForDSF); 505 AppendSwitch(switches::kEnableUseZoomForDSF);
506 } 506 }
507 507
508 bool BlinkTestRunner::IsUseZoomForDSFEnabled() { 508 bool BlinkTestRunner::IsUseZoomForDSFEnabled() {
509 return content::IsUseZoomForDSFEnabled(); 509 return content::IsUseZoomForDSFEnabled();
510 } 510 }
(...skipping 499 matching lines...) Expand 10 before | Expand all | Expand 10 after
1010 void BlinkTestRunner::ReportLeakDetectionResult( 1010 void BlinkTestRunner::ReportLeakDetectionResult(
1011 const LeakDetectionResult& report) { 1011 const LeakDetectionResult& report) {
1012 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1012 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1013 } 1013 }
1014 1014
1015 void BlinkTestRunner::OnDestruct() { 1015 void BlinkTestRunner::OnDestruct() {
1016 delete this; 1016 delete this;
1017 } 1017 }
1018 1018
1019 } // namespace content 1019 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698