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

Unified Diff: sky/shell/testing/test_runner.cc

Issue 1220353002: Add padding values to View.idl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/shell/ios/sky_surface.mm ('k') | sky/shell/ui/engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/testing/test_runner.cc
diff --git a/sky/shell/testing/test_runner.cc b/sky/shell/testing/test_runner.cc
index 80c64531a3040b78cc644b29eaff59d6da2d70bc..7c55e1b98220ee5d9b42c406c6fc6447494f1f58 100644
--- a/sky/shell/testing/test_runner.cc
+++ b/sky/shell/testing/test_runner.cc
@@ -61,7 +61,10 @@ TestRunner::TestRunner()
CHECK(!g_test_runner) << "Only create one TestRunner.";
shell_view_->view()->ConnectToEngine(GetProxy(&sky_engine_));
- sky_engine_->OnViewportMetricsChanged(320, 640, 1.0);
+ ViewportMetricsPtr metrics = ViewportMetrics::New();
+ metrics->physical_width = 320;
+ metrics->physical_height = 640;
+ sky_engine_->OnViewportMetricsChanged(metrics.Pass());
}
TestRunner::~TestRunner() {
« no previous file with comments | « sky/shell/ios/sky_surface.mm ('k') | sky/shell/ui/engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698