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

Unified Diff: sky/viewer/document_view.h

Issue 880743002: Plumb ViewportMetrics change notifications around the world and back. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Now without skydb changes Created 5 years, 11 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
Index: sky/viewer/document_view.h
diff --git a/sky/viewer/document_view.h b/sky/viewer/document_view.h
index 57bf30ba5d2fcc08e83318e9d126ea1598cca453..d06914cd006fd08dcd9f2998fe5d38d45b1bff0f 100644
--- a/sky/viewer/document_view.h
+++ b/sky/viewer/document_view.h
@@ -112,6 +112,10 @@ class DocumentView : public blink::ServiceProvider,
void OnViewBoundsChanged(mojo::View* view,
const mojo::Rect& old_bounds,
const mojo::Rect& new_bounds) override;
+ void OnViewViewportMetricsChanged(
+ mojo::View* view,
+ const mojo::ViewportMetrics& old_metrics,
+ const mojo::ViewportMetrics& new_metrics) override;
void OnViewFocusChanged(mojo::View* gained_focus,
mojo::View* lost_focus) override;
void OnViewDestroyed(mojo::View* view) override;
@@ -121,6 +125,8 @@ class DocumentView : public blink::ServiceProvider,
float GetDevicePixelRatio() const;
scoped_ptr<Rasterizer> CreateRasterizer();
+ void UpdateRootSizeAndViewportMetrics(const mojo::Rect& new_bounds);
+
mojo::URLResponsePtr response_;
mojo::ServiceProviderImpl exported_services_;
mojo::ServiceProviderPtr imported_services_;

Powered by Google App Engine
This is Rietveld 408576698