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

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

Issue 2875753002: Implement aura::WindowPortMus::CreateCompositorFrameSink() (Closed)
Patch Set: Fix build problem Created 3 years, 6 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
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 945 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 !IsWindowKnown(transient_window, &transient_client_window_id)) { 956 !IsWindowKnown(transient_window, &transient_client_window_id)) {
957 return; 957 return;
958 } 958 }
959 client()->OnTransientWindowRemoved(client_window_id.id, 959 client()->OnTransientWindowRemoved(client_window_id.id,
960 transient_client_window_id.id); 960 transient_client_window_id.id);
961 } 961 }
962 962
963 void WindowTree::ProcessWindowSurfaceChanged( 963 void WindowTree::ProcessWindowSurfaceChanged(
964 ServerWindow* window, 964 ServerWindow* window,
965 const cc::SurfaceInfo& surface_info) { 965 const cc::SurfaceInfo& surface_info) {
966 ServerWindow* parent_window = window->parent(); 966 ClientWindowId client_window_id;
967 ClientWindowId client_window_id, parent_client_window_id; 967 if (!IsWindowKnown(window, &client_window_id))
968 if (!IsWindowKnown(window, &client_window_id) ||
969 !IsWindowKnown(parent_window, &parent_client_window_id) ||
970 !created_window_map_.count(parent_window->id())) {
971 return; 968 return;
972 }
973
974 client()->OnWindowSurfaceChanged(client_window_id.id, surface_info); 969 client()->OnWindowSurfaceChanged(client_window_id.id, surface_info);
975 } 970 }
976 971
977 void WindowTree::SendToPointerWatcher(const ui::Event& event, 972 void WindowTree::SendToPointerWatcher(const ui::Event& event,
978 ServerWindow* target_window, 973 ServerWindow* target_window,
979 int64_t display_id) { 974 int64_t display_id) {
980 if (!EventMatchesPointerWatcher(event)) 975 if (!EventMatchesPointerWatcher(event))
981 return; 976 return;
982 977
983 ClientWindowId client_window_id; 978 ClientWindowId client_window_id;
(...skipping 1565 matching lines...) Expand 10 before | Expand all | Expand 10 after
2549 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset, 2544 client()->OnCompleteDrop(client_window_id.id, event_flags, cursor_offset,
2550 effect_bitmask, callback); 2545 effect_bitmask, callback);
2551 } 2546 }
2552 2547
2553 void WindowTree::PerformOnDragDropDone() { 2548 void WindowTree::PerformOnDragDropDone() {
2554 client()->OnDragDropDone(); 2549 client()->OnDragDropDone();
2555 } 2550 }
2556 2551
2557 } // namespace ws 2552 } // namespace ws
2558 } // namespace ui 2553 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | services/ui/ws/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698