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

Issue 317823002: Implement NativeViewHostAura::InstallClip. (Closed)

Created:
6 years, 6 months ago by calamity
Modified:
6 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Implement NativeViewHostAura::InstallClip. Despite the NOTIMPLEMENTED comment saying that this method is only needed for performance, it causes bugs with aura windows in side Bubbles which need to clip to their parent view rather than the parent window. This CL is based on https://codereview.chromium.org/30993004/ but strips out the gravity code and simplifies the windowing code. Since the window hierarchy of NPAPI plugins has changed due to this patch, it was also necessary to modify WebContentsViewAura to reflect this change. BUG=377378 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279051 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279316

Patch Set 1 : #

Total comments: 20

Patch Set 2 : fix tests, address comments #

Patch Set 3 : avoid a window reparent on destruction #

Patch Set 4 : fix test crashes #

Total comments: 4

Patch Set 5 : address comments #

Patch Set 6 : fix crashes and test failures #

Patch Set 7 : fix last two tests #

Patch Set 8 : rebase, reimplement fast resize #

Patch Set 9 : add more tests #

Total comments: 5

Patch Set 10 : address a comment #

Patch Set 11 : add kHostWindowKey property #

Patch Set 12 : remove stray whitespace #

Total comments: 5

Patch Set 13 : address comments #

Total comments: 1

Patch Set 14 : remove test #

Patch Set 15 : rebase #

