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

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

Issue 1883263002: mash: Repost mouse pressed event when closing Ash system tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 8 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
« no previous file with comments | « components/mus/ws/event_dispatcher_delegate.h ('k') | components/mus/ws/test_change_tracker.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "components/mus/common/types.h" 14 #include "components/mus/common/types.h"
15 #include "components/mus/public/interfaces/window_tree.mojom.h" 15 #include "components/mus/public/interfaces/window_tree.mojom.h"
16 #include "mojo/public/cpp/bindings/array.h" 16 #include "mojo/public/cpp/bindings/array.h"
17 #include "ui/gfx/geometry/point.h"
17 #include "ui/mojo/geometry/geometry.mojom.h" 18 #include "ui/mojo/geometry/geometry.mojom.h"
18 19
19 namespace mus { 20 namespace mus {
20 21
21 namespace ws { 22 namespace ws {
22 23
23 enum ChangeType { 24 enum ChangeType {
24 CHANGE_TYPE_EMBED, 25 CHANGE_TYPE_EMBED,
25 CHANGE_TYPE_EMBEDDED_APP_DISCONNECTED, 26 CHANGE_TYPE_EMBEDDED_APP_DISCONNECTED,
26 CHANGE_TYPE_UNEMBED, 27 CHANGE_TYPE_UNEMBED,
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ~Change(); 71 ~Change();
71 72
72 ChangeType type; 73 ChangeType type;
73 ConnectionSpecificId connection_id; 74 ConnectionSpecificId connection_id;
74 std::vector<TestWindow> windows; 75 std::vector<TestWindow> windows;
75 Id window_id; 76 Id window_id;
76 Id window_id2; 77 Id window_id2;
77 Id window_id3; 78 Id window_id3;
78 mojo::Rect bounds; 79 mojo::Rect bounds;
79 mojo::Rect bounds2; 80 mojo::Rect bounds2;
81 uint32_t event_id;
80 int32_t event_action; 82 int32_t event_action;
83 gfx::Point event_location;
81 mojo::String embed_url; 84 mojo::String embed_url;
82 mojom::OrderDirection direction; 85 mojom::OrderDirection direction;
83 bool bool_value; 86 bool bool_value;
84 float float_value; 87 float float_value;
85 std::string property_key; 88 std::string property_key;
86 std::string property_value; 89 std::string property_value;
87 int32_t cursor_id; 90 int32_t cursor_id;
88 uint32_t change_id; 91 uint32_t change_id;
89 }; 92 };
90 93
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 Id old_parent_id, 152 Id old_parent_id,
150 Id new_parent_id, 153 Id new_parent_id,
151 mojo::Array<mojom::WindowDataPtr> windows); 154 mojo::Array<mojom::WindowDataPtr> windows);
152 void OnWindowReordered(Id window_id, 155 void OnWindowReordered(Id window_id,
153 Id relative_window_id, 156 Id relative_window_id,
154 mojom::OrderDirection direction); 157 mojom::OrderDirection direction);
155 void OnWindowDeleted(Id window_id); 158 void OnWindowDeleted(Id window_id);
156 void OnWindowVisibilityChanged(Id window_id, bool visible); 159 void OnWindowVisibilityChanged(Id window_id, bool visible);
157 void OnWindowOpacityChanged(Id window_id, float opacity); 160 void OnWindowOpacityChanged(Id window_id, float opacity);
158 void OnWindowParentDrawnStateChanged(Id window_id, bool drawn); 161 void OnWindowParentDrawnStateChanged(Id window_id, bool drawn);
159 void OnWindowInputEvent(Id window_id, mojom::EventPtr event); 162 void OnWindowInputEvent(uint32_t event_id,
163 Id window_id,
164 mojom::EventPtr event);
160 void OnWindowSharedPropertyChanged(Id window_id, 165 void OnWindowSharedPropertyChanged(Id window_id,
161 mojo::String name, 166 mojo::String name,
162 mojo::Array<uint8_t> data); 167 mojo::Array<uint8_t> data);
163 void OnWindowFocused(Id window_id); 168 void OnWindowFocused(Id window_id);
164 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id); 169 void OnWindowPredefinedCursorChanged(Id window_id, mojom::Cursor cursor_id);
165 void OnChangeCompleted(uint32_t change_id, bool success); 170 void OnChangeCompleted(uint32_t change_id, bool success);
166 void OnTopLevelCreated(uint32_t change_id, 171 void OnTopLevelCreated(uint32_t change_id,
167 mojom::WindowDataPtr window_data, 172 mojom::WindowDataPtr window_data,
168 bool drawn); 173 bool drawn);
169 174
170 private: 175 private:
171 void AddChange(const Change& change); 176 void AddChange(const Change& change);
172 177
173 Delegate* delegate_; 178 Delegate* delegate_;
174 std::vector<Change> changes_; 179 std::vector<Change> changes_;
175 180
176 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker); 181 DISALLOW_COPY_AND_ASSIGN(TestChangeTracker);
177 }; 182 };
178 183
179 } // namespace ws 184 } // namespace ws
180 185
181 } // namespace mus 186 } // namespace mus
182 187
183 #endif // COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_ 188 #endif // COMPONENTS_MUS_WS_TEST_CHANGE_TRACKER_H_
OLDNEW
« no previous file with comments | « components/mus/ws/event_dispatcher_delegate.h ('k') | components/mus/ws/test_change_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698