Chromium Code Reviews

Side by Side Diff: ui/aura/test/aura_test_helper.h

Issue 250113002: Move DefaultActivationClient to wm/core (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « ui/aura/client/default_activation_client.cc ('k') | ui/aura/test/aura_test_helper.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 #ifndef UI_AURA_TEST_AURA_TEST_HELPER_H_ 5 #ifndef UI_AURA_TEST_AURA_TEST_HELPER_H_
6 #define UI_AURA_TEST_AURA_TEST_HELPER_H_ 6 #define UI_AURA_TEST_AURA_TEST_HELPER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
11 #include "ui/aura/window_tree_host.h" 11 #include "ui/aura/window_tree_host.h"
12 12
13 namespace base { 13 namespace base {
14 class MessageLoopForUI; 14 class MessageLoopForUI;
15 } 15 }
16 16
17 namespace ui { 17 namespace ui {
18 class InputMethod; 18 class InputMethod;
19 class ScopedAnimationDurationScaleMode; 19 class ScopedAnimationDurationScaleMode;
20 } 20 }
21 21
22 namespace aura { 22 namespace aura {
23 class TestScreen; 23 class TestScreen;
24 namespace client { 24 namespace client {
25 class DefaultActivationClient;
26 class DefaultCaptureClient; 25 class DefaultCaptureClient;
27 class FocusClient; 26 class FocusClient;
28 } 27 }
29 namespace test { 28 namespace test {
30 class TestWindowTreeClient; 29 class TestWindowTreeClient;
31 30
32 // A helper class owned by tests that does common initialization required for 31 // A helper class owned by tests that does common initialization required for
33 // Aura use. This class creates a root window with clients and other objects 32 // Aura use. This class creates a root window with clients and other objects
34 // that are necessary to run test on Aura. 33 // that are necessary to run test on Aura.
35 class AuraTestHelper { 34 class AuraTestHelper {
(...skipping 17 matching lines...)
53 52
54 TestScreen* test_screen() { return test_screen_.get(); } 53 TestScreen* test_screen() { return test_screen_.get(); }
55 54
56 private: 55 private:
57 base::MessageLoopForUI* message_loop_; 56 base::MessageLoopForUI* message_loop_;
58 bool setup_called_; 57 bool setup_called_;
59 bool teardown_called_; 58 bool teardown_called_;
60 bool owns_host_; 59 bool owns_host_;
61 scoped_ptr<WindowTreeHost> host_; 60 scoped_ptr<WindowTreeHost> host_;
62 scoped_ptr<TestWindowTreeClient> stacking_client_; 61 scoped_ptr<TestWindowTreeClient> stacking_client_;
63 scoped_ptr<client::DefaultActivationClient> activation_client_;
64 scoped_ptr<client::DefaultCaptureClient> capture_client_; 62 scoped_ptr<client::DefaultCaptureClient> capture_client_;
65 scoped_ptr<ui::InputMethod> test_input_method_; 63 scoped_ptr<ui::InputMethod> test_input_method_;
66 scoped_ptr<client::FocusClient> focus_client_; 64 scoped_ptr<client::FocusClient> focus_client_;
67 scoped_ptr<TestScreen> test_screen_; 65 scoped_ptr<TestScreen> test_screen_;
68 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_; 66 scoped_ptr<ui::ScopedAnimationDurationScaleMode> zero_duration_mode_;
69 67
70 DISALLOW_COPY_AND_ASSIGN(AuraTestHelper); 68 DISALLOW_COPY_AND_ASSIGN(AuraTestHelper);
71 }; 69 };
72 70
73 } // namespace test 71 } // namespace test
74 } // namespace aura 72 } // namespace aura
75 73
76 #endif // UI_AURA_TEST_AURA_TEST_HELPER_H_ 74 #endif // UI_AURA_TEST_AURA_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « ui/aura/client/default_activation_client.cc ('k') | ui/aura/test/aura_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine