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

Unified Diff: components/mus/ws/window_server.cc

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/window_server.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_server.cc
diff --git a/components/mus/ws/window_server.cc b/components/mus/ws/window_server.cc
index 1c8e9e8230f340ed0f67d62aa770079583ff5004..fdcf9cb6cd319de2d5a5a9f93939ed578bc0e350 100644
--- a/components/mus/ws/window_server.cc
+++ b/components/mus/ws/window_server.cc
@@ -215,22 +215,6 @@ bool WindowServer::DidTreeMessageClient(ClientSpecificId id) const {
return current_operation_ && current_operation_->DidMessageTree(id);
}
-mojom::ViewportMetricsPtr WindowServer::GetViewportMetricsForWindow(
- const ServerWindow* window) {
- const Display* display = display_manager_->GetDisplayContaining(window);
- if (display)
- return display->GetViewportMetrics().Clone();
-
- if (!display_manager_->displays().empty())
- return (*display_manager_->displays().begin())
- ->GetViewportMetrics()
- .Clone();
-
- mojom::ViewportMetricsPtr metrics = mojom::ViewportMetrics::New();
- metrics->size_in_pixels = mojo::Size::New();
- return metrics;
-}
-
const WindowTree* WindowServer::GetTreeWithRoot(
const ServerWindow* window) const {
if (!window)
« no previous file with comments | « components/mus/ws/window_server.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698