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

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

Issue 1456753002: Compute the popup location/size correctly when use-zoom-for-dsf is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update TestExpectations Created 5 years 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
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 <algorithm> 7 #include <algorithm>
8 #include <clocale> 8 #include <clocale>
9 #include <cmath> 9 #include <cmath>
10 10
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 } 513 }
514 514
515 void BlinkTestRunner::SetDeviceScaleFactor(float factor) { 515 void BlinkTestRunner::SetDeviceScaleFactor(float factor) {
516 if (device_scale_factor_ == factor) 516 if (device_scale_factor_ == factor)
517 return; 517 return;
518 device_scale_factor_ = factor; 518 device_scale_factor_ = factor;
519 content::SetDeviceScaleFactor(render_view(), factor); 519 content::SetDeviceScaleFactor(render_view(), factor);
520 Send(new ShellViewHostMsg_SetDeviceScaleFactor(routing_id(), factor)); 520 Send(new ShellViewHostMsg_SetDeviceScaleFactor(routing_id(), factor));
521 } 521 }
522 522
523 void BlinkTestRunner::EnableUseZoomForDSF() {
524 base::CommandLine::ForCurrentProcess()->
525 AppendSwitch(switches::kEnableUseZoomForDSF);
526 }
527
523 void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) { 528 void BlinkTestRunner::SetDeviceColorProfile(const std::string& name) {
524 content::SetDeviceColorProfile(render_view(), name); 529 content::SetDeviceColorProfile(render_view(), name);
525 } 530 }
526 531
527 void BlinkTestRunner::SetBluetoothMockDataSet(const std::string& name) { 532 void BlinkTestRunner::SetBluetoothMockDataSet(const std::string& name) {
528 Send(new LayoutTestHostMsg_SetBluetoothAdapter(name)); 533 Send(new LayoutTestHostMsg_SetBluetoothAdapter(name));
529 // Auto-reset the chooser type so we don't get order dependence when some 534 // Auto-reset the chooser type so we don't get order dependence when some
530 // tests forget to do it explicitly. 535 // tests forget to do it explicitly.
531 Send(new ShellViewHostMsg_SetBluetoothManualChooser(routing_id(), false)); 536 Send(new ShellViewHostMsg_SetBluetoothManualChooser(routing_id(), false));
532 } 537 }
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1000 get_bluetooth_events_callbacks_.pop_front(); 1005 get_bluetooth_events_callbacks_.pop_front();
1001 callback.Run(events); 1006 callback.Run(events);
1002 } 1007 }
1003 1008
1004 void BlinkTestRunner::ReportLeakDetectionResult( 1009 void BlinkTestRunner::ReportLeakDetectionResult(
1005 const LeakDetectionResult& report) { 1010 const LeakDetectionResult& report) {
1006 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1011 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1007 } 1012 }
1008 1013
1009 } // namespace content 1014 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/layout_test/blink_test_runner.h ('k') | third_party/WebKit/LayoutTests/TestExpectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698