| 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 bool matches_pointer_watcher; | 82 bool matches_pointer_watcher; |
| 83 mojo::String embed_url; | 83 mojo::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 cc::SurfaceSequence surface_sequence; | |
| 93 gfx::Size frame_size; | 92 gfx::Size frame_size; |
| 94 float device_scale_factor; | 93 float device_scale_factor; |
| 95 }; | 94 }; |
| 96 | 95 |
| 97 // Converts Changes to string descriptions. | 96 // Converts Changes to string descriptions. |
| 98 std::vector<std::string> ChangesToDescription1( | 97 std::vector<std::string> ChangesToDescription1( |
| 99 const std::vector<Change>& changes); | 98 const std::vector<Change>& changes); |
| 100 | 99 |
| 101 // Convenience for returning the description of the first item in |changes|. | 100 // Convenience for returning the description of the first item in |changes|. |
| 102 // Returns an empty string if |changes| has something other than one entry. | 101 // Returns an empty string if |changes| has something other than one entry. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 mojo::String name, | 168 mojo::String name, |
| 170 mojo::Array<uint8_t> data); | 169 mojo::Array<uint8_t> data); |
| 171 void OnWindowFocused(Id window_id); | 170 void OnWindowFocused(Id window_id); |
| 172 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id); | 171 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id); |
| 173 void OnChangeCompleted(uint32_t change_id, bool success); | 172 void OnChangeCompleted(uint32_t change_id, bool success); |
| 174 void OnTopLevelCreated(uint32_t change_id, | 173 void OnTopLevelCreated(uint32_t change_id, |
| 175 mojom::WindowDataPtr window_data, | 174 mojom::WindowDataPtr window_data, |
| 176 bool drawn); | 175 bool drawn); |
| 177 void OnWindowSurfaceChanged(Id window_id, | 176 void OnWindowSurfaceChanged(Id window_id, |
| 178 const cc::SurfaceId& surface_id, | 177 const cc::SurfaceId& surface_id, |
| 179 const cc::SurfaceSequence& surface_sequence, | |
| 180 const gfx::Size& frame_size, | 178 const gfx::Size& frame_size, |
| 181 float device_scale_factor); | 179 float device_scale_factor); |
| 182 | 180 |
| 183 private: | 181 private: |
| 184 void AddChange(const Change& change); | 182 void AddChange(const Change& change); |
| 185 | 183 |
| 186 Delegate* delegate_; | 184 Delegate* delegate_; |
| 187 std::vector<Change> changes_; | 185 std::vector<Change> changes_; |
| 188 | 186 |
| 189 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); | 187 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); |
| 190 }; | 188 }; |
| 191 | 189 |
| 192 } // namespace ws | 190 } // namespace ws |
| 193 | 191 |
| 194 } // namespace ui | 192 } // namespace ui |
| 195 | 193 |
| 196 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ | 194 #endif // SERVICES_UI_WS_TEST_CHANGE_TRACKER_H_ |
| OLD | NEW |