| 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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 Id window_id, | 350 Id window_id, |
| 351 std::unique_ptr<ui::Event> event, | 351 std::unique_ptr<ui::Event> event, |
| 352 uint32_t event_observer_id) override { | 352 uint32_t event_observer_id) override { |
| 353 // Ack input events to clear the state on the server. These can be received | 353 // Ack input events to clear the state on the server. These can be received |
| 354 // during test startup. X11Window::DispatchEvent sends a synthetic move | 354 // during test startup. X11Window::DispatchEvent sends a synthetic move |
| 355 // event to notify of entry. | 355 // event to notify of entry. |
| 356 tree()->OnWindowInputEventAck(event_id, mojom::EventResult::HANDLED); | 356 tree()->OnWindowInputEventAck(event_id, mojom::EventResult::HANDLED); |
| 357 // Don't log input events as none of the tests care about them and they | 357 // Don't log input events as none of the tests care about them and they |
| 358 // may come in at random points. | 358 // may come in at random points. |
| 359 } | 359 } |
| 360 void OnEventObserved(std::unique_ptr<ui::Event>, | 360 void OnPointerEventObserved(std::unique_ptr<ui::Event>, |
| 361 uint32_t event_observer_id) override {} | 361 uint32_t event_observer_id) override {} |
| 362 void OnWindowSharedPropertyChanged(uint32_t window, | 362 void OnWindowSharedPropertyChanged(uint32_t window, |
| 363 const String& name, | 363 const String& name, |
| 364 Array<uint8_t> new_data) override { | 364 Array<uint8_t> new_data) override { |
| 365 tracker_.OnWindowSharedPropertyChanged(window, name, std::move(new_data)); | 365 tracker_.OnWindowSharedPropertyChanged(window, name, std::move(new_data)); |
| 366 } | 366 } |
| 367 // TODO(sky): add testing coverage. | 367 // TODO(sky): add testing coverage. |
| 368 void OnWindowFocused(uint32_t focused_window_id) override {} | 368 void OnWindowFocused(uint32_t focused_window_id) override {} |
| 369 void OnWindowPredefinedCursorChanged(uint32_t window_id, | 369 void OnWindowPredefinedCursorChanged(uint32_t window_id, |
| 370 mojom::Cursor cursor_id) override { | 370 mojom::Cursor cursor_id) override { |
| 371 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id); | 371 tracker_.OnWindowPredefinedCursorChanged(window_id, cursor_id); |
| (...skipping 1670 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2042 | 2042 |
| 2043 // TODO(sky): make sure coverage of what was | 2043 // TODO(sky): make sure coverage of what was |
| 2044 // WindowManagerTest.SecondEmbedRoot_InitService and | 2044 // WindowManagerTest.SecondEmbedRoot_InitService and |
| 2045 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window | 2045 // WindowManagerTest.MultipleEmbedRootsBeforeWTHReady gets added to window |
| 2046 // manager | 2046 // manager |
| 2047 // tests. | 2047 // tests. |
| 2048 | 2048 |
| 2049 } // namespace test | 2049 } // namespace test |
| 2050 } // namespace ws | 2050 } // namespace ws |
| 2051 } // namespace ui | 2051 } // namespace ui |
| OLD | NEW |