| 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 <stddef.h> | 5 #include <stddef.h> |
| 6 #include <stdint.h> | 6 #include <stdint.h> |
| 7 | 7 |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 } | 347 } |
| 348 void OnWindowDrawnStateChanged(uint32_t window, bool drawn) override { | 348 void OnWindowDrawnStateChanged(uint32_t window, bool drawn) override { |
| 349 tracker()->OnWindowDrawnStateChanged(window, drawn); | 349 tracker()->OnWindowDrawnStateChanged(window, drawn); |
| 350 } | 350 } |
| 351 void OnWindowInputEvent(uint32_t event_id, | 351 void OnWindowInputEvent(uint32_t event_id, |
| 352 Id window_id, | 352 Id window_id, |
| 353 EventPtr event) override { | 353 EventPtr event) override { |
| 354 // Ack input events to clear the state on the server. These can be received | 354 // Ack input events to clear the state on the server. These can be received |
| 355 // during test startup. X11Window::DispatchEvent sends a synthetic move | 355 // during test startup. X11Window::DispatchEvent sends a synthetic move |
| 356 // event to notify of entry. | 356 // event to notify of entry. |
| 357 tree()->OnWindowInputEventAck(event_id); | 357 tree()->OnWindowInputEventAck(event_id, true); |
| 358 // Don't log input events as none of the tests care about them and they | 358 // Don't log input events as none of the tests care about them and they |
| 359 // may come in at random points. | 359 // may come in at random points. |
| 360 } | 360 } |
| 361 void OnWindowSharedPropertyChanged(uint32_t window, | 361 void OnWindowSharedPropertyChanged(uint32_t window, |
| 362 const String& name, | 362 const String& name, |
| 363 Array<uint8_t> new_data) override { | 363 Array<uint8_t> new_data) override { |
| 364 tracker_.OnWindowSharedPropertyChanged(window, name, std::move(new_data)); | 364 tracker_.OnWindowSharedPropertyChanged(window, name, std::move(new_data)); |
| 365 } | 365 } |
| 366 // TODO(sky): add testing coverage. | 366 // TODO(sky): add testing coverage. |
| 367 void OnWindowFocused(uint32_t focused_window_id) override {} | 367 void OnWindowFocused(uint32_t focused_window_id) override {} |
| (...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1922 // originating connection. | 1922 // originating connection. |
| 1923 | 1923 |
| 1924 // TODO(sky): make sure coverage of what was | 1924 // TODO(sky): make sure coverage of what was |
| 1925 // WindowManagerTest.SecondEmbedRoot_InitService and | 1925 // WindowManagerTest.SecondEmbedRoot_InitService and |
| 1926 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window | 1926 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window |
| 1927 // manager | 1927 // manager |
| 1928 // tests. | 1928 // tests. |
| 1929 | 1929 |
| 1930 } // namespace ws | 1930 } // namespace ws |
| 1931 } // namespace mus | 1931 } // namespace mus |
| OLD | NEW |