OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "mojo/views/native_widget_view_manager.h" | 5 #include "mojo/views/native_widget_view_manager.h" |
6 | 6 |
7 #include "mojo/aura/window_tree_host_mojo.h" | 7 #include "mojo/aura/window_tree_host_mojo.h" |
8 #include "mojo/services/public/cpp/input_events/input_events_type_converters.h" | 8 #include "mojo/converters/input_events/input_events_type_converters.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/window.h" | 11 #include "ui/aura/window.h" |
12 #include "ui/aura/window_event_dispatcher.h" | 12 #include "ui/aura/window_event_dispatcher.h" |
13 #include "ui/base/ime/input_method.h" | 13 #include "ui/base/ime/input_method.h" |
14 #include "ui/base/ime/input_method_base.h" | 14 #include "ui/base/ime/input_method_base.h" |
15 #include "ui/base/ime/input_method_delegate.h" | 15 #include "ui/base/ime/input_method_delegate.h" |
16 #include "ui/base/ime/input_method_factory.h" | 16 #include "ui/base/ime/input_method_factory.h" |
17 #include "ui/base/ime/text_input_client.h" | 17 #include "ui/base/ime/text_input_client.h" |
18 #include "ui/wm/core/base_focus_rules.h" | 18 #include "ui/wm/core/base_focus_rules.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 } | 145 } |
146 | 146 |
147 void NativeWidgetViewManager::OnViewInputEvent(View* view, | 147 void NativeWidgetViewManager::OnViewInputEvent(View* view, |
148 const EventPtr& event) { | 148 const EventPtr& event) { |
149 scoped_ptr<ui::Event> ui_event(event.To<scoped_ptr<ui::Event> >()); | 149 scoped_ptr<ui::Event> ui_event(event.To<scoped_ptr<ui::Event> >()); |
150 if (ui_event) | 150 if (ui_event) |
151 window_tree_host_->SendEventToProcessor(ui_event.get()); | 151 window_tree_host_->SendEventToProcessor(ui_event.get()); |
152 } | 152 } |
153 | 153 |
154 } // namespace mojo | 154 } // namespace mojo |
OLD | NEW |