Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: ash/mus/non_client_frame_controller.cc

Issue 2429173005: Mus+Ash: Replace (Server)WindowSurface with (Server)WindowCompositorFrameSink (Closed)
Patch Set: ui::CompositorFrameSink => ui::WindowCompositorFrameSink Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698