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

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

Issue 209383003: Move wm/public into wm target (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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/aura/client/default_activation_client.cc ('k') | ui/aura/test/aura_test_base.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_BASE_H_ 5 #ifndef UI_AURA_TEST_AURA_TEST_BASE_H_
6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ 6 #define UI_AURA_TEST_AURA_TEST_BASE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/message_loop/message_loop.h" 10 #include "base/message_loop/message_loop.h"
(...skipping 22 matching lines...) Expand all
33 33
34 protected: 34 protected:
35 void RunAllPendingInMessageLoop(); 35 void RunAllPendingInMessageLoop();
36 36
37 void ParentWindow(Window* window); 37 void ParentWindow(Window* window);
38 38
39 // A convenience function for dispatching an event to |dispatcher()|. 39 // A convenience function for dispatching an event to |dispatcher()|.
40 // Returns whether |event| was handled. 40 // Returns whether |event| was handled.
41 bool DispatchEventUsingWindowDispatcher(ui::Event* event); 41 bool DispatchEventUsingWindowDispatcher(ui::Event* event);
42 42
43 // Override in derived classes to provide different specializations of
44 // AuraTestHelper.
45 virtual AuraTestHelper* CreateHelper(base::MessageLoopForUI* message_loop);
46
43 Window* root_window() { return helper_->root_window(); } 47 Window* root_window() { return helper_->root_window(); }
44 WindowTreeHost* host() { return helper_->host(); } 48 WindowTreeHost* host() { return helper_->host(); }
45 ui::EventProcessor* event_processor() { return helper_->event_processor(); } 49 ui::EventProcessor* event_processor() { return helper_->event_processor(); }
46 TestScreen* test_screen() { return helper_->test_screen(); } 50 TestScreen* test_screen() { return helper_->test_screen(); }
47 51
48 private: 52 private:
49 bool setup_called_; 53 bool setup_called_;
50 bool teardown_called_; 54 bool teardown_called_;
51 base::MessageLoopForUI message_loop_; 55 base::MessageLoopForUI message_loop_;
52 scoped_ptr<AuraTestHelper> helper_; 56 scoped_ptr<AuraTestHelper> helper_;
53 57
54 DISALLOW_COPY_AND_ASSIGN(AuraTestBase); 58 DISALLOW_COPY_AND_ASSIGN(AuraTestBase);
55 }; 59 };
56 60
57 } // namespace test 61 } // namespace test
58 } // namespace aura 62 } // namespace aura
59 63
60 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ 64 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_
OLDNEW
« no previous file with comments | « ui/aura/client/default_activation_client.cc ('k') | ui/aura/test/aura_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698