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

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: rebase 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 Change(); 68 Change();
69 Change(const Change& other); 69 Change(const Change& other);
70 ~Change(); 70 ~Change();
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 mojo::Rect bounds; 78 gfx::Rect bounds;
79 mojo::Rect bounds2; 79 gfx::Rect bounds2;
80 int32_t event_action; 80 int32_t event_action;
81 uint32_t event_observer_id; 81 uint32_t event_observer_id;
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;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 // WindowTreeClient function. 135 // WindowTreeClient function.
136 void OnEmbed(ClientSpecificId client_id, 136 void OnEmbed(ClientSpecificId client_id,
137 mojom::WindowDataPtr root, 137 mojom::WindowDataPtr root,
138 bool drawn); 138 bool drawn);
139 void OnEmbeddedAppDisconnected(Id window_id); 139 void OnEmbeddedAppDisconnected(Id window_id);
140 void OnUnembed(Id window_id); 140 void OnUnembed(Id window_id);
141 void OnLostCapture(Id window_id); 141 void OnLostCapture(Id window_id);
142 void OnTransientWindowAdded(Id window_id, Id transient_window_id); 142 void OnTransientWindowAdded(Id window_id, Id transient_window_id);
143 void OnTransientWindowRemoved(Id window_id, Id transient_window_id); 143 void OnTransientWindowRemoved(Id window_id, Id transient_window_id);
144 void OnWindowBoundsChanged(Id window_id, 144 void OnWindowBoundsChanged(Id window_id,
145 mojo::RectPtr old_bounds, 145 const gfx::Rect& old_bounds,
146 mojo::RectPtr new_bounds); 146 const gfx::Rect& new_bounds);
147 void OnWindowHierarchyChanged(Id window_id, 147 void OnWindowHierarchyChanged(Id window_id,
148 Id old_parent_id, 148 Id old_parent_id,
149 Id new_parent_id, 149 Id new_parent_id,
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);
(...skipping 19 matching lines...) Expand all
176 std::vector<Change> changes_; 176 std::vector<Change> changes_;
177 177
178 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); 178 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker);
179 }; 179 };
180 180
181 } // namespace ws 181 } // namespace ws
182 182
183 } // namespace mus 183 } // namespace mus
184 184
185 #endif // COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ 185 #endif // COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698