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

Side by Side Diff: cc/trees/layer_tree_host_impl.cc

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add zoomed page click test. Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/trees/layer_tree_host_impl.h" 5 #include "cc/trees/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 3087 matching lines...) Expand 10 before | Expand all | Expand 10 after
3098 gfx::ScrollOffset next_scroll = gfx::ScrollOffset( 3098 gfx::ScrollOffset next_scroll = gfx::ScrollOffset(
3099 page_scale_animation_->ScrollOffsetAtTime(monotonic_time)); 3099 page_scale_animation_->ScrollOffsetAtTime(monotonic_time));
3100 3100
3101 ScrollViewportInnerFirst(next_scroll.DeltaFrom(scroll_total)); 3101 ScrollViewportInnerFirst(next_scroll.DeltaFrom(scroll_total));
3102 SetNeedsRedraw(); 3102 SetNeedsRedraw();
3103 3103
3104 if (page_scale_animation_->IsAnimationCompleteAtTime(monotonic_time)) { 3104 if (page_scale_animation_->IsAnimationCompleteAtTime(monotonic_time)) {
3105 page_scale_animation_ = nullptr; 3105 page_scale_animation_ = nullptr;
3106 client_->SetNeedsCommitOnImplThread(); 3106 client_->SetNeedsCommitOnImplThread();
3107 client_->RenewTreePriority(); 3107 client_->RenewTreePriority();
3108 client_->DidCompletePageScaleAnimationOnImplThread();
3108 } else { 3109 } else {
3109 SetNeedsAnimate(); 3110 SetNeedsAnimate();
3110 } 3111 }
3111 } 3112 }
3112 3113
3113 void LayerTreeHostImpl::AnimateTopControls(base::TimeTicks time) { 3114 void LayerTreeHostImpl::AnimateTopControls(base::TimeTicks time) {
3114 if (!top_controls_manager_ || !top_controls_manager_->animation()) 3115 if (!top_controls_manager_ || !top_controls_manager_->animation())
3115 return; 3116 return;
3116 3117
3117 gfx::Vector2dF scroll = top_controls_manager_->Animate(time); 3118 gfx::Vector2dF scroll = top_controls_manager_->Animate(time);
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
3507 } 3508 }
3508 3509
3509 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { 3510 void LayerTreeHostImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) {
3510 std::vector<PictureLayerImpl*>::iterator it = 3511 std::vector<PictureLayerImpl*>::iterator it =
3511 std::find(picture_layers_.begin(), picture_layers_.end(), layer); 3512 std::find(picture_layers_.begin(), picture_layers_.end(), layer);
3512 DCHECK(it != picture_layers_.end()); 3513 DCHECK(it != picture_layers_.end());
3513 picture_layers_.erase(it); 3514 picture_layers_.erase(it);
3514 } 3515 }
3515 3516
3516 } // namespace cc 3517 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698