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

Side by Side Diff: ui/views/corewm/shadow_controller_unittest.cc

Issue 174803002: Move root_window.* to window_event_dispatcher.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 10 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 | « ui/views/corewm/shadow_controller.cc ('k') | ui/views/corewm/tooltip_aura.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 "ui/views/corewm/shadow_controller.h" 5 #include "ui/views/corewm/shadow_controller.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/aura/client/activation_client.h" 11 #include "ui/aura/client/activation_client.h"
12 #include "ui/aura/client/window_tree_client.h" 12 #include "ui/aura/client/window_tree_client.h"
13 #include "ui/aura/root_window.h"
14 #include "ui/aura/test/aura_test_base.h" 13 #include "ui/aura/test/aura_test_base.h"
15 #include "ui/aura/window.h" 14 #include "ui/aura/window.h"
15 #include "ui/aura/window_event_dispatcher.h"
16 #include "ui/compositor/layer.h" 16 #include "ui/compositor/layer.h"
17 #include "ui/views/corewm/shadow.h" 17 #include "ui/views/corewm/shadow.h"
18 #include "ui/views/corewm/shadow_types.h" 18 #include "ui/views/corewm/shadow_types.h"
19 #include "ui/views/corewm/window_util.h" 19 #include "ui/views/corewm/window_util.h"
20 #include "ui/views/corewm/wm_state.h" 20 #include "ui/views/corewm/wm_state.h"
21 21
22 namespace views { 22 namespace views {
23 namespace corewm { 23 namespace corewm {
24 24
25 class ShadowControllerTest : public aura::test::AuraTestBase { 25 class ShadowControllerTest : public aura::test::AuraTestBase {
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 aura::client::SetHideOnDeactivate(window2.get(), true); 210 aura::client::SetHideOnDeactivate(window2.get(), true);
211 window2->Show(); 211 window2->Show();
212 ActivateWindow(window2.get()); 212 ActivateWindow(window2.get());
213 213
214 // window1 is now inactive, but its shadow should still appear active. 214 // window1 is now inactive, but its shadow should still appear active.
215 EXPECT_EQ(Shadow::STYLE_ACTIVE, shadow1->style()); 215 EXPECT_EQ(Shadow::STYLE_ACTIVE, shadow1->style());
216 } 216 }
217 217
218 } // namespace corewm 218 } // namespace corewm
219 } // namespace views 219 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/corewm/shadow_controller.cc ('k') | ui/views/corewm/tooltip_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698