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

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

Powered by Google App Engine
This is Rietveld 408576698