| 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 SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <set> | 10 #include <set> |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 uint32_t window_id, | 96 uint32_t window_id, |
| 97 ui::mojom::Cursor cursor_id) override; | 97 ui::mojom::Cursor cursor_id) override; |
| 98 void SetWindowTextInputState(uint32_t window_id, | 98 void SetWindowTextInputState(uint32_t window_id, |
| 99 mojo::TextInputStatePtr state) override; | 99 mojo::TextInputStatePtr state) override; |
| 100 void SetImeVisibility(uint32_t window_id, | 100 void SetImeVisibility(uint32_t window_id, |
| 101 bool visible, | 101 bool visible, |
| 102 mojo::TextInputStatePtr state) override; | 102 mojo::TextInputStatePtr state) override; |
| 103 void OnWindowInputEventAck(uint32_t event_id, | 103 void OnWindowInputEventAck(uint32_t event_id, |
| 104 ui::mojom::EventResult result) override; | 104 ui::mojom::EventResult result) override; |
| 105 void DeactivateWindow(uint32_t window_id) override; | 105 void DeactivateWindow(uint32_t window_id) override; |
| 106 void StackAtTop(uint32_t change_id, uint32_t window_id) override; |
| 106 void GetWindowManagerClient( | 107 void GetWindowManagerClient( |
| 107 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) | 108 mojo::AssociatedInterfaceRequest<mojom::WindowManagerClient> internal) |
| 108 override; | 109 override; |
| 109 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) | 110 void GetCursorLocationMemory(const GetCursorLocationMemoryCallback& callback) |
| 110 override; | 111 override; |
| 111 void PerformDragDrop( | 112 void PerformDragDrop( |
| 112 uint32_t change_id, | 113 uint32_t change_id, |
| 113 uint32_t source_window_id, | 114 uint32_t source_window_id, |
| 114 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, | 115 const std::unordered_map<std::string, std::vector<uint8_t>>& drag_data, |
| 115 uint32_t drag_operation) override; | 116 uint32_t drag_operation) override; |
| 116 void CancelDragDrop(uint32_t window_id) override; | 117 void CancelDragDrop(uint32_t window_id) override; |
| 117 void PerformWindowMove(uint32_t change_id, | 118 void PerformWindowMove(uint32_t change_id, |
| 118 uint32_t window_id, | 119 uint32_t window_id, |
| 119 mojom::MoveLoopSource source, | 120 mojom::MoveLoopSource source, |
| 120 const gfx::Point& cursor_location) override; | 121 const gfx::Point& cursor_location) override; |
| 121 void CancelWindowMove(uint32_t window_id) override; | 122 void CancelWindowMove(uint32_t window_id) override; |
| 122 | 123 |
| 123 bool got_change_; | 124 bool got_change_; |
| 124 uint32_t change_id_; | 125 uint32_t change_id_; |
| 125 std::set<uint32_t> acked_events_; | 126 std::set<uint32_t> acked_events_; |
| 126 uint32_t window_id_; | 127 uint32_t window_id_; |
| 127 | 128 |
| 128 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); | 129 DISALLOW_COPY_AND_ASSIGN(TestWindowTree); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace ui | 132 } // namespace ui |
| 132 | 133 |
| 133 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ | 134 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_TEST_WINDOW_TREE_H_ |
| OLD | NEW |