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

Unified Diff: services/view_manager/server_view_delegate.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_delegate.h
diff --git a/services/view_manager/server_view_delegate.h b/services/view_manager/server_view_delegate.h
index 9a9d5907fd5fa5f8903ccd43f83bf2289802fd46..915d8a2f45e6c78f2ef602fcdda141515e8f1711 100644
--- a/services/view_manager/server_view_delegate.h
+++ b/services/view_manager/server_view_delegate.h
@@ -11,6 +11,10 @@ namespace gfx {
class Rect;
}
+namespace mojo {
+class ViewportMetrics;
+}
+
namespace view_manager {
class ServerView;
@@ -37,6 +41,11 @@ class ServerViewDelegate {
const gfx::Rect& old_bounds,
const gfx::Rect& new_bounds) = 0;
+ virtual void OnViewViewportMetricsChanged(
+ const ServerView* view,
+ const mojo::ViewportMetrics& old_metrics,
+ const mojo::ViewportMetrics& new_metrics) = 0;
+
virtual void OnViewSurfaceIdChanged(const ServerView* view) = 0;
virtual void OnViewReordered(const ServerView* view,

Powered by Google App Engine
This is Rietveld 408576698