| 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 "ash/mus/non_client_frame_controller.h" | 5 #include "ash/mus/non_client_frame_controller.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 DetachedTitleAreaRenderer* title_area_renderer_ = nullptr; | 215 DetachedTitleAreaRenderer* title_area_renderer_ = nullptr; |
| 216 | 216 |
| 217 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenControllerDelegateMus); | 217 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenControllerDelegateMus); |
| 218 }; | 218 }; |
| 219 | 219 |
| 220 class WmNativeWidgetMus : public views::NativeWidgetMus { | 220 class WmNativeWidgetMus : public views::NativeWidgetMus { |
| 221 public: | 221 public: |
| 222 WmNativeWidgetMus(views::internal::NativeWidgetDelegate* delegate, | 222 WmNativeWidgetMus(views::internal::NativeWidgetDelegate* delegate, |
| 223 ui::Window* window, | 223 ui::Window* window, |
| 224 ui::WindowManagerClient* window_manager_client) | 224 ui::WindowManagerClient* window_manager_client) |
| 225 : NativeWidgetMus(delegate, window, ui::mojom::SurfaceType::UNDERLAY), | 225 : NativeWidgetMus(delegate, |
| 226 window, |
| 227 ui::mojom::CompositorFrameSinkType::UNDERLAY), |
| 226 window_manager_client_(window_manager_client) {} | 228 window_manager_client_(window_manager_client) {} |
| 227 ~WmNativeWidgetMus() override {} | 229 ~WmNativeWidgetMus() override {} |
| 228 | 230 |
| 229 // NativeWidgetMus: | 231 // NativeWidgetMus: |
| 230 views::NonClientFrameView* CreateNonClientFrameView() override { | 232 views::NonClientFrameView* CreateNonClientFrameView() override { |
| 231 move_event_handler_.reset(new MoveEventHandler( | 233 move_event_handler_.reset(new MoveEventHandler( |
| 232 window(), window_manager_client_, GetNativeView())); | 234 window(), window_manager_client_, GetNativeView())); |
| 233 if (ShouldRemoveStandardFrame(window())) | 235 if (ShouldRemoveStandardFrame(window())) |
| 234 return new EmptyDraggableNonClientFrameView(); | 236 return new EmptyDraggableNonClientFrameView(); |
| 235 if (GetWindowType(window()) == ui::mojom::WindowType::PANEL) | 237 if (GetWindowType(window()) == ui::mojom::WindowType::PANEL) |
| (...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 } | 459 } |
| 458 } | 460 } |
| 459 | 461 |
| 460 void NonClientFrameController::OnWindowDestroyed(ui::Window* window) { | 462 void NonClientFrameController::OnWindowDestroyed(ui::Window* window) { |
| 461 window_->RemoveObserver(this); | 463 window_->RemoveObserver(this); |
| 462 window_ = nullptr; | 464 window_ = nullptr; |
| 463 } | 465 } |
| 464 | 466 |
| 465 } // namespace mus | 467 } // namespace mus |
| 466 } // namespace ash | 468 } // namespace ash |
| OLD | NEW |