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

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

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix build issues. Created 3 years, 9 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 | « ui/aura/test/aura_test_base.cc ('k') | ui/aura/test/ui_controls_factory_ozone.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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 ui::ContextFactoryPrivate* context_factory_private); 69 ui::ContextFactoryPrivate* context_factory_private);
70 70
71 // Clean up objects that are created for tests. This also deletes the Env 71 // Clean up objects that are created for tests. This also deletes the Env
72 // object. 72 // object.
73 void TearDown(); 73 void TearDown();
74 74
75 // Flushes message loop. 75 // Flushes message loop.
76 void RunAllPendingInMessageLoop(); 76 void RunAllPendingInMessageLoop();
77 77
78 Window* root_window() { return host_->window(); } 78 Window* root_window() { return host_->window(); }
79 ui::EventProcessor* event_processor() { return host_->event_processor(); } 79 ui::EventSink* event_sink() { return host_->event_sink(); }
80 WindowTreeHost* host() { return host_.get(); } 80 WindowTreeHost* host() { return host_.get(); }
81 81
82 TestScreen* test_screen() { return test_screen_.get(); } 82 TestScreen* test_screen() { return test_screen_.get(); }
83 83
84 // This function only returns a valid value if EnableMusWithTestWindowTree() 84 // This function only returns a valid value if EnableMusWithTestWindowTree()
85 // was called. 85 // was called.
86 TestWindowTree* window_tree(); 86 TestWindowTree* window_tree();
87 87
88 // Returns a WindowTreeClient only if one of the EnableMus functions is 88 // Returns a WindowTreeClient only if one of the EnableMus functions is
89 // called. 89 // called.
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 WindowTreeClient* window_tree_client_ = nullptr; 128 WindowTreeClient* window_tree_client_ = nullptr;
129 129
130 DISALLOW_COPY_AND_ASSIGN(AuraTestHelper); 130 DISALLOW_COPY_AND_ASSIGN(AuraTestHelper);
131 }; 131 };
132 132
133 } // namespace test 133 } // namespace test
134 } // namespace aura 134 } // namespace aura
135 135
136 #endif // UI_AURA_TEST_AURA_TEST_HELPER_H_ 136 #endif // UI_AURA_TEST_AURA_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « ui/aura/test/aura_test_base.cc ('k') | ui/aura/test/ui_controls_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698