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

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: Created 6 years, 1 month 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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 test_hooks_->DidCommitAndDrawFrame(); 392 test_hooks_->DidCommitAndDrawFrame();
393 } 393 }
394 394
395 void DidCompleteSwapBuffers() override { 395 void DidCompleteSwapBuffers() override {
396 test_hooks_->DidCompleteSwapBuffers(); 396 test_hooks_->DidCompleteSwapBuffers();
397 } 397 }
398 398
399 void DidPostSwapBuffers() override {} 399 void DidPostSwapBuffers() override {}
400 void DidAbortSwapBuffers() override {} 400 void DidAbortSwapBuffers() override {}
401 void ScheduleComposite() override { test_hooks_->ScheduleComposite(); } 401 void ScheduleComposite() override { test_hooks_->ScheduleComposite(); }
402 void DidCompletePageScaleAnimation() override {}
402 403
403 private: 404 private:
404 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks) 405 explicit LayerTreeHostClientForTesting(TestHooks* test_hooks)
405 : test_hooks_(test_hooks) {} 406 : test_hooks_(test_hooks) {}
406 407
407 TestHooks* test_hooks_; 408 TestHooks* test_hooks_;
408 }; 409 };
409 410
410 // Adapts LayerTreeHost for test. Injects LayerTreeHostImplForTesting. 411 // Adapts LayerTreeHost for test. Injects LayerTreeHostImplForTesting.
411 class LayerTreeHostForTesting : public LayerTreeHost { 412 class LayerTreeHostForTesting : public LayerTreeHost {
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 return -1; 821 return -1;
821 } 822 }
822 823
823 void LayerTreeTest::DestroyLayerTreeHost() { 824 void LayerTreeTest::DestroyLayerTreeHost() {
824 if (layer_tree_host_ && layer_tree_host_->root_layer()) 825 if (layer_tree_host_ && layer_tree_host_->root_layer())
825 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL); 826 layer_tree_host_->root_layer()->SetLayerTreeHost(NULL);
826 layer_tree_host_ = nullptr; 827 layer_tree_host_ = nullptr;
827 } 828 }
828 829
829 } // namespace cc 830 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698