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

Issue 1078123002: Send resize event when the screen info changes. (Closed)

Created:
5 years, 8 months ago by mlamouri (slow - plz ping)
Modified:
5 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Send resize event when the screen info changes. This is a regression from https://codereview.chromium.org/953233002 It depends on https://codereview.chromium.org/1100503003 BUG=475939 Committed: https://crrev.com/d9a98e97395e76736faab14cce3158ad295ca0f4 Cr-Commit-Position: refs/heads/master@{#329088}

Patch Set 1 #

Total comments: 5

Patch Set 2 : update #

Patch Set 3 : rebase #

Total comments: 4

Patch Set 4 : comments applied #

Patch Set 5 : fix tests #

Patch Set 6 : fixing flakyness #

Patch Set 7 : update unit tests #

Patch Set 8 : reduced change #

Patch Set 9 : simpler #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -33 lines) Patch
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -13 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +5 lines, -15 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_unittest.cc View 1 2 3 4 5 6 7 8 5 chunks +49 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 41 (11 generated)
mlamouri (slow - plz ping)
sievers@, could you have a look at the changes in: content/browser/renderer_host/ sadrul@, could you have ...
5 years, 8 months ago (2015-04-10 14:50:29 UTC) #2
no sievers
https://codereview.chromium.org/1078123002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/1078123002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode588 content/browser/renderer_host/render_widget_host_impl.cc:588: } Should we just move this out to WasResized()? ...
5 years, 8 months ago (2015-04-10 18:40:31 UTC) #4
piman
5 years, 8 months ago (2015-04-10 19:16:43 UTC) #6
sadrul
https://codereview.chromium.org/1078123002/diff/1/content/browser/renderer_host/render_widget_host_unittest.cc File content/browser/renderer_host/render_widget_host_unittest.cc (right): https://codereview.chromium.org/1078123002/diff/1/content/browser/renderer_host/render_widget_host_unittest.cc#newcode611 content/browser/renderer_host/render_widget_host_unittest.cc:611: EXPECT_TRUE(process_->sink().GetUniqueMessageMatching(ViewMsg_Resize::ID)); ClearMessages() afterwards before the next block? https://codereview.chromium.org/1078123002/diff/1/ui/aura/test/test_screen.cc File ...
5 years, 8 months ago (2015-04-10 22:58:30 UTC) #7
mlamouri (slow - plz ping)
Comments applied. PTAL. https://codereview.chromium.org/1078123002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/1078123002/diff/1/content/browser/renderer_host/render_widget_host_impl.cc#newcode588 content/browser/renderer_host/render_widget_host_impl.cc:588: } On 2015/04/10 at 18:40:31, sievers ...
5 years, 8 months ago (2015-04-13 11:39:08 UTC) #8
jochen (gone - plz use gerrit)
5 years, 8 months ago (2015-04-13 13:09:44 UTC) #10
no sievers
lgtm https://codereview.chromium.org/1078123002/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (right): https://codereview.chromium.org/1078123002/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc#newcode1146 content/browser/renderer_host/render_widget_host_impl.cc:1146: latency_tracker_.set_device_scale_factor(result->deviceScaleFactor); This would also be nice to follow ...
5 years, 8 months ago (2015-04-15 18:17:00 UTC) #11
piman
https://codereview.chromium.org/1078123002/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (left): https://codereview.chromium.org/1078123002/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc#oldcode586 content/browser/renderer_host/render_widget_host_impl.cc:586: } Do we need to call UpdateScreenInfo() in RenderViewHostImpl::CreateRenderView ...
5 years, 8 months ago (2015-04-15 19:38:42 UTC) #12
mlamouri (slow - plz ping)
PTAL https://codereview.chromium.org/1078123002/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc File content/browser/renderer_host/render_widget_host_impl.cc (left): https://codereview.chromium.org/1078123002/diff/40001/content/browser/renderer_host/render_widget_host_impl.cc#oldcode586 content/browser/renderer_host/render_widget_host_impl.cc:586: } On 2015/04/15 at 19:38:42, piman (Very slow ...
5 years, 8 months ago (2015-04-16 14:56:42 UTC) #13
piman
lgtm
5 years, 8 months ago (2015-04-16 16:16:27 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1078123002/80001
5 years, 8 months ago (2015-04-16 16:45:34 UTC) #17
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-16 19:20:13 UTC) #18
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/6e3582ad1a058af30aa44ca7fae2113b050aa437 Cr-Commit-Position: refs/heads/master@{#325494}
5 years, 8 months ago (2015-04-16 19:21:01 UTC) #19
maniscalco
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/1093713002/ by maniscalco@chromium.org. ...
5 years, 8 months ago (2015-04-16 22:53:13 UTC) #20
mlamouri (slow - plz ping)
sievers@, PTAL. I have updated the CL to no longer send a resize event if ...
5 years, 8 months ago (2015-04-20 21:54:37 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1078123002/100001
5 years, 8 months ago (2015-04-21 15:48:51 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/9505)
5 years, 8 months ago (2015-04-21 16:49:17 UTC) #26
no sievers
Hmm, this is getting a little confusing now between Invalidate/UpdateScreenInfo and screen_info_is_out_of_date_ and comparing the ...
5 years, 8 months ago (2015-04-22 21:12:43 UTC) #27
mlamouri (slow - plz ping)
On 2015/04/22 at 21:12:43, sievers wrote: > Hmm, this is getting a little confusing now ...
5 years, 8 months ago (2015-04-22 22:18:27 UTC) #28
no sievers
On 2015/04/22 22:18:27, Mounir Lamouri wrote: > On 2015/04/22 at 21:12:43, sievers wrote: > > ...
5 years, 8 months ago (2015-04-23 22:49:32 UTC) #29
no sievers
On 2015/04/22 22:18:27, Mounir Lamouri wrote: > I think it would be great to land ...
5 years, 8 months ago (2015-04-23 22:51:34 UTC) #30
mlamouri (slow - plz ping)
What about the new patchset? Is very basic and should be enough to fix the ...
5 years, 7 months ago (2015-04-30 14:15:33 UTC) #31
no sievers
lgtm. thanks for investigating this!
5 years, 7 months ago (2015-04-30 18:48:52 UTC) #32
no sievers
Ok, since you said this needs to be reopened, since some test is still flaky, ...
5 years, 7 months ago (2015-05-07 19:06:57 UTC) #33
mlamouri (slow - plz ping)
On 2015/05/07 at 19:06:57, sievers wrote: > Ok, since you said this needs to be ...
5 years, 7 months ago (2015-05-08 17:57:38 UTC) #34
mlamouri (slow - plz ping)
sievers@, I tried another approach following our discussion over IM. That approach is simpler but ...
5 years, 7 months ago (2015-05-08 20:29:35 UTC) #35
no sievers
LGTM, this is nice and simple. Agreed, the caching of |screen_info_| shouldn't be needed anymore ...
5 years, 7 months ago (2015-05-08 22:28:19 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1078123002/160001
5 years, 7 months ago (2015-05-10 13:47:19 UTC) #39
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 7 months ago (2015-05-11 00:45:44 UTC) #40
commit-bot: I haz the power
5 years, 7 months ago (2015-05-11 00:46:35 UTC) #41
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/d9a98e97395e76736faab14cce3158ad295ca0f4
Cr-Commit-Position: refs/heads/master@{#329088}

Powered by Google App Engine
This is Rietveld 408576698