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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 ChangeType type; | 72 ChangeType type; |
73 ClientSpecificId client_id; | 73 ClientSpecificId client_id; |
74 std::vector<TestWindow> windows; | 74 std::vector<TestWindow> windows; |
75 Id window_id; | 75 Id window_id; |
76 Id window_id2; | 76 Id window_id2; |
77 Id window_id3; | 77 Id window_id3; |
78 gfx::Rect bounds; | 78 gfx::Rect bounds; |
79 gfx::Rect bounds2; | 79 gfx::Rect bounds2; |
80 int32_t event_action; | 80 int32_t event_action; |
81 uint32_t pointer_watcher_id; | 81 bool matches_pointer_watcher; |
82 mojo::String embed_url; | 82 mojo::String embed_url; |
83 mojom::OrderDirection direction; | 83 mojom::OrderDirection direction; |
84 bool bool_value; | 84 bool bool_value; |
85 float float_value; | 85 float float_value; |
86 std::string property_key; | 86 std::string property_key; |
87 std::string property_value; | 87 std::string property_value; |
88 int32_t cursor_id; | 88 int32_t cursor_id; |
89 uint32_t change_id; | 89 uint32_t change_id; |
90 }; | 90 }; |
91 | 91 |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 const ui::Event& event, | 159 const ui::Event& event, |
160 uint32_t pointer_watcher_id); | 160 bool matches_pointer_watcher); |
161 void OnPointerEventObserved(const ui::Event& event, | 161 void OnPointerEventObserved(const ui::Event& event, |
162 uint32_t pointer_watcher_id, | |
163 uint32_t window_id); | 162 uint32_t window_id); |
164 void OnWindowSharedPropertyChanged(Id window_id, | 163 void OnWindowSharedPropertyChanged(Id window_id, |
165 mojo::String name, | 164 mojo::String name, |
166 mojo::Array<uint8_t> data); | 165 mojo::Array<uint8_t> data); |
167 void OnWindowFocused(Id window_id); | 166 void OnWindowFocused(Id window_id); |
168 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id); | 167 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id); |
169 void OnChangeCompleted(uint32_t change_id, bool success); | 168 void OnChangeCompleted(uint32_t change_id, bool success); |
170 void OnTopLevelCreated(uint32_t change_id, | 169 void OnTopLevelCreated(uint32_t change_id, |
171 mojom::WindowDataPtr window_data, | 170 mojom::WindowDataPtr window_data, |
172 bool drawn); | 171 bool drawn); |
173 | 172 |
174 private: | 173 private: |
175 void AddChange(const Change& change); | 174 void AddChange(const Change& change); |
176 | 175 |
177 Delegate* delegate_; | 176 Delegate* delegate_; |
178 std::vector<Change> changes_; | 177 std::vector<Change> changes_; |
179 | 178 |
180 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); | 179 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); |
181 }; | 180 }; |
182 | 181 |
183 } // namespace ws | 182 } // namespace ws |
184 | 183 |
185 } // namespace ui | 184 } // namespace ui |
186 | 185 |
187 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ | 186 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ |
OLD | NEW |