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

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

Issue 10365007: ui: Move compositor/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix DEPS Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ash/wm/activation_controller.cc ('k') | ash/wm/base_layout_manager.cc » ('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" 13 #include "ui/aura/focus_manager.h"
14 #include "ui/aura/root_window.h" 14 #include "ui/aura/root_window.h"
15 #include "ui/aura/test/event_generator.h" 15 #include "ui/aura/test/event_generator.h"
16 #include "ui/aura/test/test_window_delegate.h" 16 #include "ui/aura/test/test_window_delegate.h"
17 #include "ui/aura/test/test_windows.h" 17 #include "ui/aura/test/test_windows.h"
18 #include "ui/gfx/compositor/layer.h" 18 #include "ui/compositor/layer.h"
19 19
20 #if defined(OS_WIN) 20 #if defined(OS_WIN)
21 // Windows headers define macros for these function names which screw with us. 21 // Windows headers define macros for these function names which screw with us.
22 #if defined(CreateWindow) 22 #if defined(CreateWindow)
23 #undef CreateWindow 23 #undef CreateWindow
24 #endif 24 #endif
25 #endif 25 #endif
26 26
27 namespace { 27 namespace {
28 28
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 scoped_ptr<aura::Window> w1(aura::test::CreateTestWindowWithDelegate( 460 scoped_ptr<aura::Window> w1(aura::test::CreateTestWindowWithDelegate(
461 &wd, -1, gfx::Rect(50, 50, 50, 50), NULL)); 461 &wd, -1, gfx::Rect(50, 50, 50, 50), NULL));
462 462
463 EXPECT_TRUE(wm::CanActivateWindow(w1.get())); 463 EXPECT_TRUE(wm::CanActivateWindow(w1.get()));
464 w1->layer()->SetVisible(false); 464 w1->layer()->SetVisible(false);
465 EXPECT_TRUE(wm::CanActivateWindow(w1.get())); 465 EXPECT_TRUE(wm::CanActivateWindow(w1.get()));
466 } 466 }
467 467
468 } // namespace test 468 } // namespace test
469 } // namespace ash 469 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/activation_controller.cc ('k') | ash/wm/base_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698