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..52522bec9546dae3e1fde6c38b458c30fa8da8a7 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, |
@@ -376,6 +386,17 @@ void ConnectionManager::OnViewBoundsChanged(const ServerView* view, |
display_manager_->SchedulePaint(view->parent(), new_bounds); |
} |
+void ConnectionManager::OnViewViewportMetricsChanged( |
+ const ServerView* view, |
+ const mojo::ViewportMetrics& old_metrics, |
+ const mojo::ViewportMetrics& new_metrics) { |
+ if (in_destructor_) |
+ return; |
+ |
+ ProcessViewportMetricsChanged(view, old_metrics, new_metrics); |
+ // TODO(sky): Do we need to repaint here? |
sky
2015/01/27 23:40:23
I would think not.
|
+} |
+ |
void ConnectionManager::OnViewSurfaceIdChanged(const ServerView* view) { |
if (!in_destructor_) |
display_manager_->SchedulePaint(view, gfx::Rect(view->bounds().size())); |