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

Side by Side Diff: cc/test/layer_tree_test.cc

Issue 715733002: [Android] Show autofill popup after animation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase on top of https://codereview.chromium.org/826713002/ Created 5 years, 12 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/test/layer_tree_test.h" 5 #include "cc/test/layer_tree_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "cc/animation/animation.h" 8 #include "cc/animation/animation.h"
9 #include "cc/animation/animation_registrar.h" 9 #include "cc/animation/animation_registrar.h"
10 #include "cc/animation/layer_animation_controller.h" 10 #include "cc/animation/layer_animation_controller.h"
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 test_hooks_->DidCommitAndDrawFrame(); 357 test_hooks_->DidCommitAndDrawFrame();
358 } 358 }
359 359
360 void DidCompleteSwapBuffers() override { 360 void DidCompleteSwapBuffers() override {
361 test_hooks_->DidCompleteSwapBuffers(); 361 test_hooks_->DidCompleteSwapBuffers();
362 } 362 }
363 363
364 void DidPostSwapBuffers() override {} 364 void DidPostSwapBuffers() override {}
365 void DidAbortSwapBuffers() override {} 365 void DidAbortSwapBuffers() override {}
366 void ScheduleComposite() override { test_hooks_->ScheduleComposite(); } 366 void ScheduleComposite() override { test_hooks_->ScheduleComposite(); }
367 void DidCompletePageScaleAnimation() override {}
367 368
368 private: 369 private:
369 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks) 370 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks)
370 : test_hooks_(test_hooks) {} 371 : test_hooks_(test_hooks) {}
371 372
372 TestHooks* test_hooks_; 373 TestHooks* test_hooks_;
373 }; 374 };
374 375
375 // Adapts LayerTreeHost for test. Injects LayerTreeHostImplForTesting. 376 // Adapts LayerTreeHost for test. Injects LayerTreeHostImplForTesting.
376 class LayerTreeHostForTesting : public LayerTreeHost { 377 class LayerTreeHostForTesting : public LayerTreeHost {
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 return -1; 784 return -1;
784 } 785 }
785 786
786 void LayerTreeTest::DestroyLayerTreeHost() { 787 void LayerTreeTest::DestroyLayerTreeHost() {
787 if (layer_tree_host_ && layer_tree_host_->root_layer()) 788 if (layer_tree_host_ && layer_tree_host_->root_layer())
788 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL); 789 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL);
789 layer_tree_host_ = nullptr; 790 layer_tree_host_ = nullptr;
790 } 791 }
791 792
792 } // namespace cc 793 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698