| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 cc::FrameSinkId frame_sink_id; | 82 cc::FrameSinkId frame_sink_id; |
| 83 base::Optional<cc::LocalSurfaceId> local_surface_id; | 83 base::Optional<cc::LocalSurfaceId> local_surface_id; |
| 84 int32_t event_action; | 84 int32_t event_action; |
| 85 bool matches_pointer_watcher; | 85 bool matches_pointer_watcher; |
| 86 std::string embed_url; | 86 std::string embed_url; |
| 87 mojom::OrderDirection direction; | 87 mojom::OrderDirection direction; |
| 88 bool bool_value; | 88 bool bool_value; |
| 89 float float_value; | 89 float float_value; |
| 90 std::string property_key; | 90 std::string property_key; |
| 91 std::string property_value; | 91 std::string property_value; |
| 92 int32_t cursor_id; | 92 ui::CursorType cursor_type; |
| 93 uint32_t change_id; | 93 uint32_t change_id; |
| 94 cc::SurfaceId surface_id; | 94 cc::SurfaceId surface_id; |
| 95 gfx::Size frame_size; | 95 gfx::Size frame_size; |
| 96 float device_scale_factor; | 96 float device_scale_factor; |
| 97 // Set in OnWindowInputEvent() if the event is a KeyEvent. | 97 // Set in OnWindowInputEvent() if the event is a KeyEvent. |
| 98 std::unordered_map<std::string, std::vector<uint8_t>> key_event_properties; | 98 std::unordered_map<std::string, std::vector<uint8_t>> key_event_properties; |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 // Converts Changes to string descriptions. | 101 // Converts Changes to string descriptions. |
| 102 std::vector<std::string> ChangesToDescription1( | 102 std::vector<std::string> ChangesToDescription1( |
| (...skipping 69 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, | 182 void OnWindowCursorChanged(Id window_id, const ui::CursorData& cursor); |
| 183 mojom::CursorType cursor_id); | |
| 184 void OnChangeCompleted(uint32_t change_id, bool success); | 183 void OnChangeCompleted(uint32_t change_id, bool success); |
| 185 void OnTopLevelCreated(uint32_t change_id, | 184 void OnTopLevelCreated(uint32_t change_id, |
| 186 mojom::WindowDataPtr window_data, | 185 mojom::WindowDataPtr window_data, |
| 187 bool drawn, | 186 bool drawn, |
| 188 const cc::FrameSinkId& frame_sink_id); | 187 const cc::FrameSinkId& frame_sink_id); |
| 189 void OnWindowSurfaceChanged(Id window_id, | 188 void OnWindowSurfaceChanged(Id window_id, |
| 190 const cc::SurfaceInfo& surface_info); | 189 const cc::SurfaceInfo& surface_info); |
| 191 | 190 |
| 192 private: | 191 private: |
| 193 void AddChange(const Change& change); | 192 void AddChange(const Change& change); |
| 194 | 193 |
| 195 Delegate* delegate_; | 194 Delegate* delegate_; |
| 196 std::vector<Change> changes_; | 195 std::vector<Change> changes_; |
| 197 | 196 |
| 198 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); | 197 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); |
| 199 }; | 198 }; |
| 200 | 199 |
| 201 } // namespace ws | 200 } // namespace ws |
| 202 | 201 |
| 203 } // namespace ui | 202 } // namespace ui |
| 204 | 203 |
| 205 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ | 204 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ |
| OLD | NEW |