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

Unified Diff: ash/system/overview/test/overview_button_tray_test_api.cc

Issue 2837773003: Flip the flag to enable smooth screen rotation by default. (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ash/system/overview/test/overview_button_tray_test_api.cc
diff --git a/ash/system/overview/test/overview_button_tray_test_api.cc b/ash/system/overview/test/overview_button_tray_test_api.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5eff4eaf4dc34c486f7fef68ccc68de899cda817
--- /dev/null
+++ b/ash/system/overview/test/overview_button_tray_test_api.cc
@@ -0,0 +1,21 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/system/overview/test/overview_button_tray_test_api.h"
+
+#include "ash/system/overview/overview_button_tray.h"
+#include "ui/compositor/layer_animator.h"
+
+namespace ash {
+namespace test {
+
+OverviewButtonTrayTestApi::OverviewButtonTrayTestApi(OverviewButtonTray* tray)
+ : tray_(tray) {}
+
+void OverviewButtonTrayTestApi::AbortAllAnimations() {
+ tray_->layer()->GetAnimator()->AbortAllAnimations();
+}
+
+} // namespace test
+} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698