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

Issue 814083004: Notify main-thread of top controls state changes (Closed)

Created:
5 years, 11 months ago by majidvp
Modified:
5 years, 10 months ago
CC:
bokan, cc-bugs_chromium.org, chromium-reviews, Rick Byers
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Notify main-thread of top controls state/height changes instead of CC. Compositor receives these values from blink via WebLayerTreeView API. This way the main-thread can show/hide top controls without violating its constraints and it has the option in future to change these directly without notifying CC. Top controls is self-animated to completion is also triggered when a main- thread fling ends. Depends on CL: http://crrev.com/893683003 BUG=333143 Committed: https://crrev.com/fb80e434a19801b56124a8175bc03b9844f87db5 Cr-Commit-Position: refs/heads/master@{#317581}

Patch Set 1 : End top controls animation ends at main-thread fling end #

Patch Set 2 : Pass TopControlsState to webwidget #

Total comments: 5

Patch Set 3 : rebase #

Patch Set 4 : Address review feedback #

Patch Set 5 : Add test and new setHeight method #

Patch Set 6 : Remove unused functions #

Total comments: 2

Patch Set 7 : rebase #

Patch Set 8 : Fix compile error after rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -84 lines) Patch
M cc/input/top_controls_manager.h View 1 2 3 3 chunks +8 lines, -2 lines 0 comments Download
M cc/input/top_controls_manager.cc View 1 2 3 6 chunks +18 lines, -12 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 1 chunk +4 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.h View 1 2 3 4 5 6 2 chunks +5 lines, -6 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 4 chunks +28 lines, -17 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_view_impl_android.cc View 1 2 3 2 chunks +33 lines, -31 lines 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 21 (8 generated)
majidvp
5 years, 10 months ago (2015-02-11 22:58:35 UTC) #2
aelias_OOO_until_Jul13
https://codereview.chromium.org/814083004/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/814083004/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode938 cc/trees/layer_tree_host_impl.cc:938: ScrollEnd(); Not sure we want the "ClearCurrentlyScrollingLayer();" behavior of ...
5 years, 10 months ago (2015-02-12 00:45:29 UTC) #3
majidvp
https://codereview.chromium.org/814083004/diff/20001/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/814083004/diff/20001/cc/trees/layer_tree_host_impl.cc#newcode938 cc/trees/layer_tree_host_impl.cc:938: ScrollEnd(); On 2015/02/12 00:45:29, aelias wrote: > Not sure ...
5 years, 10 months ago (2015-02-12 13:51:48 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/814083004/diff/20001/content/renderer/render_view_impl_android.cc File content/renderer/render_view_impl_android.cc (right): https://codereview.chromium.org/814083004/diff/20001/content/renderer/render_view_impl_android.cc#newcode64 content/renderer/render_view_impl_android.cc:64: compositor_->UpdateTopControlsState(ContentToCc(constraints), On 2015/02/12 13:51:48, majidvp wrote: > That sounds ...
5 years, 10 months ago (2015-02-12 19:24:55 UTC) #5
majidvp
On 2015/02/12 19:24:55, aelias wrote: > https://codereview.chromium.org/814083004/diff/20001/content/renderer/render_view_impl_android.cc > File content/renderer/render_view_impl_android.cc (right): > > https://codereview.chromium.org/814083004/diff/20001/content/renderer/render_view_impl_android.cc#newcode64 > ...
5 years, 10 months ago (2015-02-12 22:55:33 UTC) #7
aelias_OOO_until_Jul13
lgtm, modulo please add a unit test along the lines of LayerTreeHostImplWithTopControlsTest.TopControlsAnimationAfterScroll that main-thread fling ...
5 years, 10 months ago (2015-02-13 00:58:47 UTC) #8
majidvp
+sievers for content/renderer owners review.
5 years, 10 months ago (2015-02-19 17:32:22 UTC) #11
no sievers
lgtm https://codereview.chromium.org/814083004/diff/120001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/814083004/diff/120001/content/renderer/gpu/render_widget_compositor.cc#newcode167 content/renderer/gpu/render_widget_compositor.cc:167: static cc::TopControlsState ConvertTopControlsState( nit: don't need static here ...
5 years, 10 months ago (2015-02-19 19:51:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/814083004/160001
5 years, 10 months ago (2015-02-22 01:43:49 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/61317)
5 years, 10 months ago (2015-02-22 01:46:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/814083004/160001
5 years, 10 months ago (2015-02-23 14:15:05 UTC) #19
commit-bot: I haz the power
Committed patchset #8 (id:160001)
5 years, 10 months ago (2015-02-23 14:15:58 UTC) #20
commit-bot: I haz the power
5 years, 10 months ago (2015-02-23 14:16:37 UTC) #21
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/fb80e434a19801b56124a8175bc03b9844f87db5
Cr-Commit-Position: refs/heads/master@{#317581}

Powered by Google App Engine
This is Rietveld 408576698