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

Unified Diff: services/view_manager/connection_manager.cc

Issue 880743002: Plumb ViewportMetrics change notifications around the world and back. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/connection_manager.cc
diff --git a/services/view_manager/connection_manager.cc b/services/view_manager/connection_manager.cc
index f5e408d794bb85d6b7d736d0174143b3596c7f85..bba368886ea2d640cafc7696382d14decfa1cc04 100644
--- a/services/view_manager/connection_manager.cc
+++ b/services/view_manager/connection_manager.cc
@@ -245,6 +245,16 @@ void ConnectionManager::ProcessViewBoundsChanged(const ServerView* view,
}
}
+void ConnectionManager::ProcessViewportMetricsChanged(
+ const ServerView* view,
+ const mojo::ViewportMetrics& old_metrics,
+ const mojo::ViewportMetrics& new_metrics) {
+ for (auto& pair : connection_map_) {
+ pair.second->service()->ProcessViewportMetricsChanged(
+ view, old_metrics, new_metrics, IsChangeSource(pair.first));
+ }
+}
+
void ConnectionManager::ProcessWillChangeViewHierarchy(
const ServerView* view,
const ServerView* new_parent,

Powered by Google App Engine
This is Rietveld 408576698