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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 ChangeType type; | 73 ChangeType type; |
74 ClientSpecificId client_id; | 74 ClientSpecificId client_id; |
75 std::vector<TestWindow> windows; | 75 std::vector<TestWindow> windows; |
76 Id window_id; | 76 Id window_id; |
77 Id window_id2; | 77 Id window_id2; |
78 Id window_id3; | 78 Id window_id3; |
79 gfx::Rect bounds; | 79 gfx::Rect bounds; |
80 gfx::Rect bounds2; | 80 gfx::Rect bounds2; |
81 int32_t event_action; | 81 int32_t event_action; |
82 bool matches_pointer_watcher; | 82 bool matches_pointer_watcher; |
83 mojo::String embed_url; | 83 std::string embed_url; |
84 mojom::OrderDirection direction; | 84 mojom::OrderDirection direction; |
85 bool bool_value; | 85 bool bool_value; |
86 float float_value; | 86 float float_value; |
87 std::string property_key; | 87 std::string property_key; |
88 std::string property_value; | 88 std::string property_value; |
89 int32_t cursor_id; | 89 int32_t cursor_id; |
90 uint32_t change_id; | 90 uint32_t change_id; |
91 cc::SurfaceId surface_id; | 91 cc::SurfaceId surface_id; |
92 gfx::Size frame_size; | 92 gfx::Size frame_size; |
93 float device_scale_factor; | 93 float device_scale_factor; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
158 void OnWindowDeleted(Id window_id); | 158 void OnWindowDeleted(Id window_id); |
159 void OnWindowVisibilityChanged(Id window_id, bool visible); | 159 void OnWindowVisibilityChanged(Id window_id, bool visible); |
160 void OnWindowOpacityChanged(Id window_id, float opacity); | 160 void OnWindowOpacityChanged(Id window_id, float opacity); |
161 void OnWindowParentDrawnStateChanged(Id window_id, bool drawn); | 161 void OnWindowParentDrawnStateChanged(Id window_id, bool drawn); |
162 void OnWindowInputEvent(Id window_id, | 162 void OnWindowInputEvent(Id window_id, |
163 const ui::Event& event, | 163 const ui::Event& event, |
164 bool matches_pointer_watcher); | 164 bool matches_pointer_watcher); |
165 void OnPointerEventObserved(const ui::Event& event, | 165 void OnPointerEventObserved(const ui::Event& event, |
166 uint32_t window_id); | 166 uint32_t window_id); |
167 void OnWindowSharedPropertyChanged(Id window_id, | 167 void OnWindowSharedPropertyChanged(Id window_id, |
168 mojo::String name, | 168 const std::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::SurfaceId& surface_id, |
178 const gfx::Size& frame_size, | 178 const gfx::Size& frame_size, |
179 float device_scale_factor); | 179 float device_scale_factor); |
180 | 180 |
181 private: | 181 private: |
182 void AddChange(const Change& change); | 182 void AddChange(const Change& change); |
183 | 183 |
184 Delegate* delegate_; | 184 Delegate* delegate_; |
185 std::vector<Change> changes_; | 185 std::vector<Change> changes_; |
186 | 186 |
187 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); | 187 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); |
188 }; | 188 }; |
189 | 189 |
190 } // namespace ws | 190 } // namespace ws |
191 | 191 |
192 } // namespace ui | 192 } // namespace ui |
193 | 193 |
194 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ | 194 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ |
OLD | NEW |