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

Unified Diff: services/view_manager/server_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: services/view_manager/server_view.h
diff --git a/services/view_manager/server_view.h b/services/view_manager/server_view.h
index 03842e7bb5cfc0a3db9231bf362fd22fafb14f9a..bb81cc6f3e420266d8416de02c29470585ccbd7d 100644
--- a/services/view_manager/server_view.h
+++ b/services/view_manager/server_view.h
@@ -40,6 +40,9 @@ class ServerView {
const gfx::Rect& bounds() const { return bounds_; }
void SetBounds(const gfx::Rect& bounds);
+ const mojo::ViewportMetrics& viewport_metrics() { return *viewport_metrics_; }
sky 2015/01/27 23:40:23 Since we currently only support metrics on the roo
+ void SetViewportMetrics(const mojo::ViewportMetrics& metrics);
+
const ServerView* parent() const { return parent_; }
ServerView* parent() { return parent_; }
@@ -95,6 +98,7 @@ class ServerView {
Views children_;
bool visible_;
gfx::Rect bounds_;
+ mojo::ViewportMetricsPtr viewport_metrics_;
cc::SurfaceId surface_id_;
float opacity_;
gfx::Transform transform_;

Powered by Google App Engine
This is Rietveld 408576698