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

Side by Side Diff: services/ui/ws/window_tree.cc

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: Fix unittests Created 3 years, 7 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 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 943 matching lines...) Expand 10 before | Expand all | Expand 10 after
954 !IsWindowKnown(transient_window, &transient_client_window_id)) { 954 !IsWindowKnown(transient_window, &transient_client_window_id)) {
955 return; 955 return;
956 } 956 }
957 client()->OnTransientWindowRemoved(client_window_id.id, 957 client()->OnTransientWindowRemoved(client_window_id.id,
958 transient_client_window_id.id); 958 transient_client_window_id.id);
959 } 959 }
960 960
961 void WindowTree::ProcessWindowSurfaceChanged( 961 void WindowTree::ProcessWindowSurfaceChanged(
962 ServerWindow* window, 962 ServerWindow* window,
963 const cc::SurfaceInfo& surface_info) { 963 const cc::SurfaceInfo& surface_info) {
964 ServerWindow* parent_window = window->parent(); 964 ClientWindowId client_window_id;
965 ClientWindowId client_window_id, parent_client_window_id; 965 if (!IsWindowKnown(window, &client_window_id))
sky 2017/05/26 23:14:18 This means for embed points you send the change to
Peng 2017/05/30 19:46:27 For the embed points, we only call this function o
966 if (!IsWindowKnown(window, &client_window_id) ||
967 !IsWindowKnown(parent_window, &parent_client_window_id) ||
968 !created_window_map_.count(parent_window->id())) {
969 return; 966 return;
970 }
971
972 client()->OnWindowSurfaceChanged(client_window_id.id, surface_info); 967 client()->OnWindowSurfaceChanged(client_window_id.id, surface_info);
973 } 968 }
974 969
975 void WindowTree::SendToPointerWatcher(const ui::Event& event, 970 void WindowTree::SendToPointerWatcher(const ui::Event& event,
976 ServerWindow* target_window, 971 ServerWindow* target_window,
977 int64_t display_id) { 972 int64_t display_id) {
978 if (!EventMatchesPointerWatcher(event)) 973 if (!EventMatchesPointerWatcher(event))
979 return; 974 return;
980 975
981 ClientWindowId client_window_id; 976 ClientWindowId client_window_id;
(...skipping 1521 matching lines...) Expand 10 before | Expand all | Expand 10 after
2503 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, 2498 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset,
2504 effect_bitmask, callback); 2499 effect_bitmask, callback);
2505 } 2500 }
2506 2501
2507 void WindowTree::PerformOnDragDropDone() { 2502 void WindowTree::PerformOnDragDropDone() {
2508 client()->OnDragDropDone(); 2503 client()->OnDragDropDone();
2509 } 2504 }
2510 2505
2511 } // namespace ws 2506 } // namespace ws
2512 } // namespace ui 2507 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698