Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(239)

Side by Side Diff: components/mus/ws/test_change_tracker.h

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ 5 #ifndef COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_
6 #define COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ 6 #define COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 Change(); 69 Change();
70 Change(const Change& other); 70 Change(const Change& other);
71 ~Change(); 71 ~Change();
72 72
73 ChangeType type; 73 ChangeType type;
74 ConnectionSpecificId connection_id; 74 ConnectionSpecificId connection_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 mojo::Rect bounds; 79 gfx::Rect bounds;
80 mojo::Rect bounds2; 80 gfx::Rect bounds2;
81 int32_t event_action; 81 int32_t event_action;
82 uint32_t event_observer_id; 82 uint32_t event_observer_id;
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;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // WindowTreeClient function. 136 // WindowTreeClient function.
137 void OnEmbed(ConnectionSpecificId connection_id, 137 void OnEmbed(ConnectionSpecificId connection_id,
138 mojom::WindowDataPtr root, 138 mojom::WindowDataPtr root,
139 bool drawn); 139 bool drawn);
140 void OnEmbeddedAppDisconnected(Id window_id); 140 void OnEmbeddedAppDisconnected(Id window_id);
141 void OnUnembed(Id window_id); 141 void OnUnembed(Id window_id);
142 void OnLostCapture(Id window_id); 142 void OnLostCapture(Id window_id);
143 void OnTransientWindowAdded(Id window_id, Id transient_window_id); 143 void OnTransientWindowAdded(Id window_id, Id transient_window_id);
144 void OnTransientWindowRemoved(Id window_id, Id transient_window_id); 144 void OnTransientWindowRemoved(Id window_id, Id transient_window_id);
145 void OnWindowBoundsChanged(Id window_id, 145 void OnWindowBoundsChanged(Id window_id,
146 mojo::RectPtr old_bounds, 146 const gfx::Rect& old_bounds,
147 mojo::RectPtr new_bounds); 147 const gfx::Rect& new_bounds);
148 void OnWindowViewportMetricsChanged(mojom::ViewportMetricsPtr old_bounds, 148 void OnWindowViewportMetricsChanged(mojom::ViewportMetricsPtr old_bounds,
149 mojom::ViewportMetricsPtr new_bounds); 149 mojom::ViewportMetricsPtr new_bounds);
150 void OnWindowHierarchyChanged(Id window_id, 150 void OnWindowHierarchyChanged(Id window_id,
151 Id old_parent_id, 151 Id old_parent_id,
152 Id new_parent_id, 152 Id new_parent_id,
153 mojo::Array<mojom::WindowDataPtr> windows); 153 mojo::Array<mojom::WindowDataPtr> windows);
154 void OnWindowReordered(Id window_id, 154 void OnWindowReordered(Id window_id,
155 Id relative_window_id, 155 Id relative_window_id,
156 mojom::OrderDirection direction); 156 mojom::OrderDirection direction);
157 void OnWindowDeleted(Id window_id); 157 void OnWindowDeleted(Id window_id);
(...skipping 21 matching lines...) Expand all
179 std::vector<Change> changes_; 179 std::vector<Change> changes_;
180 180
181 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); 181 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker);
182 }; 182 };
183 183
184 } // namespace ws 184 } // namespace ws
185 185
186 } // namespace mus 186 } // namespace mus
187 187
188 #endif // COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ 188 #endif // COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698