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

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

Issue 12454004: Revert 186187 - crashing on Win XP browser_tests with "Access is denied". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/base/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_BASE_WIN_DPI_H_ 5 #ifndef UI_BASE_WIN_DPI_H_
6 #define UI_BASE_WIN_DPI_H_ 6 #define UI_BASE_WIN_DPI_H_
7 7
8 #include "ui/gfx/point.h" 8 #include "ui/gfx/point.h"
9 #include "ui/gfx/rect.h" 9 #include "ui/gfx/rect.h"
10 #include "ui/gfx/size.h" 10 #include "ui/gfx/size.h"
(...skipping 20 matching lines...) Expand all
31 UI_EXPORT gfx::Point ScreenToDIPPoint(const gfx::Point& pixel_point); 31 UI_EXPORT gfx::Point ScreenToDIPPoint(const gfx::Point& pixel_point);
32 32
33 UI_EXPORT gfx::Rect ScreenToDIPRect(const gfx::Rect& pixel_bounds); 33 UI_EXPORT gfx::Rect ScreenToDIPRect(const gfx::Rect& pixel_bounds);
34 34
35 UI_EXPORT gfx::Rect DIPToScreenRect(const gfx::Rect& dip_bounds); 35 UI_EXPORT gfx::Rect DIPToScreenRect(const gfx::Rect& dip_bounds);
36 36
37 UI_EXPORT gfx::Size ScreenToDIPSize(const gfx::Size& size_in_pixels); 37 UI_EXPORT gfx::Size ScreenToDIPSize(const gfx::Size& size_in_pixels);
38 38
39 UI_EXPORT gfx::Size DIPToScreenSize(const gfx::Size& dip_size); 39 UI_EXPORT gfx::Size DIPToScreenSize(const gfx::Size& dip_size);
40 40
41 UI_EXPORT double GetDPIScaleFromRegistry();
42
43 } // namespace win 41 } // namespace win
44 42
45 } // namespace ui 43 } // namespace ui
46 44
47 #endif // UI_BASE_WIN_DPI_H_ 45 #endif // UI_BASE_WIN_DPI_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_win.cc ('k') | ui/base/win/dpi.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698