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

Unified Diff: mandoline/ui/common/util.cc

Issue 1419793006: Makes windowmanager draw non-client area (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add include Created 5 years, 1 month 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 | « mandoline/ui/common/util.h ('k') | mandoline/ui/desktop_ui/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/common/util.cc
diff --git a/mandoline/ui/common/util.cc b/mandoline/ui/common/util.cc
deleted file mode 100644
index 2ef16046fd85df4bb7c80b76e9b7ca2071640f6c..0000000000000000000000000000000000000000
--- a/mandoline/ui/common/util.cc
+++ /dev/null
@@ -1,24 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "mandoline/ui/common/util.h"
-
-#include "components/mus/public/cpp/window.h"
-#include "mojo/converters/geometry/geometry_type_converters.h"
-
-namespace mandoline {
-
-std::vector<gfx::Display> GetDisplaysFromWindow(mus::Window* window) {
- static int64 synthesized_display_id = 2000;
- gfx::Display display;
- display.set_id(synthesized_display_id++);
- display.SetScaleAndBounds(
- window->viewport_metrics().device_pixel_ratio,
- gfx::Rect(window->viewport_metrics().size_in_pixels.To<gfx::Size>()));
- std::vector<gfx::Display> displays;
- displays.push_back(display);
- return displays;
-}
-
-} // namespace mandoline
« no previous file with comments | « mandoline/ui/common/util.h ('k') | mandoline/ui/desktop_ui/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698