| 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 SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ | 5 #ifndef SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ |
| 6 #define SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ | 6 #define SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 void OnWindowInputEvent(Id window_id, | 172 void OnWindowInputEvent(Id window_id, |
| 173 const ui::Event& event, | 173 const ui::Event& event, |
| 174 bool matches_pointer_watcher); | 174 bool matches_pointer_watcher); |
| 175 void OnPointerEventObserved(const ui::Event& event, | 175 void OnPointerEventObserved(const ui::Event& event, |
| 176 uint32_t window_id); | 176 uint32_t window_id); |
| 177 void OnWindowSharedPropertyChanged( | 177 void OnWindowSharedPropertyChanged( |
| 178 Id window_id, | 178 Id window_id, |
| 179 const std::string& name, | 179 const std::string& name, |
| 180 const base::Optional<std::vector<uint8_t>>& data); | 180 const base::Optional<std::vector<uint8_t>>& data); |
| 181 void OnWindowFocused(Id window_id); | 181 void OnWindowFocused(Id window_id); |
| 182 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id); | 182 void OnWindowPredefinedCursorChanged(Id window_id, |
| 183 mojom::CursorType cursor_id); |
| 183 void OnChangeCompleted(uint32_t change_id, bool success); | 184 void OnChangeCompleted(uint32_t change_id, bool success); |
| 184 void OnTopLevelCreated(uint32_t change_id, | 185 void OnTopLevelCreated(uint32_t change_id, |
| 185 mojom::WindowDataPtr window_data, | 186 mojom::WindowDataPtr window_data, |
| 186 bool drawn, | 187 bool drawn, |
| 187 const cc::FrameSinkId& frame_sink_id); | 188 const cc::FrameSinkId& frame_sink_id); |
| 188 void OnWindowSurfaceChanged(Id window_id, | 189 void OnWindowSurfaceChanged(Id window_id, |
| 189 const cc::SurfaceInfo& surface_info); | 190 const cc::SurfaceInfo& surface_info); |
| 190 | 191 |
| 191 private: | 192 private: |
| 192 void AddChange(const Change& change); | 193 void AddChange(const Change& change); |
| 193 | 194 |
| 194 Delegate* delegate_; | 195 Delegate* delegate_; |
| 195 std::vector<Change> changes_; | 196 std::vector<Change> changes_; |
| 196 | 197 |
| 197 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); | 198 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 } // namespace ws | 201 } // namespace ws |
| 201 | 202 |
| 202 } // namespace ui | 203 } // namespace ui |
| 203 | 204 |
| 204 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ | 205 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ |
| OLD | NEW |