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

Issue 48113013: Re-Reland: Implement features in NativeViewHostAura for scroll end effect

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

Description

Re-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_|. https://codereview.chromium.org/48113014/ fixes the issues with not being able to drag apps. https://codereview.chromium.org/54623007/ will resolve issues with drop downs not locating correctly. BUG=151356 BUG=282463 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.

Patch Set 1 #

Patch Set 2 : Rebased CL #

Total comments: 4

Patch Set 3 : Responded to sadrul's nits #

Total comments: 18

Patch Set 4 : Responded to sky's comments #

Total comments: 2

Patch Set 5 : Moved ownership of clipping_window_ solely into NHVA #

Total comments: 5

Patch Set 6 : Fixed issues that sky@ caught #

Unified diffs Side-by-side diffs Delta from patch set Stats (+524 lines, -41 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 1 2 3 4 5 3 chunks +53 lines, -4 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura.h View 1 2 3 4 3 chunks +48 lines, -1 line 0 comments Download
M ui/views/controls/native/native_view_host_aura.cc View 1 2 3 4 5 5 chunks +109 lines, -21 lines 0 comments Download
M ui/views/controls/native/native_view_host_aura_unittest.cc View 5 chunks +220 lines, -2 lines 0 comments Download
M ui/views/controls/native/native_view_host_unittest.cc View 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 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 13 (0 generated)
rharrison
This is a re-based version of the previous reverted CL. The bugs that caused the ...
7 years, 1 month ago (2013-11-18 21:22:43 UTC) #1
sadrul
A couple of nits, a question. Otherwise, lgtm! https://codereview.chromium.org/48113013/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/48113013/diff/20001/ui/views/controls/native/native_view_host_aura.cc#newcode85 ui/views/controls/native/native_view_host_aura.cc:85: } ...
7 years, 1 month ago (2013-11-19 05:51:29 UTC) #2
rharrison
https://codereview.chromium.org/48113013/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/48113013/diff/20001/ui/views/controls/native/native_view_host_aura.cc#newcode85 ui/views/controls/native/native_view_host_aura.cc:85: } On 2013/11/19 05:51:30, sadrul wrote: > Add a ...
7 years, 1 month ago (2013-11-19 16:51:21 UTC) #3
sky
https://codereview.chromium.org/48113013/diff/250001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (left): https://codereview.chromium.org/48113013/diff/250001/ui/views/controls/native/native_view_host_aura.cc#oldcode39 ui/views/controls/native/native_view_host_aura.cc:39: host_->native_view()->RemoveObserver(this); nit: unless there is a compelling reason, keep ...
7 years, 1 month ago (2013-11-19 21:00:08 UTC) #4
sky
Also, did you add unit test coverage for the reasons for the revert?
7 years, 1 month ago (2013-11-19 21:00:26 UTC) #5
rharrison
I have been able to reproduce the drop down bug that was one of the ...
7 years, 1 month ago (2013-11-20 15:50:12 UTC) #6
sky
https://codereview.chromium.org/48113013/diff/530001/ui/views/controls/native/native_view_host_aura.h File ui/views/controls/native/native_view_host_aura.h (right): https://codereview.chromium.org/48113013/diff/530001/ui/views/controls/native/native_view_host_aura.h#newcode22 ui/views/controls/native/native_view_host_aura.h:22: // the window hierarchy is not owned by the ...
7 years, 1 month ago (2013-11-20 21:10:33 UTC) #7
rharrison
I will add jam@ for the content/ change once I have finished with the preceding ...
7 years, 1 month ago (2013-11-21 18:38:00 UTC) #8
sky
https://codereview.chromium.org/48113013/diff/580001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/48113013/diff/580001/ui/views/controls/native/native_view_host_aura.cc#newcode24 ui/views/controls/native/native_view_host_aura.cc:24: if (clipping_window_) Don't you need to destroy clipping_window_ now? ...
7 years, 1 month ago (2013-11-21 23:15:13 UTC) #9
rharrison
https://codereview.chromium.org/48113013/diff/580001/ui/views/controls/native/native_view_host_aura.cc File ui/views/controls/native/native_view_host_aura.cc (right): https://codereview.chromium.org/48113013/diff/580001/ui/views/controls/native/native_view_host_aura.cc#newcode24 ui/views/controls/native/native_view_host_aura.cc:24: if (clipping_window_) On 2013/11/21 23:15:14, sky wrote: > Don't ...
7 years ago (2013-11-25 20:46:17 UTC) #10
sky
LGTM
7 years ago (2013-11-25 21:47:51 UTC) #11
rharrison
I am going to be on leave/vacation for December while I work on my thesis ...
7 years ago (2013-11-29 15:54:54 UTC) #12
sky
7 years ago (2013-12-02 21:35:22 UTC) #13
Again, -sky on this one.

Powered by Google App Engine
This is Rietveld 408576698