OLD | NEW |
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_base.h" | 5 #include "ui/aura/test/aura_test_base.h" |
6 | 6 |
7 #include "ui/aura/client/window_tree_client.h" | 7 #include "ui/aura/client/window_parenting_client.h" |
8 #include "ui/aura/test/aura_test_helper.h" | 8 #include "ui/aura/test/aura_test_helper.h" |
9 #include "ui/aura/test/test_window_delegate.h" | 9 #include "ui/aura/test/test_window_delegate.h" |
10 #include "ui/aura/window.h" | 10 #include "ui/aura/window.h" |
11 #include "ui/base/ime/input_method_initializer.h" | 11 #include "ui/base/ime/input_method_initializer.h" |
12 #include "ui/base/material_design/material_design_controller.h" | 12 #include "ui/base/material_design/material_design_controller.h" |
13 #include "ui/base/test/material_design_controller_test_api.h" | 13 #include "ui/base/test/material_design_controller_test_api.h" |
14 #include "ui/compositor/test/context_factories_for_test.h" | 14 #include "ui/compositor/test/context_factories_for_test.h" |
15 #include "ui/events/event_dispatcher.h" | 15 #include "ui/events/event_dispatcher.h" |
16 #include "ui/events/event_processor.h" | 16 #include "ui/events/event_processor.h" |
17 #include "ui/events/gesture_detection/gesture_configuration.h" | 17 #include "ui/events/gesture_detection/gesture_configuration.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 | 117 |
118 bool AuraTestBase::DispatchEventUsingWindowDispatcher(ui::Event* event) { | 118 bool AuraTestBase::DispatchEventUsingWindowDispatcher(ui::Event* event) { |
119 ui::EventDispatchDetails details = | 119 ui::EventDispatchDetails details = |
120 event_processor()->OnEventFromSource(event); | 120 event_processor()->OnEventFromSource(event); |
121 CHECK(!details.dispatcher_destroyed); | 121 CHECK(!details.dispatcher_destroyed); |
122 return event->handled(); | 122 return event->handled(); |
123 } | 123 } |
124 | 124 |
125 } // namespace test | 125 } // namespace test |
126 } // namespace aura | 126 } // namespace aura |
OLD | NEW |