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

Unified Diff: sky/shell/ui/engine.h

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/testing/test_runner.cc ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/shell/ui/engine.h
diff --git a/sky/shell/ui/engine.h b/sky/shell/ui/engine.h
index ebb605cb83a7eb60e38177f3a05dbcdc156277ea..f4c51ffac368fc74836e4d2b62fb664e1951d196 100644
--- a/sky/shell/ui/engine.h
+++ b/sky/shell/ui/engine.h
@@ -62,8 +62,7 @@ class Engine : public UIDelegate,
void OnOutputSurfaceDestroyed() override;
// SkyEngine implementation:
- void OnViewportMetricsChanged(int width, int height,
- float device_pixel_ratio) override;
+ void OnViewportMetricsChanged(ViewportMetricsPtr metrics) override;
void OnInputEvent(InputEventPtr event) override;
void RunFromNetwork(const mojo::String& url) override;
@@ -89,8 +88,6 @@ class Engine : public UIDelegate,
void RunFromSnapshotStream(const std::string& name,
mojo::ScopedDataPipeConsumerHandle snapshot);
- void UpdateSkyViewSize();
-
Config config_;
scoped_ptr<Animator> animator_;
@@ -98,8 +95,8 @@ class Engine : public UIDelegate,
scoped_ptr<blink::DartLibraryProvider> dart_library_provider_;
std::unique_ptr<blink::SkyView> sky_view_;
- float device_pixel_ratio_;
gfx::Size physical_size_;
+ blink::SkyDisplayMetrics display_metrics_;
mojo::Binding<SkyEngine> binding_;
base::WeakPtrFactory<Engine> weak_factory_;
« no previous file with comments | « sky/shell/testing/test_runner.cc ('k') | sky/shell/ui/engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698