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

Side by Side Diff: ash/wm/activation_controller_unittest.cc

Issue 11299219: Rework FocusManager as FocusClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/activation_controller.cc ('k') | ash/wm/app_list_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/wm/activation_controller.h" 5 #include "ash/wm/activation_controller.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "ash/shell_window_ids.h" 8 #include "ash/shell_window_ids.h"
9 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
10 #include "ash/test/test_activation_delegate.h" 10 #include "ash/test/test_activation_delegate.h"
11 #include "ash/wm/window_util.h" 11 #include "ash/wm/window_util.h"
12 #include "ui/aura/client/aura_constants.h" 12 #include "ui/aura/client/aura_constants.h"
13 #include "ui/aura/focus_manager.h"
14 #include "ui/aura/root_window.h" 13 #include "ui/aura/root_window.h"
15 #include "ui/aura/test/event_generator.h" 14 #include "ui/aura/test/event_generator.h"
16 #include "ui/aura/test/test_window_delegate.h" 15 #include "ui/aura/test/test_window_delegate.h"
17 #include "ui/aura/test/test_windows.h" 16 #include "ui/aura/test/test_windows.h"
18 #include "ui/compositor/layer.h" 17 #include "ui/compositor/layer.h"
19 18
20 #if defined(OS_WIN) 19 #if defined(OS_WIN)
21 // Windows headers define macros for these function names which screw with us. 20 // Windows headers define macros for these function names which screw with us.
22 #if defined(CreateWindow) 21 #if defined(CreateWindow)
23 #undef CreateWindow 22 #undef CreateWindow
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 scoped_ptr<aura::Window> w1(aura::test::CreateTestWindowWithDelegate( 510 scoped_ptr<aura::Window> w1(aura::test::CreateTestWindowWithDelegate(
512 &wd, -1, gfx::Rect(50, 50, 50, 50), lock_container)); 511 &wd, -1, gfx::Rect(50, 50, 50, 50), lock_container));
513 512
514 lock_container->layer()->SetVisible(false); 513 lock_container->layer()->SetVisible(false);
515 w1->Focus(); 514 w1->Focus();
516 EXPECT_TRUE(w1->HasFocus()); 515 EXPECT_TRUE(w1->HasFocus());
517 } 516 }
518 517
519 } // namespace test 518 } // namespace test
520 } // namespace ash 519 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/activation_controller.cc ('k') | ash/wm/app_list_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698