| 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/macros.h" |
| 8 #include "base/thread_task_runner_handle.h" | 8 #include "base/thread_task_runner_handle.h" |
| 9 #include "components/mus/public/cpp/property_type_converters.h" | 9 #include "components/mus/public/cpp/property_type_converters.h" |
| 10 #include "components/mus/public/cpp/window.h" | 10 #include "components/mus/public/cpp/window.h" |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 168 behavior |= mus::mojom::kResizeBehaviorCanMinimize; | 168 behavior |= mus::mojom::kResizeBehaviorCanMinimize; |
| 169 return behavior; | 169 return behavior; |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace | 172 } // namespace |
| 173 | 173 |
| 174 //////////////////////////////////////////////////////////////////////////////// | 174 //////////////////////////////////////////////////////////////////////////////// |
| 175 // NativeWidgetMus, public: | 175 // NativeWidgetMus, public: |
| 176 | 176 |
| 177 NativeWidgetMus::NativeWidgetMus(internal::NativeWidgetDelegate* delegate, | 177 NativeWidgetMus::NativeWidgetMus(internal::NativeWidgetDelegate* delegate, |
| 178 mojo::shell::mojom::Shell* shell, | 178 mojo::Shell* shell, |
| 179 mus::Window* window, | 179 mus::Window* window, |
| 180 mus::mojom::SurfaceType surface_type) | 180 mus::mojom::SurfaceType surface_type) |
| 181 : window_(window), | 181 : window_(window), |
| 182 shell_(shell), | 182 shell_(shell), |
| 183 native_widget_delegate_(delegate), | 183 native_widget_delegate_(delegate), |
| 184 surface_type_(surface_type), | 184 surface_type_(surface_type), |
| 185 show_state_before_fullscreen_(ui::PLATFORM_WINDOW_STATE_UNKNOWN), | 185 show_state_before_fullscreen_(ui::PLATFORM_WINDOW_STATE_UNKNOWN), |
| 186 ownership_(Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET), | 186 ownership_(Widget::InitParams::NATIVE_WIDGET_OWNS_WIDGET), |
| 187 content_(new aura::Window(this)), | 187 content_(new aura::Window(this)), |
| 188 close_widget_factory_(this) { | 188 close_widget_factory_(this) { |
| (...skipping 659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 | 848 |
| 849 void NativeWidgetMus::OnGestureEvent(ui::GestureEvent* event) { | 849 void NativeWidgetMus::OnGestureEvent(ui::GestureEvent* event) { |
| 850 native_widget_delegate_->OnGestureEvent(event); | 850 native_widget_delegate_->OnGestureEvent(event); |
| 851 } | 851 } |
| 852 | 852 |
| 853 void NativeWidgetMus::OnHostCloseRequested(const aura::WindowTreeHost* host) { | 853 void NativeWidgetMus::OnHostCloseRequested(const aura::WindowTreeHost* host) { |
| 854 GetWidget()->Close(); | 854 GetWidget()->Close(); |
| 855 } | 855 } |
| 856 | 856 |
| 857 } // namespace views | 857 } // namespace views |
| OLD | NEW |