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

Side by Side Diff: ui/gfx/display.cc

Issue 23769011: Move a bunch of windows stuff from ui/base/win to ui/gfx/win (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar bustage. Created 7 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 | Annotate | Revision Log
« no previous file with comments | « ui/gfx/canvas_paint_win.h ('k') | ui/gfx/dpi_win.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/gfx/display.h" 5 #include "ui/gfx/display.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
11 #include "ui/base/ui_base_switches.h"
12 #include "ui/gfx/insets.h" 11 #include "ui/gfx/insets.h"
13 #include "ui/gfx/point_conversions.h" 12 #include "ui/gfx/point_conversions.h"
14 #include "ui/gfx/point_f.h" 13 #include "ui/gfx/point_f.h"
15 #include "ui/gfx/size_conversions.h" 14 #include "ui/gfx/size_conversions.h"
15 #include "ui/gfx/switches.h"
16 16
17 namespace gfx { 17 namespace gfx {
18 namespace { 18 namespace {
19 19
20 bool HasForceDeviceScaleFactorImpl() { 20 bool HasForceDeviceScaleFactorImpl() {
21 return CommandLine::ForCurrentProcess()->HasSwitch( 21 return CommandLine::ForCurrentProcess()->HasSwitch(
22 switches::kForceDeviceScaleFactor); 22 switches::kForceDeviceScaleFactor);
23 } 23 }
24 24
25 float GetForcedDeviceScaleFactorImpl() { 25 float GetForcedDeviceScaleFactorImpl() {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 141
142 int64 Display::InternalDisplayId() { 142 int64 Display::InternalDisplayId() {
143 return internal_display_id_; 143 return internal_display_id_;
144 } 144 }
145 145
146 void Display::SetInternalDisplayId(int64 internal_display_id) { 146 void Display::SetInternalDisplayId(int64 internal_display_id) {
147 internal_display_id_ = internal_display_id; 147 internal_display_id_ = internal_display_id;
148 } 148 }
149 149
150 } // namespace gfx 150 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/canvas_paint_win.h ('k') | ui/gfx/dpi_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698