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

Issue 886763004: DO NOT MERGE: Fix top_controls_manager to stay hidden (Closed)

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

Description

Fix top_controls_manager to stay hidden Previously, top controls could show as height grows even if it was hidden. But it should respect the permitted state and stay hidden. BUG=430635

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -2 lines) Patch
M cc/input/top_controls_manager.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/input/top_controls_manager_unittest.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Changwan Ryu
This is required to refactor webapp activity using compositor view, as webapp should allow top ...
5 years, 10 months ago (2015-02-04 01:37:10 UTC) #2
aelias_OOO_until_Jul13
Hmm, I believe the reason the height change caused this bug is because of the ...
5 years, 10 months ago (2015-02-04 02:21:22 UTC) #3
aelias_OOO_until_Jul13
I realized the proportionality algorithm I described won't work if the top controls are going ...
5 years, 10 months ago (2015-02-04 03:13:45 UTC) #4
aelias_OOO_until_Jul13
I'm currently refactoring some top controls stuff anyway so let me prepare some patches myself ...
5 years, 10 months ago (2015-02-04 03:42:09 UTC) #5
Changwan Ryu
On 2015/02/04 03:42:09, aelias wrote: > I'm currently refactoring some top controls stuff anyway so ...
5 years, 10 months ago (2015-02-04 05:03:22 UTC) #6
aelias_OOO_until_Jul13
On 2015/02/04 at 05:03:22, changwan wrote: > On 2015/02/04 03:42:09, aelias wrote: > > I'm ...
5 years, 10 months ago (2015-02-04 05:21:33 UTC) #7
Changwan Ryu
5 years, 10 months ago (2015-02-04 05:43:03 UTC) #8
On 2015/02/04 05:21:33, aelias wrote:
> On 2015/02/04 at 05:03:22, changwan wrote:
> > On 2015/02/04 03:42:09, aelias wrote:
> > > I'm currently refactoring some top controls stuff anyway so let me prepare
> some
> > > patches myself implementing what I described.
> > 
> > I thought of this more of a general inconsistency in the top controls
manager
> itself, though it can also be resolved by touching upper level code. One thing
> clear is that top controls SHOULD NOT be shown when the height grows in
> HIDDEN-only state while it SHOULD be shown in SHOWN-only state, which I am not
> sure how the mentioned algorithm can address.
> 
> I think it would be OK as such for the top controls manager to prevent the
> offset from ever being set to an invalid value when in HIDDEN-only or
SHOWN-only
> mode.  But that wouldn't help when the top controls are free to move around
> freely -- in that case, we still want to maintain the offset in its current
> state (be that hidden or shown).  And because there's nothing outside
> TopControlsManager actively changing the top controls offset, maintaining the
> current state is sufficient to solve the entire problem currently. 
> 
> > 
> > Does top_controls_height_delta part have to do with the way I changed the
> order of the function calls? If so, I wonder if the refactoring can be done
> separately on top of this.
> 
> No, that's unrelated -- the ordering sensitivity is due to the clamp to height
> at the beginning of TopControlsManager::SetControlsTopOffset.

Talked to aelias@ offline. I'll just wait for his patch.

Powered by Google App Engine
This is Rietveld 408576698