Patch Set 16 : clean up better #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -63 lines) Patch
M content/browser/web_contents/web_contents_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 11 chunks +47 lines, -33 lines 0 comments Download
M ui/aura/client/aura_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/client/aura_constants.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/native/native_view_host.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura.h View 1 2 3 4 3 chunks +17 lines, -3 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura.cc View 1 2 3 4 5 6 7 8 9 10 5 chunks +76 lines, -15 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura_unittest.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +125 lines, -2 lines 0 comments Download
M ui/views/controls/native/native_view_host_unittest.cc View 1 2 chunks +13 lines, -1 line 0 comments Download
M ui/views/controls/native/native_view_host_wrapper.h View 1 2 chunks +11 lines, -6 lines 0 comments Download
M ui/views/widget/native_widget_aura.cc View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 29 (0 generated)
calamity
+sky for ui/views OWNERS and reviewer of previous iteration. The reason for revert (crbug.com/311895) has ...
6 years, 6 months ago (2014-06-05 06:58:27 UTC) #1
sky
https://codereview.chromium.org/317823002/diff/20001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/317823002/diff/20001/ui/views/controls/native/native_view_host_aura.cc#newcode18 ui/views/controls/native/native_view_host_aura.cc:18: : host_(host), installed_clip_(false), clipping_window_(NULL) { nit: one param per ...
6 years, 6 months ago (2014-06-05 15:49:01 UTC) #2
calamity
Also fixed the tests. The clipping window needs to be sized properly to correctly bubble ...
6 years, 6 months ago (2014-06-06 08:13:45 UTC) #3
sky
https://codereview.chromium.org/317823002/diff/20001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/317823002/diff/20001/ui/views/controls/native/native_view_host_aura.cc#newcode29 ui/views/controls/native/native_view_host_aura.cc:29: RemoveClippingWindow(); On 2014/06/06 08:13:44, calamity wrote: > On 2014/06/05 ...
6 years, 6 months ago (2014-06-06 15:53:57 UTC) #4
calamity
I had to add a NULL check in NativeWidgetAura to stop the print preview browser ...
6 years, 6 months ago (2014-06-10 08:48:46 UTC) #5
calamity
FYI Traces. Without this patch, it runs successfully and hits via: views.dll!views::NativeWidgetAura::OnWindowFocused(aura::Window * gained_focus, aura::Window ...
6 years, 6 months ago (2014-06-10 09:11:41 UTC) #6
sky
https://codereview.chromium.org/317823002/diff/100001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/317823002/diff/100001/ui/views/controls/native/native_view_host_aura.cc#newcode78 ui/views/controls/native/native_view_host_aura.cc:78: installed_clip_ = true; Is it possible to nuke installed_clip_ ...
6 years, 6 months ago (2014-06-10 16:11:06 UTC) #7
calamity
Had to change WebContentsViewAura due to its assumption that the web contents window is a ...
6 years, 6 months ago (2014-06-11 09:50:26 UTC) #8
sky
On Wed, Jun 11, 2014 at 2:50 AM, <calamity@chromium.org> wrote: > Had to change WebContentsViewAura ...
6 years, 6 months ago (2014-06-11 16:22:55 UTC) #9
calamity
On 2014/06/11 16:22:55, sky wrote: > On Wed, Jun 11, 2014 at 2:50 AM, <mailto:calamity@chromium.org> ...
6 years, 6 months ago (2014-06-11 23:29:27 UTC) #10
sky
Wed, Jun 11, 2014 at 4:29 PM, <calamity@chromium.org> wrote: > On 2014/06/11 16:22:55, sky wrote: ...
6 years, 6 months ago (2014-06-12 15:38:05 UTC) #11
calamity
On 2014/06/12 15:38:05, sky wrote: > Wed, Jun 11, 2014 at 4:29 PM, <mailto:calamity@chromium.org> wrote: ...
6 years, 6 months ago (2014-06-13 06:34:16 UTC) #12
calamity
On 2014/06/13 06:34:16, calamity wrote: > On 2014/06/12 15:38:05, sky wrote: > > Wed, Jun ...
6 years, 6 months ago (2014-06-13 06:35:24 UTC) #13
sky
https://codereview.chromium.org/317823002/diff/300001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/317823002/diff/300001/content/browser/web_contents/web_contents_view_aura.cc#newcode564 content/browser/web_contents/web_contents_view_aura.cc:564: if (parent) That a different parent exists is an ...
6 years, 6 months ago (2014-06-16 17:11:03 UTC) #14
calamity
https://codereview.chromium.org/317823002/diff/300001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/317823002/diff/300001/content/browser/web_contents/web_contents_view_aura.cc#newcode564 content/browser/web_contents/web_contents_view_aura.cc:564: if (parent) On 2014/06/16 17:11:03, sky wrote: > That ...
6 years, 6 months ago (2014-06-17 05:01:12 UTC) #15
sky
https://codereview.chromium.org/317823002/diff/300001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/317823002/diff/300001/content/browser/web_contents/web_contents_view_aura.cc#newcode564 content/browser/web_contents/web_contents_view_aura.cc:564: if (parent) On 2014/06/17 05:01:12, calamity wrote: > On ...
6 years, 6 months ago (2014-06-17 16:25:25 UTC) #16
calamity
On 2014/06/17 16:25:25, sky wrote: > https://codereview.chromium.org/317823002/diff/300001/content/browser/web_contents/web_contents_view_aura.cc > File content/browser/web_contents/web_contents_view_aura.cc (right): > > https://codereview.chromium.org/317823002/diff/300001/content/browser/web_contents/web_contents_view_aura.cc#newcode564 > ...
6 years, 6 months ago (2014-06-19 00:14:44 UTC) #17
sky
On Wed, Jun 18, 2014 at 5:14 PM, <calamity@chromium.org> wrote: > On 2014/06/17 16:25:25, sky ...
6 years, 6 months ago (2014-06-19 15:14:50 UTC) #18
sky
Can you write tests for the WebContentsViewAura side? https://codereview.chromium.org/317823002/diff/380001/content/browser/web_contents/web_contents_view_aura.cc File content/browser/web_contents/web_contents_view_aura.cc (right): https://codereview.chromium.org/317823002/diff/380001/content/browser/web_contents/web_contents_view_aura.cc#newcode562 content/browser/web_contents/web_contents_view_aura.cc:562: window->GetProperty(aura::client::kHostWindowKey); ...
6 years, 6 months ago (2014-06-19 15:15:01 UTC) #19
calamity
I added a test that checks the property is set on a WebContentsViewAura. I'm not ...
6 years, 6 months ago (2014-06-20 07:10:40 UTC) #20
sky
LGTM https://codereview.chromium.org/317823002/diff/400001/content/browser/web_contents/web_contents_view_aura_browsertest.cc File content/browser/web_contents/web_contents_view_aura_browsertest.cc (right): https://codereview.chromium.org/317823002/diff/400001/content/browser/web_contents/web_contents_view_aura_browsertest.cc#newcode691 content/browser/web_contents/web_contents_view_aura_browsertest.cc:691: // Verify that hiding a parent of the ...
6 years, 6 months ago (2014-06-20 15:10:37 UTC) #21
calamity
The CQ bit was checked by calamity@chromium.org
6 years, 6 months ago (2014-06-23 01:38:11 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/317823002/440001
6 years, 6 months ago (2014-06-23 01:38:59 UTC) #23
commit-bot: I haz the power
Change committed as 279051
6 years, 6 months ago (2014-06-23 05:57:08 UTC) #24
jackhou1
A revert of this CL has been created in https://codereview.chromium.org/339663003/ by jackhou@chromium.org. The reason for ...
6 years, 6 months ago (2014-06-23 06:53:47 UTC) #25
calamity
The CQ bit was checked by calamity@chromium.org
6 years, 6 months ago (2014-06-23 23:53:37 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/calamity@chromium.org/317823002/460001
6 years, 6 months ago (2014-06-23 23:54:46 UTC) #27
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_chromium_rel on tryserver.chromium ...
6 years, 6 months ago (2014-06-24 03:04:45 UTC) #28
commit-bot: I haz the power
6 years, 6 months ago (2014-06-24 04:51:39 UTC) #29
Message was sent while issue was closed.
Change committed as 279316

Powered by Google App Engine
This is Rietveld 408576698