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

Unified Diff: components/mus/ws/platform_display_delegate.h

Issue 2021483002: mus: Remove ViewportMetrics from mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 7 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
« no previous file with comments | « components/mus/ws/platform_display.cc ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/platform_display_delegate.h
diff --git a/components/mus/ws/platform_display_delegate.h b/components/mus/ws/platform_display_delegate.h
index 3ef3786f5df2218a12571790ab2304459c0d6b8e..95a9c761dc40db21aa51cbcd99d302badfa1e715 100644
--- a/components/mus/ws/platform_display_delegate.h
+++ b/components/mus/ws/platform_display_delegate.h
@@ -5,7 +5,6 @@
#ifndef COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_
#define COMPONENTS_MUS_WS_PLATFORM_DISPLAY_DELEGATE_H_
-#include "components/mus/public/interfaces/window_tree.mojom.h"
#include "components/mus/ws/ids.h"
namespace ui {
@@ -17,6 +16,7 @@ namespace mus {
namespace ws {
class ServerWindow;
+struct ViewportMetrics;
// PlatformDisplayDelegate is implemented by an object that manages the
// lifetime of a PlatformDisplay, forwards events to the appropriate windows,
@@ -36,9 +36,8 @@ class PlatformDisplayDelegate {
virtual void OnNativeCaptureLost() = 0;
// Signals that the metrics of this display's viewport has changed.
- virtual void OnViewportMetricsChanged(
- const mojom::ViewportMetrics& old_metrics,
- const mojom::ViewportMetrics& new_metrics) = 0;
+ virtual void OnViewportMetricsChanged(const ViewportMetrics& old_metrics,
+ const ViewportMetrics& new_metrics) = 0;
// Called when a compositor frame is finished drawing.
virtual void OnCompositorFrameDrawn() = 0;
« no previous file with comments | « components/mus/ws/platform_display.cc ('k') | components/mus/ws/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698