| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_ | 5 #ifndef UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_ |
| 6 #define UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_ | 6 #define UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 void OnEmbed(ui::mojom::WindowTree* window_tree); | 42 void OnEmbed(ui::mojom::WindowTree* window_tree); |
| 43 | 43 |
| 44 WindowTreeHostMus* CallWmNewDisplayAdded(const display::Display& display); | 44 WindowTreeHostMus* CallWmNewDisplayAdded(const display::Display& display); |
| 45 WindowTreeHostMus* CallWmNewDisplayAdded(const display::Display& display, | 45 WindowTreeHostMus* CallWmNewDisplayAdded(const display::Display& display, |
| 46 ui::mojom::WindowDataPtr root_data, | 46 ui::mojom::WindowDataPtr root_data, |
| 47 bool parent_drawn); | 47 bool parent_drawn); |
| 48 | 48 |
| 49 // Pretends that |event| has been received from the window server. | 49 // Pretends that |event| has been received from the window server. |
| 50 void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event); | 50 void CallOnWindowInputEvent(Window* window, std::unique_ptr<ui::Event> event); |
| 51 | 51 |
| 52 // Simulates |event| matching a pointer watcher on the window server. |
| 53 void CallOnPointerEventObserved(Window* window, |
| 54 std::unique_ptr<ui::Event> event); |
| 55 |
| 52 void CallOnCaptureChanged(Window* new_capture, Window* old_capture); | 56 void CallOnCaptureChanged(Window* new_capture, Window* old_capture); |
| 53 | 57 |
| 54 // Sets the WindowTree and client id. | 58 // Sets the WindowTree and client id. |
| 55 void SetTreeAndClientId(ui::mojom::WindowTree* window_tree, | 59 void SetTreeAndClientId(ui::mojom::WindowTree* window_tree, |
| 56 ClientSpecificId client_id); | 60 ClientSpecificId client_id); |
| 57 | 61 |
| 58 bool HasPointerWatcher(); | 62 bool HasPointerWatcher(); |
| 59 | 63 |
| 60 Window* GetWindowByServerId(Id id); | 64 Window* GetWindowByServerId(Id id); |
| 61 | 65 |
| 62 private: | 66 private: |
| 63 WindowTreeClient* tree_client_impl_; | 67 WindowTreeClient* tree_client_impl_; |
| 64 uint16_t next_window_id_ = 1u; | 68 uint16_t next_window_id_ = 1u; |
| 65 | 69 |
| 66 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate); | 70 DISALLOW_COPY_AND_ASSIGN(WindowTreeClientPrivate); |
| 67 }; | 71 }; |
| 68 | 72 |
| 69 } // namespace ui | 73 } // namespace ui |
| 70 | 74 |
| 71 #endif // UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_ | 75 #endif // UI_AURA_TEST_MUS_WINDOW_TREE_CLIENT_PRIVATE_H_ |
| OLD | NEW |