OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/views/mus/platform_window_mus.h" | 5 #include "ui/views/mus/platform_window_mus.h" |
6 | 6 |
| 7 #include "build/build_config.h" |
7 #include "components/mus/public/cpp/property_type_converters.h" | 8 #include "components/mus/public/cpp/property_type_converters.h" |
8 #include "components/mus/public/cpp/window_property.h" | 9 #include "components/mus/public/cpp/window_property.h" |
9 #include "components/mus/public/interfaces/window_manager.mojom.h" | 10 #include "components/mus/public/interfaces/window_manager.mojom.h" |
10 #include "mojo/converters/input_events/input_events_type_converters.h" | 11 #include "mojo/converters/input_events/input_events_type_converters.h" |
11 #include "ui/platform_window/platform_window_delegate.h" | 12 #include "ui/platform_window/platform_window_delegate.h" |
12 #include "ui/views/mus/window_manager_connection.h" | 13 #include "ui/views/mus/window_manager_connection.h" |
13 | 14 |
14 namespace views { | 15 namespace views { |
15 | 16 |
16 namespace { | 17 namespace { |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 210 |
210 void PlatformWindowMus::OnWindowInputEvent( | 211 void PlatformWindowMus::OnWindowInputEvent( |
211 mus::Window* view, | 212 mus::Window* view, |
212 mus::mojom::EventPtr event, | 213 mus::mojom::EventPtr event, |
213 scoped_ptr<base::Closure>* ack_callback) { | 214 scoped_ptr<base::Closure>* ack_callback) { |
214 scoped_ptr<ui::Event> ui_event(event.To<scoped_ptr<ui::Event>>()); | 215 scoped_ptr<ui::Event> ui_event(event.To<scoped_ptr<ui::Event>>()); |
215 delegate_->DispatchEvent(ui_event.get()); | 216 delegate_->DispatchEvent(ui_event.get()); |
216 } | 217 } |
217 | 218 |
218 } // namespace views | 219 } // namespace views |
OLD | NEW |