|
Refactor Windows DPI Point, Rect, and Size for Multiple Monitor DPI Awareness
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
Total comments: 16
Total comments: 8
Total comments: 3
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+2691 lines, -302 lines) |
Patch |
|
M |
chrome/browser/extensions/display_info_provider_win.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+3 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
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/tabs/tab_strip.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
chrome/browser/ui/views/tabs/window_finder_win.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/input/web_input_event_builders_win.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/legacy_render_widget_host_win.cc
|
View
|
1
2
3
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_aura.cc
|
View
|
1
2
3
4
5
6
|
4 chunks |
+6 lines, -5 lines |
0 comments
|
Download
|
|
M |
content/browser/renderer_host/render_widget_host_view_base.cc
|
View
|
1
2
3
4
5
|
4 chunks |
+5 lines, -4 lines |
0 comments
|
Download
|
|
M |
content/child/npapi/webplugin_delegate_impl_win.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/app_list/views/apps_grid_view.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/base/ime/input_method_win.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+5 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/gfx/BUILD.gn
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gfx/display.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+2 lines, -0 lines |
2 comments
|
Download
|
|
M |
ui/gfx/gfx.gyp
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gfx/gfx_tests.gyp
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/gfx/screen.h
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gfx/screen.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+18 lines, -1 line |
0 comments
|
Download
|
|
M |
ui/gfx/screen_win.h
|
View
|
1
2
3
4
5
6
7
8
|
2 chunks |
+104 lines, -18 lines |
0 comments
|
Download
|
|
M |
ui/gfx/screen_win.cc
|
View
|
1
2
3
4
5
6
7
8
|
6 chunks |
+168 lines, -125 lines |
0 comments
|
Download
|
|
M |
ui/gfx/screen_win_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+980 lines, -15 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/display_info.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/display_info.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+88 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/display_manager.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+85 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/display_manager.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+286 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/display_manager_observer.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/display_manager_observer.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/gfx/win/dpi.h
|
View
|
1
2
3
4
5
6
7
8
|
3 chunks |
+1 line, -18 lines |
0 comments
|
Download
|
|
M |
ui/gfx/win/dpi.cc
|
View
|
1
2
3
4
5
6
7
8
|
4 chunks |
+13 lines, -55 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/rect_util.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+73 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/rect_util.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+250 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/rect_util_unittest.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+322 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/screen_win_display.h
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+42 lines, -0 lines |
0 comments
|
Download
|
|
A |
ui/gfx/win/screen_win_display.cc
|
View
|
1
2
3
4
5
6
7
8
|
1 chunk |
+58 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/controls/menu/menu_controller.cc
|
View
|
1
2
3
4
5
6
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
ui/views/corewm/tooltip_win.cc
|
View
|
|
4 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -12 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
View
|
1
2
3
4
5
6
|
9 chunks |
+19 lines, -10 lines |
0 comments
|
Download
|
|
M |
ui/views/win/hwnd_message_handler.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+2 lines, -3 lines |
0 comments
|
Download
|
|
M |
ui/views/win/hwnd_message_handler_delegate.h
|
View
|
1
2
3
4
5
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
ui/wm/core/default_screen_position_client.cc
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -4 lines |
2 comments
|
Download
|
Total messages: 43 (16 generated)
|