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

Side by Side Diff: ui/gfx/win/dpi.h

Issue 832953002: Cleanup: Update the path to gfx size headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE Created 5 years, 11 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/gfx/skbitmap_operations.cc ('k') | ui/gfx/win/dpi.cc » ('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 #ifndef UI_GFX_DPI_WIN_H_ 5 #ifndef UI_GFX_DPI_WIN_H_
6 #define UI_GFX_DPI_WIN_H_ 6 #define UI_GFX_DPI_WIN_H_
7 7
8 #include "ui/gfx/geometry/point.h" 8 #include "ui/gfx/geometry/point.h"
9 #include "ui/gfx/geometry/rect.h" 9 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/geometry/size.h"
10 #include "ui/gfx/gfx_export.h" 11 #include "ui/gfx/gfx_export.h"
11 #include "ui/gfx/size.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 14
15 // Initialization of the scale factor that should be applied for rendering 15 // Initialization of the scale factor that should be applied for rendering
16 // in this process. Must be called before attempts to call any of the getter 16 // in this process. Must be called before attempts to call any of the getter
17 // methods below in this file, e.g. in the early toolkit/resource bundle setup. 17 // methods below in this file, e.g. in the early toolkit/resource bundle setup.
18 // This can be called multiple times during various tests, but subsequent calls 18 // This can be called multiple times during various tests, but subsequent calls
19 // have no effect. 19 // have no effect.
20 GFX_EXPORT void InitDeviceScaleFactor(float scale); 20 GFX_EXPORT void InitDeviceScaleFactor(float scale);
21 21
(...skipping 20 matching lines...) Expand all
42 GFX_EXPORT Size DIPToScreenSize(const Size& dip_size); 42 GFX_EXPORT Size DIPToScreenSize(const Size& dip_size);
43 43
44 // Win32's GetSystemMetrics uses pixel measures. This function calls 44 // Win32's GetSystemMetrics uses pixel measures. This function calls
45 // GetSystemMetrics for the given |metric|, then converts the result to DIP. 45 // GetSystemMetrics for the given |metric|, then converts the result to DIP.
46 GFX_EXPORT int GetSystemMetricsInDIP(int metric); 46 GFX_EXPORT int GetSystemMetricsInDIP(int metric);
47 47
48 } // namespace win 48 } // namespace win
49 } // namespace gfx 49 } // namespace gfx
50 50
51 #endif // UI_GFX_DPI_WIN_H_ 51 #endif // UI_GFX_DPI_WIN_H_
OLDNEW
« no previous file with comments | « ui/gfx/skbitmap_operations.cc ('k') | ui/gfx/win/dpi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698