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

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

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hide popup when resizing the viewport resulted in movement of the focused element. Created 6 years 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 <cmath> 8 #include <cmath>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 } 148 }
149 bool IsInsideDraw() override { return false; } 149 bool IsInsideDraw() override { return false; }
150 void RenewTreePriority() override {} 150 void RenewTreePriority() override {}
151 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade, 151 void PostDelayedScrollbarFadeOnImplThread(const base::Closure& start_fade,
152 base::TimeDelta delay) override { 152 base::TimeDelta delay) override {
153 scrollbar_fade_start_ = start_fade; 153 scrollbar_fade_start_ = start_fade;
154 requested_scrollbar_animation_delay_ = delay; 154 requested_scrollbar_animation_delay_ = delay;
155 } 155 }
156 void DidActivateSyncTree() override {} 156 void DidActivateSyncTree() override {}
157 void DidPrepareTiles() override {} 157 void DidPrepareTiles() override {}
158 void DidCompletePageScaleAnimationOnImplThread() override {}
158 159
159 void set_reduce_memory_result(bool reduce_memory_result) { 160 void set_reduce_memory_result(bool reduce_memory_result) {
160 reduce_memory_result_ = reduce_memory_result; 161 reduce_memory_result_ = reduce_memory_result;
161 } 162 }
162 163
163 virtual bool CreateHostImpl(const LayerTreeSettings& settings, 164 virtual bool CreateHostImpl(const LayerTreeSettings& settings,
164 scoped_ptr<OutputSurface> output_surface) { 165 scoped_ptr<OutputSurface> output_surface) {
165 host_impl_ = LayerTreeHostImpl::Create(settings, 166 host_impl_ = LayerTreeHostImpl::Create(settings,
166 this, 167 this,
167 &proxy_, 168 &proxy_,
(...skipping 7836 matching lines...) Expand 10 before | Expand all | Expand 10 after
8004 // surface. 8005 // surface.
8005 EXPECT_EQ(0, num_lost_surfaces_); 8006 EXPECT_EQ(0, num_lost_surfaces_);
8006 host_impl_->DidLoseOutputSurface(); 8007 host_impl_->DidLoseOutputSurface();
8007 EXPECT_EQ(1, num_lost_surfaces_); 8008 EXPECT_EQ(1, num_lost_surfaces_);
8008 host_impl_->DidLoseOutputSurface(); 8009 host_impl_->DidLoseOutputSurface();
8009 EXPECT_LE(1, num_lost_surfaces_); 8010 EXPECT_LE(1, num_lost_surfaces_);
8010 } 8011 }
8011 8012
8012 } // namespace 8013 } // namespace
8013 } // namespace cc 8014 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698