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

Unified Diff: ash/wm/custom_frame_view_ash_unittest.cc

Issue 11299219: Rework FocusManager as FocusClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | ash/wm/maximize_bubble_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/custom_frame_view_ash_unittest.cc
===================================================================
--- ash/wm/custom_frame_view_ash_unittest.cc (revision 169818)
+++ ash/wm/custom_frame_view_ash_unittest.cc (working copy)
@@ -13,7 +13,7 @@
#include "base/command_line.h"
#include "ui/aura/aura_switches.h"
#include "ui/aura/client/aura_constants.h"
-#include "ui/aura/focus_manager.h"
+#include "ui/aura/client/focus_client.h"
#include "ui/aura/test/event_generator.h"
#include "ui/aura/root_window.h"
#include "ui/aura/window.h"
@@ -448,14 +448,15 @@
EXPECT_FALSE(maximize_button->maximizer());
EXPECT_TRUE(ash::wm::IsWindowNormal(window));
- aura::Window* active = window->GetFocusManager()->GetFocusedWindow();
+ aura::Window* active =
+ aura::client::GetFocusClient(window)->GetFocusedWindow();
// Move the mouse cursor over the button to bring up the maximizer bubble.
generator.MoveMouseTo(button_pos);
EXPECT_TRUE(maximize_button->maximizer());
// Check that the focused window is still the same.
- EXPECT_EQ(active, window->GetFocusManager()->GetFocusedWindow());
+ EXPECT_EQ(active, aura::client::GetFocusClient(window)->GetFocusedWindow());
}
TEST_F(CustomFrameViewAshTest, MaximizeTap) {
« no previous file with comments | « ash/wm/app_list_controller.cc ('k') | ash/wm/maximize_bubble_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698