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

Issue 871443004: Expose the visibility state of a frame to the browser process. (Closed)

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

Description

Expose the visibility state of a frame to the browser process. A frame knows whether it is visible or hidden based on its RenderWidgetHost. In addition, a frame can be prerendered. To have that information, it is required to go via ContentBrowserClient. BUG=450634 Committed: https://crrev.com/f8c23a200068daeaac3139c59c9868b5a6058f75 Cr-Commit-Position: refs/heads/master@{#313264}

Patch Set 1 #

Patch Set 2 : remove from RFH #

Total comments: 8

Patch Set 3 : rebase #

Patch Set 4 : review comments #

Patch Set 5 : use rwhv #

Patch Set 6 : rebase #

Total comments: 4

Patch Set 7 : review comments #

Patch Set 8 : add to RFH #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -0 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +66 lines, -0 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -0 lines 0 comments Download
M content/public/browser/render_frame_host.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (9 generated)
mlamouri (slow - plz ping)
5 years, 11 months ago (2015-01-22 16:36:28 UTC) #2
mlamouri (slow - plz ping)
Taking into account your comments in https://codereview.chromium.org/860393004, I've removed GetVisibilityState() from RenderFrameHost. PTAL :)
5 years, 11 months ago (2015-01-22 18:18:58 UTC) #3
Charlie Reis
https://codereview.chromium.org/871443004/diff/20001/content/browser/frame_host/render_frame_host_impl.cc File content/browser/frame_host/render_frame_host_impl.cc (right): https://codereview.chromium.org/871443004/diff/20001/content/browser/frame_host/render_frame_host_impl.cc#newcode1485 content/browser/frame_host/render_frame_host_impl.cc:1485: ? blink::WebPageVisibilityStateHidden This indent doesn't seem right. I would ...
5 years, 11 months ago (2015-01-22 21:03:55 UTC) #4
mlamouri (slow - plz ping)
I've updated the ContentBrowserClient to look slightly like ContentRendererClient except that the override method isn't ...
5 years, 11 months ago (2015-01-23 12:32:58 UTC) #5
mlamouri (slow - plz ping)
I've updated to use ::GetView(). PTAL.
5 years, 11 months ago (2015-01-23 17:57:23 UTC) #6
mlamouri (slow - plz ping)
Jochen, given the site isolation week happening this week, creis@ might not be available. Could ...
5 years, 11 months ago (2015-01-26 13:19:53 UTC) #8
jochen (gone - plz use gerrit)
just checking, is the RWH also hidden if we display an interstitial on top? https://codereview.chromium.org/871443004/diff/100001/content/browser/frame_host/render_frame_host_impl.h ...
5 years, 11 months ago (2015-01-26 16:18:51 UTC) #9
mlamouri (slow - plz ping)
When there is an interstitial, it does hide the RWHV so this should return hidden. ...
5 years, 11 months ago (2015-01-26 17:40:43 UTC) #10
jochen (gone - plz use gerrit)
lgtm
5 years, 11 months ago (2015-01-27 09:55:36 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/871443004/140001
5 years, 11 months ago (2015-01-27 09:57:26 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg_tests_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_dbg_tests_recipe/builds/48677)
5 years, 11 months ago (2015-01-27 09:57:45 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/871443004/160001
5 years, 11 months ago (2015-01-27 10:14:15 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/20078)
5 years, 11 months ago (2015-01-27 11:44:56 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/871443004/160001
5 years, 11 months ago (2015-01-27 12:30:42 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/20071)
5 years, 11 months ago (2015-01-27 12:31:00 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/871443004/160001
5 years, 11 months ago (2015-01-27 13:02:57 UTC) #25
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 11 months ago (2015-01-27 13:10:36 UTC) #26
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 13:11:22 UTC) #27
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/f8c23a200068daeaac3139c59c9868b5a6058f75
Cr-Commit-Position: refs/heads/master@{#313264}

Powered by Google App Engine
This is Rietveld 408576698