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/native_widget_mus.h" | 5 #include "ui/views/mus/native_widget_mus.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
8 #include "components/mus/public/cpp/property_type_converters.h" | 9 #include "components/mus/public/cpp/property_type_converters.h" |
9 #include "components/mus/public/cpp/window.h" | 10 #include "components/mus/public/cpp/window.h" |
10 #include "components/mus/public/cpp/window_property.h" | 11 #include "components/mus/public/cpp/window_property.h" |
11 #include "mojo/converters/geometry/geometry_type_converters.h" | 12 #include "mojo/converters/geometry/geometry_type_converters.h" |
12 #include "ui/aura/client/default_capture_client.h" | 13 #include "ui/aura/client/default_capture_client.h" |
13 #include "ui/aura/client/window_tree_client.h" | 14 #include "ui/aura/client/window_tree_client.h" |
14 #include "ui/aura/env.h" | 15 #include "ui/aura/env.h" |
15 #include "ui/aura/layout_manager.h" | 16 #include "ui/aura/layout_manager.h" |
16 #include "ui/aura/mus/mus_util.h" | 17 #include "ui/aura/mus/mus_util.h" |
(...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 | 808 |
808 void NativeWidgetMus::OnGestureEvent(ui::GestureEvent* event) { | 809 void NativeWidgetMus::OnGestureEvent(ui::GestureEvent* event) { |
809 native_widget_delegate_->OnGestureEvent(event); | 810 native_widget_delegate_->OnGestureEvent(event); |
810 } | 811 } |
811 | 812 |
812 void NativeWidgetMus::OnHostCloseRequested(const aura::WindowTreeHost* host) { | 813 void NativeWidgetMus::OnHostCloseRequested(const aura::WindowTreeHost* host) { |
813 GetWidget()->Close(); | 814 GetWidget()->Close(); |
814 } | 815 } |
815 | 816 |
816 } // namespace views | 817 } // namespace views |
OLD | NEW |