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

Side by Side Diff: components/mus/ws/window_tree_host_impl.h

Issue 1639223003: Makes it so each windowtreeclient can use whatever ids it wants (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 10 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 | « components/mus/ws/window_tree_apptest.cc ('k') | components/mus/ws/window_tree_host_impl.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 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 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <queue> 10 #include <queue>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // The second case happens if EventDispatcher generates more than one event 150 // The second case happens if EventDispatcher generates more than one event
151 // at a time. 151 // at a time.
152 struct QueuedEvent { 152 struct QueuedEvent {
153 QueuedEvent(); 153 QueuedEvent();
154 ~QueuedEvent(); 154 ~QueuedEvent();
155 155
156 mojom::EventPtr event; 156 mojom::EventPtr event;
157 scoped_ptr<ProcessedEventTarget> processed_target; 157 scoped_ptr<ProcessedEventTarget> processed_target;
158 }; 158 };
159 159
160 WindowId MapWindowIdFromClient(Id transport_window_id) const; 160 // Returns the ServerWindow with the specified transport id. Use this *only*
161 // if the call originates WindowTreeImpl associated with GetWindowTree().
162 ServerWindow* GetWindowFromWindowTreeHost(Id transport_window_id);
161 163
162 void OnClientClosed(); 164 void OnClientClosed();
163 165
164 void OnEventAckTimeout(); 166 void OnEventAckTimeout();
165 167
166 // Schedules an event to be processed later. 168 // Schedules an event to be processed later.
167 void QueueEvent(mojom::EventPtr event, 169 void QueueEvent(mojom::EventPtr event,
168 scoped_ptr<ProcessedEventTarget> processed_event_target); 170 scoped_ptr<ProcessedEventTarget> processed_event_target);
169 171
170 // Processes the next valid event in |event_queue_|. If the event has already 172 // Processes the next valid event in |event_queue_|. If the event has already
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 237
236 mojom::FrameDecorationValuesPtr frame_decoration_values_; 238 mojom::FrameDecorationValuesPtr frame_decoration_values_;
237 239
238 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); 240 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl);
239 }; 241 };
240 242
241 } // namespace ws 243 } // namespace ws
242 } // namespace mus 244 } // namespace mus
243 245
244 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_ 246 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_tree_apptest.cc ('k') | components/mus/ws/window_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698