| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |