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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 void OnWindowSharedPropertyChanged(Id window_id, | 167 void OnWindowSharedPropertyChanged(Id window_id, |
168 mojo::String name, | 168 mojo::String name, |
169 mojo::Array<uint8_t> data); | 169 mojo::Array<uint8_t> data); |
170 void OnWindowFocused(Id window_id); | 170 void OnWindowFocused(Id window_id); |
171 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id); | 171 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id); |
172 void OnChangeCompleted(uint32_t change_id, bool success); | 172 void OnChangeCompleted(uint32_t change_id, bool success); |
173 void OnTopLevelCreated(uint32_t change_id, | 173 void OnTopLevelCreated(uint32_t change_id, |
174 mojom::WindowDataPtr window_data, | 174 mojom::WindowDataPtr window_data, |
175 bool drawn); | 175 bool drawn); |
176 void OnWindowSurfaceChanged(Id window_id, | 176 void OnWindowSurfaceChanged(Id window_id, |
177 const cc::SurfaceId& surface_id, | 177 const cc::SurfaceInfo& surface_info); |
178 const gfx::Size& frame_size, | |
179 float device_scale_factor); | |
180 | 178 |
181 private: | 179 private: |
182 void AddChange(const Change& change); | 180 void AddChange(const Change& change); |
183 | 181 |
184 Delegate* delegate_; | 182 Delegate* delegate_; |
185 std::vector<Change> changes_; | 183 std::vector<Change> changes_; |
186 | 184 |
187 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); | 185 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); |
188 }; | 186 }; |
189 | 187 |
190 } // namespace ws | 188 } // namespace ws |
191 | 189 |
192 } // namespace ui | 190 } // namespace ui |
193 | 191 |
194 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ | 192 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ |
OLD | NEW |