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

Issue 30993004: Reland: Implement features in NativeViewHostAura for scroll end effect (Closed)

Created:
7 years, 2 months ago by rharrison
Modified:
7 years, 1 month ago
Reviewers:
xiyuan, sadrul, sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Reland: Implement features in NativeViewHostAura for scroll end effect This CL enables the fast resize path on Aura by implementing NativeViewHostAura::InstallClip. It also adds the concept of gravity to the fast resize state to control the positioning of the clip relative to the contents. Gravity is implemented for Aura only in this CL and ignored in other implementations. Refactored |clipping_window_| so that ownership is not in NVHA. Added test to make sure that the leak is resolved. Fixed occlusion issue with find bar by setting kHostViewKey for |clipping_window_|. BUG=151356 BUG=282463 BUG=308075 TEST=Confirmed the fast path and gravity works in conjunction with scroll end effect CL. Added and updated unit tests. Ran ash_unittests and views_unittests locally under headchecker. Ran ash_unittests and views_unittests locally under ASAN. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=231027

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fixed outstanding issues from original CL #

Total comments: 6

Patch Set 3 : Incorporated xiyuan's CL #27768003 #

Patch Set 4 : Removed bits from another CL that accidentally were included in this branch #

Patch Set 5 : Added test and cleaned up stacking #

Patch Set 6 : Minor cleanup #

Total comments: 9

Patch Set 7 : Cleanup and added ClippingWindowObserver #

Patch Set 8 : Fixing compile failure on the bots #

Unified diffs Side-by-side diffs Delta from patch set Stats (+560 lines, -39 lines) Patch
M ui/views/controls/native/native_view_host.h View 3 chunks +53 lines, -1 line 0 comments Download
M ui/views/controls/native/native_view_host.cc View 3 chunks +53 lines, -4 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura.h View 1 2 3 4 5 6 7 4 chunks +52 lines, -1 line 0 comments Download
M ui/views/controls/native/native_view_host_aura.cc View 1 2 3 4 5 6 7 4 chunks +141 lines, -19 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura_unittest.cc View 1 2 3 4 5 6 5 chunks +220 lines, -2 lines 0 comments Download
M ui/views/controls/native/native_view_host_unittest.cc View 1 2 chunks +13 lines, -0 lines 0 comments Download
M ui/views/controls/native/native_view_host_win.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/native/native_view_host_win.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M ui/views/controls/native/native_view_host_wrapper.h View 2 chunks +11 lines, -6 lines 0 comments Download
M ui/views/controls/webview/webview.h View 3 chunks +6 lines, -2 lines 0 comments Download
M ui/views/controls/webview/webview.cc View 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
rharrison
PTAL, I have resolved the issues that led to this CL being reverted. The initial ...
7 years, 2 months ago (2013-10-22 17:53:29 UTC) #1
sky
https://codereview.chromium.org/30993004/diff/1/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/30993004/diff/1/ui/views/controls/native/native_view_host_aura.cc#newcode21 ui/views/controls/native/native_view_host_aura.cc:21: clipping_window_.SetTransparent(true); What necessitated all these changes? https://codereview.chromium.org/30993004/diff/40001/chrome/browser/ui/views/find_bar_host.cc File chrome/browser/ui/views/find_bar_host.cc ...
7 years, 2 months ago (2013-10-22 19:57:32 UTC) #2
xiyuan
https://codereview.chromium.org/30993004/diff/1/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/30993004/diff/1/ui/views/controls/native/native_view_host_aura.cc#newcode21 ui/views/controls/native/native_view_host_aura.cc:21: clipping_window_.SetTransparent(true); On 2013/10/22 19:57:32, sky wrote: > What necessitated ...
7 years, 2 months ago (2013-10-22 20:12:46 UTC) #3
rharrison
https://codereview.chromium.org/30993004/diff/40001/chrome/browser/ui/views/find_bar_host.cc File chrome/browser/ui/views/find_bar_host.cc (right): https://codereview.chromium.org/30993004/diff/40001/chrome/browser/ui/views/find_bar_host.cc#newcode43 chrome/browser/ui/views/find_bar_host.cc:43: host()->StackAtTop(); On 2013/10/22 19:57:32, sky wrote: > Why do ...
7 years, 2 months ago (2013-10-22 20:34:41 UTC) #4
xiyuan
Awesome. Thanks. LGTM from my side.
7 years, 2 months ago (2013-10-22 20:43:25 UTC) #5
sky
https://codereview.chromium.org/30993004/diff/1/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/30993004/diff/1/ui/views/controls/native/native_view_host_aura.cc#newcode21 ui/views/controls/native/native_view_host_aura.cc:21: clipping_window_.SetTransparent(true); On 2013/10/22 20:12:46, xiyuan wrote: > On 2013/10/22 ...
7 years, 2 months ago (2013-10-22 21:32:17 UTC) #6
rharrison
I have successfully reproduced the memory leak that caused the CL to be reverted and ...
7 years, 2 months ago (2013-10-24 14:40:15 UTC) #7
sky
https://codereview.chromium.org/30993004/diff/390001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/30993004/diff/390001/ui/views/controls/native/native_view_host_aura.cc#newcode48 ui/views/controls/native/native_view_host_aura.cc:48: RemoveClippingWindow(); If destroyed is true, I Don't think we ...
7 years, 2 months ago (2013-10-24 18:16:50 UTC) #8
rharrison
https://codereview.chromium.org/30993004/diff/390001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/30993004/diff/390001/ui/views/controls/native/native_view_host_aura.cc#newcode48 ui/views/controls/native/native_view_host_aura.cc:48: RemoveClippingWindow(); On 2013/10/24 18:16:50, sky wrote: > If destroyed ...
7 years, 2 months ago (2013-10-24 19:28:17 UTC) #9
sky
LGTM
7 years, 2 months ago (2013-10-24 20:47:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rharrison@chromium.org/30993004/440001
7 years, 2 months ago (2013-10-24 22:06:37 UTC) #11
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 2 months ago (2013-10-24 22:23:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rharrison@chromium.org/30993004/700001
7 years, 1 month ago (2013-10-25 13:21:51 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-10-25 15:59:45 UTC) #14
Message was sent while issue was closed.
Change committed as 231027

Powered by Google App Engine
This is Rietveld 408576698