| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "services/ui/ws/window_tree.h" | 5 #include "services/ui/ws/window_tree.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 768 ServerWindow* parent_window = window->parent(); | 768 ServerWindow* parent_window = window->parent(); |
| 769 ClientWindowId client_window_id, parent_client_window_id; | 769 ClientWindowId client_window_id, parent_client_window_id; |
| 770 if (!IsWindowKnown(window, &client_window_id) || | 770 if (!IsWindowKnown(window, &client_window_id) || |
| 771 !IsWindowKnown(parent_window, &parent_client_window_id) || | 771 !IsWindowKnown(parent_window, &parent_client_window_id) || |
| 772 !created_window_map_.count(parent_window->id())) { | 772 !created_window_map_.count(parent_window->id())) { |
| 773 return; | 773 return; |
| 774 } | 774 } |
| 775 | 775 |
| 776 ServerWindowCompositorFrameSinkManager* compositor_frame_sink_manager = | 776 ServerWindowCompositorFrameSinkManager* compositor_frame_sink_manager = |
| 777 window->GetOrCreateCompositorFrameSinkManager(); | 777 window->GetOrCreateCompositorFrameSinkManager(); |
| 778 ServerWindowCompositorFrameSink* compositor_frame_sink = | 778 cc::SurfaceSequence sequence = |
| 779 compositor_frame_sink_manager->GetDefaultCompositorFrameSink(); | 779 compositor_frame_sink_manager->CreateSurfaceSequence( |
| 780 cc::SurfaceSequence sequence = compositor_frame_sink->CreateSurfaceSequence(); | 780 mojom::CompositorFrameSinkType::DEFAULT); |
| 781 client()->OnWindowSurfaceChanged(client_window_id.id, surface_id, sequence, | 781 client()->OnWindowSurfaceChanged(client_window_id.id, surface_id, sequence, |
| 782 frame_size, device_scale_factor); | 782 frame_size, device_scale_factor); |
| 783 } | 783 } |
| 784 | 784 |
| 785 void WindowTree::SendToPointerWatcher(const ui::Event& event, | 785 void WindowTree::SendToPointerWatcher(const ui::Event& event, |
| 786 ServerWindow* target_window) { | 786 ServerWindow* target_window) { |
| 787 if (!EventMatchesPointerWatcher(event)) | 787 if (!EventMatchesPointerWatcher(event)) |
| 788 return; | 788 return; |
| 789 | 789 |
| 790 ClientWindowId client_window_id; | 790 ClientWindowId client_window_id; |
| (...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1944 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, | 1944 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, |
| 1945 effect_bitmask, callback); | 1945 effect_bitmask, callback); |
| 1946 } | 1946 } |
| 1947 | 1947 |
| 1948 void WindowTree::PerformOnDragDropDone() { | 1948 void WindowTree::PerformOnDragDropDone() { |
| 1949 client()->OnDragDropDone(); | 1949 client()->OnDragDropDone(); |
| 1950 } | 1950 } |
| 1951 | 1951 |
| 1952 } // namespace ws | 1952 } // namespace ws |
| 1953 } // namespace ui | 1953 } // namespace ui |
| OLD | NEW |