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

Issue 898443003: Use RWH instead of RWHV to know whether a frame is focus. (Closed)

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

Description

Use RWH instead of RWHV to know whether a frame is focus. Using RWH is a pure reflection of what the renderer process knows while RWHV is linked to the native implementations. This is fixing the LayoutTest failures created by: https://codereview.chromium.org/871013003 It might also be the cause of the test flakyness. Another CL will attempt to re-enable them (can't reproduce locally). BUG=450634 Committed: https://crrev.com/2ff3b31d405dbcf301972f3dc5833c40674042b8 Cr-Commit-Position: refs/heads/master@{#314590}

Patch Set 1 #

Total comments: 7

Patch Set 2 : add comments #

Total comments: 1

Patch Set 3 : comments and TODO #

Total comments: 20

Patch Set 4 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -2 lines) Patch
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 2 3 2 chunks +15 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 28 (7 generated)
mlamouri (slow - plz ping)
5 years, 10 months ago (2015-02-02 15:54:21 UTC) #2
kenrb
lgtm
5 years, 10 months ago (2015-02-02 17:24:40 UTC) #3
mlamouri (slow - plz ping)
Avi or Charlie, does one of you feel like rubber stamping that? :)
5 years, 10 months ago (2015-02-02 17:27:13 UTC) #5
Avi (use Gerrit)
lgtm stampity stamp
5 years, 10 months ago (2015-02-02 18:01:36 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/898443003/1
5 years, 10 months ago (2015-02-02 18:03:45 UTC) #8
Charlie Reis
Please wait. Comments below. https://codereview.chromium.org/898443003/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/898443003/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode1598 content/browser/frame_host/render_frame_host_impl.cc:1598: GetView()->GetRenderWidgetHost())->is_focused() && This is pretty ...
5 years, 10 months ago (2015-02-02 18:03:55 UTC) #9
Charlie Reis
Elaborating a bit, now that it's out of the CQ: I'm finding it quite difficult ...
5 years, 10 months ago (2015-02-02 18:06:29 UTC) #11
mlamouri (slow - plz ping)
https://codereview.chromium.org/898443003/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/898443003/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode1598 content/browser/frame_host/render_frame_host_impl.cc:1598: GetView()->GetRenderWidgetHost())->is_focused() && On 2015/02/02 at 18:03:55, Charlie Reis wrote: ...
5 years, 10 months ago (2015-02-02 18:21:15 UTC) #12
mlamouri (slow - plz ping)
I've added comments explaining what |is_focused_| is for. creis@, PTAL.
5 years, 10 months ago (2015-02-02 18:23:16 UTC) #13
kenrb
https://codereview.chromium.org/898443003/diff/1/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/898443003/diff/1/content/browser/frame_host/render_frame_host_impl.cc#newcode1598 content/browser/frame_host/render_frame_host_impl.cc:1598: GetView()->GetRenderWidgetHost())->is_focused() && On 2015/02/02 18:03:55, Charlie Reis wrote: > ...
5 years, 10 months ago (2015-02-02 18:28:17 UTC) #14
Charlie Reis
Sorry, given Ken's comment I can't approve this yet. Let's understand why the RWH and ...
5 years, 10 months ago (2015-02-02 18:34:49 UTC) #15
mlamouri (slow - plz ping)
For what I can see, the reason why the values differ is because RWHVMac doesn't ...
5 years, 10 months ago (2015-02-02 19:11:40 UTC) #16
kenrb
piman@: Can you take a look at what is happening here? We are working on ...
5 years, 10 months ago (2015-02-03 17:38:18 UTC) #18
piman
As far as I can tell (but I don't know much about focus), the content ...
5 years, 10 months ago (2015-02-03 19:11:07 UTC) #19
mlamouri (slow - plz ping)
On 2015/02/03 at 19:11:07, piman wrote: > As far as I can tell (but I ...
5 years, 10 months ago (2015-02-03 23:05:55 UTC) #20
mlamouri (slow - plz ping)
I've updated the comment, created a TODO and opened a bug for GetRenderWidgetHost() returning nullptr ...
5 years, 10 months ago (2015-02-04 16:57:48 UTC) #21
Charlie Reis
Ok, I won't block this further since it's preventing future work, though I think it's ...
5 years, 10 months ago (2015-02-04 17:32:43 UTC) #22
mlamouri (slow - plz ping)
review comments applied. Thank you for your understanding Charlie! :) https://codereview.chromium.org/898443003/diff/40001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/898443003/diff/40001/content/browser/frame_host/render_frame_host_impl.cc#newcode281 ...
5 years, 10 months ago (2015-02-04 17:44:12 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/898443003/60001
5 years, 10 months ago (2015-02-04 17:46:05 UTC) #26
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 10 months ago (2015-02-04 18:34:59 UTC) #27
commit-bot: I haz the power
5 years, 10 months ago (2015-02-04 18:35:44 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2ff3b31d405dbcf301972f3dc5833c40674042b8
Cr-Commit-Position: refs/heads/master@{#314590}

Powered by Google App Engine
This is Rietveld 408576698