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 #ifndef COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ | 5 #ifndef COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ |
6 #define COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ | 6 #define COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 Id new_parent_id, | 149 Id new_parent_id, |
150 mojo::Array<mojom::WindowDataPtr> windows); | 150 mojo::Array<mojom::WindowDataPtr> windows); |
151 void OnWindowReordered(Id window_id, | 151 void OnWindowReordered(Id window_id, |
152 Id relative_window_id, | 152 Id relative_window_id, |
153 mojom::OrderDirection direction); | 153 mojom::OrderDirection direction); |
154 void OnWindowDeleted(Id window_id); | 154 void OnWindowDeleted(Id window_id); |
155 void OnWindowVisibilityChanged(Id window_id, bool visible); | 155 void OnWindowVisibilityChanged(Id window_id, bool visible); |
156 void OnWindowOpacityChanged(Id window_id, float opacity); | 156 void OnWindowOpacityChanged(Id window_id, float opacity); |
157 void OnWindowParentDrawnStateChanged(Id window_id, bool drawn); | 157 void OnWindowParentDrawnStateChanged(Id window_id, bool drawn); |
158 void OnWindowInputEvent(Id window_id, | 158 void OnWindowInputEvent(Id window_id, |
159 mojom::EventPtr event, | 159 const ui::Event& event, |
160 uint32_t event_observer_id); | 160 uint32_t event_observer_id); |
161 void OnEventObserved(mojom::EventPtr event, uint32_t event_observer_id); | 161 void OnEventObserved(const ui::Event& event, uint32_t event_observer_id); |
162 void OnWindowSharedPropertyChanged(Id window_id, | 162 void OnWindowSharedPropertyChanged(Id window_id, |
163 mojo::String name, | 163 mojo::String name, |
164 mojo::Array<uint8_t> data); | 164 mojo::Array<uint8_t> data); |
165 void OnWindowFocused(Id window_id); | 165 void OnWindowFocused(Id window_id); |
166 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id); | 166 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id); |
167 void OnChangeCompleted(uint32_t change_id, bool success); | 167 void OnChangeCompleted(uint32_t change_id, bool success); |
168 void OnTopLevelCreated(uint32_t change_id, | 168 void OnTopLevelCreated(uint32_t change_id, |
169 mojom::WindowDataPtr window_data, | 169 mojom::WindowDataPtr window_data, |
170 bool drawn); | 170 bool drawn); |
171 | 171 |
172 private: | 172 private: |
173 void AddChange(const Change& change); | 173 void AddChange(const Change& change); |
174 | 174 |
175 Delegate* delegate_; | 175 Delegate* delegate_; |
176 std::vector<Change> changes_; | 176 std::vector<Change> changes_; |
177 | 177 |
178 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); | 178 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); |
179 }; | 179 }; |
180 | 180 |
181 } // namespace ws | 181 } // namespace ws |
182 | 182 |
183 } // namespace mus | 183 } // namespace mus |
184 | 184 |
185 #endif // COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ | 185 #endif // COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ |
OLD | NEW |