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

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

Issue 16024014: Move DummyInputMethod into ui/base/ime/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | ui/base/ime/dummy_input_method.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 "ui/aura/test/aura_test_helper.h" 5 #include "ui/aura/test/aura_test_helper.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/run_loop.h" 8 #include "base/run_loop.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/default_capture_client.h" 10 #include "ui/aura/client/default_capture_client.h"
11 #include "ui/aura/client/focus_client.h" 11 #include "ui/aura/client/focus_client.h"
12 #include "ui/aura/env.h" 12 #include "ui/aura/env.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/test_activation_client.h" 15 #include "ui/aura/test/test_activation_client.h"
16 #include "ui/aura/test/test_screen.h" 16 #include "ui/aura/test/test_screen.h"
17 #include "ui/aura/test/test_stacking_client.h" 17 #include "ui/aura/test/test_stacking_client.h"
18 #include "ui/base/test/dummy_input_method.h" 18 #include "ui/base/ime/dummy_input_method.h"
19 #include "ui/compositor/layer_animator.h" 19 #include "ui/compositor/layer_animator.h"
20 #include "ui/compositor/scoped_animation_duration_scale_mode.h" 20 #include "ui/compositor/scoped_animation_duration_scale_mode.h"
21 #include "ui/gfx/screen.h" 21 #include "ui/gfx/screen.h"
22 22
23 #if defined(USE_X11) 23 #if defined(USE_X11)
24 #include "ui/aura/root_window_host_x11.h" 24 #include "ui/aura/root_window_host_x11.h"
25 #include "ui/base/x/x11_util.h" 25 #include "ui/base/x/x11_util.h"
26 #endif 26 #endif
27 27
28 namespace aura { 28 namespace aura {
(...skipping 26 matching lines...) Expand all
55 test_screen_.reset(TestScreen::Create()); 55 test_screen_.reset(TestScreen::Create());
56 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, test_screen_.get()); 56 gfx::Screen::SetScreenInstance(gfx::SCREEN_TYPE_NATIVE, test_screen_.get());
57 root_window_.reset(test_screen_->CreateRootWindowForPrimaryDisplay()); 57 root_window_.reset(test_screen_->CreateRootWindowForPrimaryDisplay());
58 58
59 focus_client_.reset(new FocusManager); 59 focus_client_.reset(new FocusManager);
60 client::SetFocusClient(root_window_.get(), focus_client_.get()); 60 client::SetFocusClient(root_window_.get(), focus_client_.get());
61 stacking_client_.reset(new TestStackingClient(root_window_.get())); 61 stacking_client_.reset(new TestStackingClient(root_window_.get()));
62 test_activation_client_.reset( 62 test_activation_client_.reset(
63 new test::TestActivationClient(root_window_.get())); 63 new test::TestActivationClient(root_window_.get()));
64 capture_client_.reset(new client::DefaultCaptureClient(root_window_.get())); 64 capture_client_.reset(new client::DefaultCaptureClient(root_window_.get()));
65 test_input_method_.reset(new ui::test::DummyInputMethod); 65 test_input_method_.reset(new ui::DummyInputMethod);
66 root_window_->SetProperty( 66 root_window_->SetProperty(
67 client::kRootWindowInputMethodKey, 67 client::kRootWindowInputMethodKey,
68 test_input_method_.get()); 68 test_input_method_.get());
69 69
70 root_window_->Show(); 70 root_window_->Show();
71 // Ensure width != height so tests won't confuse them. 71 // Ensure width != height so tests won't confuse them.
72 root_window_->SetHostSize(gfx::Size(800, 600)); 72 root_window_->SetHostSize(gfx::Size(800, 600));
73 } 73 }
74 74
75 void AuraTestHelper::TearDown() { 75 void AuraTestHelper::TearDown() {
(...skipping 18 matching lines...) Expand all
94 #if !defined(OS_MACOSX) 94 #if !defined(OS_MACOSX)
95 // TODO(jbates) crbug.com/134753 Find quitters of this RunLoop and have them 95 // TODO(jbates) crbug.com/134753 Find quitters of this RunLoop and have them
96 // use run_loop.QuitClosure(). 96 // use run_loop.QuitClosure().
97 base::RunLoop run_loop(Env::GetInstance()->GetDispatcher()); 97 base::RunLoop run_loop(Env::GetInstance()->GetDispatcher());
98 run_loop.RunUntilIdle(); 98 run_loop.RunUntilIdle();
99 #endif 99 #endif
100 } 100 }
101 101
102 } // namespace test 102 } // namespace test
103 } // namespace aura 103 } // namespace aura
OLDNEW
« no previous file with comments | « no previous file | ui/base/ime/dummy_input_method.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698