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

Issue 769363002: Initialize BrowserPluginGuest to attach to the View hierarchy (Closed)

Created:
6 years ago by Fady Samuel
Modified:
6 years ago
Reviewers:
Charlie Reis, lazyboy
CC:
chromium-reviews, extensions-reviews_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@basic_detach_plumbing
Project:
chromium
Visibility:
Public.

Description

Initialize BrowserPluginGuest to attach to the View hierarchy This CL makes sure that a BrowserPluginGuest is attached to its owner's View hierarchy on creation. This allows the guest WebContents to navigate without needing to be attached to a container, as if it was a worker with a DOM. This CL will also ACK the last CompositorFrameSwapped message from the guest on attachment if it hasn't been ACK already so that the guest continues to produce frames once it's attached to a new container. BUG=434226 Committed: https://crrev.com/7310a42645ba9f0724a8abe38194cc0064d7e7f9 Cr-Commit-Position: refs/heads/master@{#306983}

Patch Set 1 #

Patch Set 2 : CanRunInDetachedState #

Patch Set 3 : Don't initialize by default #

Total comments: 12

Patch Set 4 : Addressed comments #

Total comments: 1

Patch Set 5 : Addressed nit #

Total comments: 14

Patch Set 6 : Addressed Charlie's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+115 lines, -25 lines) Patch
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 chunks +27 lines, -4 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 9 chunks +61 lines, -21 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.h View 1 2 3 2 chunks +9 lines, -0 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.h View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.cc View 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
Fady Samuel
6 years ago (2014-12-03 17:48:16 UTC) #2
Fady Samuel
PTAL Istiaque. GuestViews don't get attached to the view hierarchy if they don't have an ...
6 years ago (2014-12-04 01:40:15 UTC) #3
Fady Samuel
On 2014/12/04 01:40:15, Fady Samuel wrote: > PTAL Istiaque. GuestViews don't get attached to the ...
6 years ago (2014-12-04 01:40:39 UTC) #4
lazyboy
https://chromiumcodereview.appspot.com/769363002/diff/40001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://chromiumcodereview.appspot.com/769363002/diff/40001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode108 content/browser/browser_plugin/browser_plugin_guest.cc:108: if (!delegate_->CanRunInDetachedState()) Add a todo saying we should guard ...
6 years ago (2014-12-04 16:51:13 UTC) #5
Fady Samuel
PTAL. https://codereview.chromium.org/769363002/diff/40001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/769363002/diff/40001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode108 content/browser/browser_plugin/browser_plugin_guest.cc:108: if (!delegate_->CanRunInDetachedState()) On 2014/12/04 16:51:13, lazyboy wrote: > ...
6 years ago (2014-12-04 20:54:44 UTC) #6
lazyboy
lgtm https://codereview.chromium.org/769363002/diff/60001/content/browser/browser_plugin/browser_plugin_guest.cc File content/browser/browser_plugin/browser_plugin_guest.cc (right): https://codereview.chromium.org/769363002/diff/60001/content/browser/browser_plugin/browser_plugin_guest.cc#newcode216 content/browser/browser_plugin/browser_plugin_guest.cc:216: OnSetFocus(0, focused_); s/0/browser_plugin::kInstanceIDNone
6 years ago (2014-12-04 20:58:46 UTC) #7
Fady Samuel
Thanks Istiaque! Charlie, could I please get content/ OWNER review?
6 years ago (2014-12-04 21:30:08 UTC) #9
Charlie Reis
Just a few questions and nits below. Since this is non-trivial, I think it'd be ...
6 years ago (2014-12-04 22:16:52 UTC) #10
Fady Samuel
There are no consumers of this new functionality upstream yet. Once the Worker Thread Frame ...
6 years ago (2014-12-05 00:56:30 UTC) #11
Charlie Reis
On 2014/12/05 00:56:30, Fady Samuel wrote: > There are no consumers of this new functionality ...
6 years ago (2014-12-05 02:08:29 UTC) #12
Fady Samuel
On 2014/12/05 02:08:29, Charlie Reis wrote: > On 2014/12/05 00:56:30, Fady Samuel wrote: > > ...
6 years ago (2014-12-05 02:17:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/769363002/100001
6 years ago (2014-12-05 02:19:35 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/23321)
6 years ago (2014-12-05 02:46:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/769363002/100001
6 years ago (2014-12-05 02:51:35 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/23349)
6 years ago (2014-12-05 03:13:51 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/769363002/100001
6 years ago (2014-12-05 04:21:27 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years ago (2014-12-05 05:06:54 UTC) #24
commit-bot: I haz the power
6 years ago (2014-12-05 05:07:39 UTC) #25
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7310a42645ba9f0724a8abe38194cc0064d7e7f9
Cr-Commit-Position: refs/heads/master@{#306983}

Powered by Google App Engine
This is Rietveld 408576698