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

Issue 11953054: Fix high-DPI on Windows to make use of DIP scaling in WebKit. (Closed)

Created:
7 years, 11 months ago by kevers
Modified:
7 years, 10 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, James Su, girard, pkotwicz
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Fix high-DPI on Windows to make use of DIP scaling in WebKit. BUG=149881 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=179899

Patch Set 1 #

Patch Set 2 : Code cleanup. #

Total comments: 8

Patch Set 3 : Remove experimental changes to resource handling. #

Total comments: 22

Patch Set 4 : Fix merge conflicts. #

Patch Set 5 : Fix nits #

Patch Set 6 : Fix failing unit tests. #

Total comments: 10

Patch Set 7 : Merge with trunk. #

Patch Set 8 : Reinsert ifdef #

Total comments: 6

Patch Set 9 : Remove superfluous ifdefs. #

Total comments: 4

Patch Set 10 : Remove redundant comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -24 lines) Patch
M content/app/content_main_runner.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_guest.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_guest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.h View 1 2 3 4 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_win.cc View 1 2 3 4 5 6 7 8 9 11 chunks +33 lines, -4 lines 0 comments Download
M content/browser/renderer_host/test_render_view_host.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 3 chunks +9 lines, -0 lines 0 comments Download
M content/port/browser/render_widget_host_view_port.h View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M ui/base/layout.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/base/win/dpi.h View 1 2 3 4 2 chunks +20 lines, -0 lines 0 comments Download
M ui/base/win/dpi.cc View 1 2 3 4 5 6 7 2 chunks +49 lines, -0 lines 0 comments Download
M ui/gfx/display.h View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M ui/gfx/display.cc View 1 2 3 4 5 6 2 chunks +8 lines, -2 lines 0 comments Download
M ui/gfx/screen_win.cc View 1 2 3 4 2 chunks +8 lines, -0 lines 0 comments Download
M ui/surface/accelerated_surface_win.cc View 1 2 3 4 5 6 2 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 21 (0 generated)
pkotwicz
https://codereview.chromium.org/11953054/diff/1021/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://codereview.chromium.org/11953054/diff/1021/content/browser/renderer_host/render_widget_host_view_win.cc#newcode611 content/browser/renderer_host/render_widget_host_view_win.cc:611: gfx::Rect RenderWidgetHostViewWin::getPixelBounds() const { Nit:GetPixelBounds() https://codereview.chromium.org/11953054/diff/1021/content/browser/renderer_host/render_widget_host_view_win.cc#newcode2746 content/browser/renderer_host/render_widget_host_view_win.cc:2746: gfx::Point(static_cast<short>(LOWORD(lparam)), Nit: ...
7 years, 11 months ago (2013-01-23 18:13:12 UTC) #1
pkotwicz
https://codereview.chromium.org/11953054/diff/5001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://codereview.chromium.org/11953054/diff/5001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode302 content/browser/renderer_host/render_widget_host_view_win.cc:302: Pass in NativeViewId here instead of HWND Nit: Get ...
7 years, 11 months ago (2013-01-23 19:39:23 UTC) #2
pkotwicz
LGTM with nits
7 years, 11 months ago (2013-01-23 19:40:08 UTC) #3
kevers
https://codereview.chromium.org/11953054/diff/1021/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://codereview.chromium.org/11953054/diff/1021/content/browser/renderer_host/render_widget_host_view_win.cc#newcode611 content/browser/renderer_host/render_widget_host_view_win.cc:611: gfx::Rect RenderWidgetHostViewWin::getPixelBounds() const { On 2013/01/23 18:13:12, pkotwicz wrote: ...
7 years, 11 months ago (2013-01-23 20:02:19 UTC) #4
kevers
https://codereview.chromium.org/11953054/diff/5001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://codereview.chromium.org/11953054/diff/5001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode302 content/browser/renderer_host/render_widget_host_view_win.cc:302: On 2013/01/23 19:39:23, pkotwicz wrote: > Pass in NativeViewId ...
7 years, 11 months ago (2013-01-23 21:37:00 UTC) #5
kevers
Hi Ben, Can you please take a look at this CL.
7 years, 11 months ago (2013-01-23 21:38:02 UTC) #6
kevers
+sky for ui OWNERS +darin for content OWNERS
7 years, 10 months ago (2013-01-28 15:52:31 UTC) #7
sky
https://codereview.chromium.org/11953054/diff/3002/ui/base/win/dpi.cc File ui/base/win/dpi.cc (right): https://codereview.chromium.org/11953054/diff/3002/ui/base/win/dpi.cc#newcode22 ui/base/win/dpi.cc:22: #if defined(ENABLE_HIDPI) Why the ifdef? https://codereview.chromium.org/11953054/diff/3002/ui/base/win/dpi.cc#newcode73 ui/base/win/dpi.cc:73: static const ...
7 years, 10 months ago (2013-01-28 20:56:35 UTC) #8
kevers
https://codereview.chromium.org/11953054/diff/3002/ui/base/win/dpi.cc File ui/base/win/dpi.cc (right): https://codereview.chromium.org/11953054/diff/3002/ui/base/win/dpi.cc#newcode22 ui/base/win/dpi.cc:22: #if defined(ENABLE_HIDPI) On 2013/01/28 20:56:35, sky wrote: > Why ...
7 years, 10 months ago (2013-01-28 22:53:40 UTC) #9
sky
https://codereview.chromium.org/11953054/diff/3002/ui/base/win/dpi.cc File ui/base/win/dpi.cc (right): https://codereview.chromium.org/11953054/diff/3002/ui/base/win/dpi.cc#newcode22 ui/base/win/dpi.cc:22: #if defined(ENABLE_HIDPI) On 2013/01/28 22:53:40, kevers wrote: > On ...
7 years, 10 months ago (2013-01-29 15:34:55 UTC) #10
kevers
https://chromiumcodereview.appspot.com/11953054/diff/3002/ui/base/win/dpi.cc File ui/base/win/dpi.cc (right): https://chromiumcodereview.appspot.com/11953054/diff/3002/ui/base/win/dpi.cc#newcode22 ui/base/win/dpi.cc:22: #if defined(ENABLE_HIDPI) On 2013/01/29 15:34:56, sky wrote: > On ...
7 years, 10 months ago (2013-01-29 17:08:28 UTC) #11
sky
If the feature isn't ready, the ifdef is fine by me. I just wanted to ...
7 years, 10 months ago (2013-01-29 20:39:56 UTC) #12
kevers
On 2013/01/29 20:39:56, sky wrote: > If the feature isn't ready, the ifdef is fine ...
7 years, 10 months ago (2013-01-29 21:36:55 UTC) #13
sky
LGTM
7 years, 10 months ago (2013-01-29 22:36:08 UTC) #14
darin (slow to review)
https://chromiumcodereview.appspot.com/11953054/diff/31001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://chromiumcodereview.appspot.com/11953054/diff/31001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode310 content/browser/renderer_host/render_widget_host_view_win.cc:310: results->deviceScaleFactor = ui::win::GetDeviceScaleFactor(); Wouldn't it be better to provide ...
7 years, 10 months ago (2013-01-30 21:39:12 UTC) #15
kevers
https://chromiumcodereview.appspot.com/11953054/diff/31001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://chromiumcodereview.appspot.com/11953054/diff/31001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode310 content/browser/renderer_host/render_widget_host_view_win.cc:310: results->deviceScaleFactor = ui::win::GetDeviceScaleFactor(); On 2013/01/30 21:39:12, darin wrote: > ...
7 years, 10 months ago (2013-01-30 22:27:01 UTC) #16
darin (slow to review)
On Wed, Jan 30, 2013 at 2:27 PM, <kevers@chromium.org> wrote: > > https://chromiumcodereview.**appspot.com/11953054/diff/** > 31001/content/browser/**renderer_host/render_widget_**host_view_win.cc<https://chromiumcodereview.appspot.com/11953054/diff/31001/content/browser/renderer_host/render_widget_host_view_win.cc> ...
7 years, 10 months ago (2013-01-30 22:58:42 UTC) #17
darin (slow to review)
LGTM for content/ https://chromiumcodereview.appspot.com/11953054/diff/34001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://chromiumcodereview.appspot.com/11953054/diff/34001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode2397 content/browser/renderer_host/render_widget_host_view_win.cc:2397: nit: the comment seems a bit ...
7 years, 10 months ago (2013-01-30 23:24:31 UTC) #18
kevers
https://chromiumcodereview.appspot.com/11953054/diff/34001/content/browser/renderer_host/render_widget_host_view_win.cc File content/browser/renderer_host/render_widget_host_view_win.cc (right): https://chromiumcodereview.appspot.com/11953054/diff/34001/content/browser/renderer_host/render_widget_host_view_win.cc#newcode2397 content/browser/renderer_host/render_widget_host_view_win.cc:2397: On 2013/01/30 23:24:31, darin wrote: > nit: the comment ...
7 years, 10 months ago (2013-01-31 13:50:20 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kevers@chromium.org/11953054/34002
7 years, 10 months ago (2013-01-31 13:50:32 UTC) #20
commit-bot: I haz the power
7 years, 10 months ago (2013-01-31 17:24:44 UTC) #21
Message was sent while issue was closed.
Change committed as 179899

Powered by Google App Engine
This is Rietveld 408576698