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

Unified Diff: ash/wm/overview/cleanup_animation_observer_unittest.cc

Issue 2908793002: [mus+ash] Removes WmWindow from ash/wm/overview and ash/wm/workspace (Closed)
Patch Set: Created 3 years, 7 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
« no previous file with comments | « ash/shell_port.h ('k') | ash/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/cleanup_animation_observer_unittest.cc
diff --git a/ash/wm/overview/cleanup_animation_observer_unittest.cc b/ash/wm/overview/cleanup_animation_observer_unittest.cc
index 1cfc762bd1846eb7b25a66a179a8127b6fffde75..b0542b5cb99788045575f9cada11b2a2eb329675 100644
--- a/ash/wm/overview/cleanup_animation_observer_unittest.cc
+++ b/ash/wm/overview/cleanup_animation_observer_unittest.cc
@@ -8,7 +8,7 @@
#include "ash/test/ash_test_base.h"
#include "ash/wm/overview/window_selector_delegate.h"
-#include "ash/wm_window.h"
+#include "ui/aura/window.h"
#include "ui/compositor/layer_animation_observer.h"
#include "ui/compositor/scoped_animation_duration_scale_mode.h"
#include "ui/compositor/scoped_layer_animation_settings.h"
@@ -124,10 +124,10 @@ TEST_F(CleanupAnimationObserverTest, CreateAnimateComplete) {
TestWindowSelectorDelegate delegate;
std::unique_ptr<views::Widget> widget(
CreateWindowWidget(gfx::Rect(0, 0, 40, 40)));
- WmWindow* widget_window = WmWindow::Get(widget->GetNativeWindow());
+ aura::Window* widget_window = widget->GetNativeWindow();
{
ui::ScopedLayerAnimationSettings animation_settings(
- widget_window->GetLayer()->GetAnimator());
+ widget_window->layer()->GetAnimator());
animation_settings.SetTransitionDuration(
base::TimeDelta::FromMilliseconds(1000));
animation_settings.SetPreemptionStrategy(
@@ -155,14 +155,14 @@ TEST_F(CleanupAnimationObserverTest, CreateAnimateShutdown) {
TestWindowSelectorDelegate delegate;
std::unique_ptr<views::Widget> widget(
CreateWindowWidget(gfx::Rect(0, 0, 40, 40)));
- WmWindow* widget_window = WmWindow::Get(widget->GetNativeWindow());
+ aura::Window* widget_window = widget->GetNativeWindow();
{
// Normal animations for tests have ZERO_DURATION, make sure we are actually
// animating the movement.
ui::ScopedAnimationDurationScaleMode animation_scale_mode(
ui::ScopedAnimationDurationScaleMode::NON_ZERO_DURATION);
ui::ScopedLayerAnimationSettings animation_settings(
- widget_window->GetLayer()->GetAnimator());
+ widget_window->layer()->GetAnimator());
animation_settings.SetTransitionDuration(
base::TimeDelta::FromMilliseconds(1000));
animation_settings.SetPreemptionStrategy(
« no previous file with comments | « ash/shell_port.h ('k') | ash/wm/overview/scoped_transform_overview_window.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698