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

Side by Side Diff: ui/ozone/common/chromeos/display_util.cc

Issue 558253003: display: Move ui/display/types/chromeos/* to ui/display/types/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "ui/ozone/common/chromeos/display_util.h" 5 #include "ui/ozone/common/chromeos/display_util.h"
6 6
7 #include "ui/display/types/chromeos/display_mode.h" 7 #include "ui/display/types/display_mode.h"
8 #include "ui/display/types/chromeos/display_snapshot.h" 8 #include "ui/display/types/display_snapshot.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 DisplayMode_Params GetDisplayModeParams(const DisplayMode& mode) { 12 DisplayMode_Params GetDisplayModeParams(const DisplayMode& mode) {
13 DisplayMode_Params params; 13 DisplayMode_Params params;
14 params.size = mode.size(); 14 params.size = mode.size();
15 params.is_interlaced = mode.is_interlaced(); 15 params.is_interlaced = mode.is_interlaced();
16 params.refresh_rate = mode.refresh_rate(); 16 params.refresh_rate = mode.refresh_rate();
17 17
18 return params; 18 return params;
(...skipping 20 matching lines...) Expand all
39 params.has_native_mode = display.native_mode() != NULL; 39 params.has_native_mode = display.native_mode() != NULL;
40 if (params.has_native_mode) 40 if (params.has_native_mode)
41 params.native_mode = GetDisplayModeParams(*display.native_mode()); 41 params.native_mode = GetDisplayModeParams(*display.native_mode());
42 42
43 params.string_representation = display.ToString(); 43 params.string_representation = display.ToString();
44 44
45 return params; 45 return params;
46 } 46 }
47 47
48 } // namespace ui 48 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/common/chromeos/display_snapshot_proxy.h ('k') | ui/ozone/common/chromeos/native_display_delegate_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698