|
Multiple DPI Tracking for ScreenWin
In Windows 8.1 and above, a machine with multiple monitors can have a different
DPI for each monitor. This means that we can no longer use global DPI scaling
to convert between screen pixels and device-independent points. Additionally,
top-level windows can span multiple monitors. Fortunately, the window is affine
to a DPI, so within a window, a single DPI will apply.
To begin to accommodate multiple-DPIs, these Windows scaling functions will
now take an HWND to determine the DPI context and then perform the scale. Given
that the DPI will be determined by gfx::Display in gfx::Screen, ScreenWin
seems like an appropriate home for these now. All callers of the old functions
have been directed to use the new functions.
The visual behavior of Chrome should not change with this CL.
BUG= 426656, 501259
Total comments: 18
Total comments: 2
Total comments: 26
Total comments: 1
Total comments: 24
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+2458 lines, -132 lines) |
Patch |
 |
M |
chrome/browser/extensions/display_info_provider_win.cc
|
View
|
|
3 chunks |
+4 lines, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/frame/browser_desktop_window_tree_host_win.cc
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/tabs/tab_strip.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/tabs/window_finder_win.cc
|
View
|
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
 |
M |
components/metrics/ui/screen_info_metrics_provider.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/input/web_input_event_builders_win.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/legacy_render_widget_host_win.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
|
3 chunks |
+3 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/browser/renderer_host/render_widget_host_view_base.cc
|
View
|
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
 |
M |
content/child/npapi/webplugin_delegate_impl_win.cc
|
View
|
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/app_list/views/apps_grid_view.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/base/ime/input_method_win.cc
|
View
|
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/BUILD.gn
|
View
|
1
2
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/gfx.gyp
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/gfx_tests.gyp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/screen_win.h
|
View
|
1
2
3
|
4 chunks |
+78 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/screen_win.cc
|
View
|
1
2
3
|
8 chunks |
+255 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/screen_win_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
15 chunks |
+1225 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/win/dpi.h
|
View
|
|
2 chunks |
+1 line, -15 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/win/dpi.cc
|
View
|
|
2 chunks |
+19 lines, -49 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/win/rect_util.h
|
View
|
1
2
3
4
5
6
7
8
9
|
1 chunk |
+130 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/win/rect_util.cc
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+255 lines, -0 lines |
0 comments
|
Download
|
 |
A |
ui/gfx/win/rect_util_unittest.cc
|
View
|
1
|
1 chunk |
+380 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/win/screen_win_display.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
ui/gfx/win/screen_win_display.cc
|
View
|
1
|
2 chunks |
+37 lines, -6 lines |
0 comments
|
Download
|
 |
M |
ui/views/controls/menu/menu_controller.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
ui/views/corewm/tooltip_win.cc
|
View
|
|
3 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
View
|
|
9 chunks |
+19 lines, -10 lines |
0 comments
|
Download
|
 |
M |
ui/views/win/hwnd_message_handler.cc
|
View
|
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
ui/views/win/hwnd_message_handler_delegate.h
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
Total messages: 26 (6 generated)
|