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

Unified Diff: ui/aura_shell/stacking_controller_unittest.cc

Issue 8771015: Rename Desktop->RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura_shell/stacking_controller.cc ('k') | ui/aura_shell/status_area_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/stacking_controller_unittest.cc
===================================================================
--- ui/aura_shell/stacking_controller_unittest.cc (revision 113260)
+++ ui/aura_shell/stacking_controller_unittest.cc (working copy)
@@ -4,7 +4,7 @@
#include "ui/aura_shell/stacking_controller.h"
-#include "ui/aura/desktop.h"
+#include "ui/aura/root_window.h"
#include "ui/aura/test/event_generator.h"
#include "ui/aura/test/test_windows.h"
#include "ui/aura/test/test_window_delegate.h"
@@ -25,7 +25,7 @@
&activate, 2, gfx::Rect(), NULL));
scoped_ptr<aura::Window> w3(aura::test::CreateTestWindowWithDelegate(
&non_activate, 3, gfx::Rect(), NULL));
- EXPECT_EQ(w2.get(), aura::Desktop::GetInstance()->stacking_client()->
+ EXPECT_EQ(w2.get(), aura::RootWindow::GetInstance()->stacking_client()->
GetTopmostWindowToActivate(NULL));
}
@@ -37,12 +37,12 @@
scoped_ptr<aura::Window> w1(aura::test::CreateTestWindowWithDelegate(
&activate, 1, gfx::Rect(100, 100), NULL));
- EXPECT_EQ(NULL, aura::Desktop::GetInstance()->active_window());
+ EXPECT_EQ(NULL, aura::RootWindow::GetInstance()->active_window());
// Clicking on an activatable window activtes the window.
aura::test::EventGenerator generator(w1.get());
generator.ClickLeftButton();
- EXPECT_EQ(w1.get(), aura::Desktop::GetInstance()->active_window());
+ EXPECT_EQ(w1.get(), aura::RootWindow::GetInstance()->active_window());
// Creates a menu that covers the transient parent.
scoped_ptr<aura::Window> menu(aura::test::CreateTestWindowWithDelegateAndType(
@@ -52,7 +52,7 @@
// Clicking on a menu whose transient parent is active window shouldn't
// change the active window.
generator.ClickLeftButton();
- EXPECT_EQ(w1.get(), aura::Desktop::GetInstance()->active_window());
+ EXPECT_EQ(w1.get(), aura::RootWindow::GetInstance()->active_window());
}
} // namespace test
« no previous file with comments | « ui/aura_shell/stacking_controller.cc ('k') | ui/aura_shell/status_area_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698