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

Side by Side Diff: ui/views/mus/display_converter.cc

Issue 2010753002: views: Remove dead code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
« no previous file with comments | « ui/views/mus/display_converter.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/views/mus/display_converter.h"
6
7 #include <stdint.h>
8
9 #include "components/mus/public/cpp/window.h"
10 #include "mojo/converters/geometry/geometry_type_converters.h"
11
12 namespace views {
13
14 std::vector<display::Display> GetDisplaysFromWindow(mus::Window* window) {
15 static int64_t synthesized_display_id = 2000;
16 display::Display display;
17 display.set_id(synthesized_display_id++);
18 display.SetScaleAndBounds(
19 window->viewport_metrics().device_pixel_ratio,
20 gfx::Rect(window->viewport_metrics().size_in_pixels.To<gfx::Size>()));
21 std::vector<display::Display> displays;
22 displays.push_back(display);
23 return displays;
24 }
25
26 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/mus/display_converter.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698