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

Unified Diff: components/mus/ws/test_change_tracker.cc

Issue 1527183003: Change mojo enums to be scoped enums in the generated C++ bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-binding-equals
Patch Set: rebase Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/mus/ws/test_change_tracker.cc
diff --git a/components/mus/ws/test_change_tracker.cc b/components/mus/ws/test_change_tracker.cc
index a08f923de65a8620157e8c74403bdf90570f96d5..2ea6796428be2ce02612d45bec0b82b15a08fb57 100644
--- a/components/mus/ws/test_change_tracker.cc
+++ b/components/mus/ws/test_change_tracker.cc
@@ -31,7 +31,7 @@ std::string RectToString(const mojo::Rect& rect) {
}
std::string DirectionToString(mojom::OrderDirection direction) {
- return direction == mojom::ORDER_DIRECTION_ABOVE ? "above" : "below";
+ return direction == mojom::OrderDirection::ABOVE ? "above" : "below";
}
std::string ChangeToDescription1(const Change& change) {
@@ -187,7 +187,7 @@ Change::Change()
window_id2(0),
window_id3(0),
event_action(0),
- direction(mojom::ORDER_DIRECTION_ABOVE),
+ direction(mojom::OrderDirection::ABOVE),
bool_value(false),
change_id(0u) {}
@@ -317,7 +317,7 @@ void TestChangeTracker::OnWindowInputEvent(Id window_id,
Change change;
change.type = CHANGE_TYPE_INPUT_EVENT;
change.window_id = window_id;
- change.event_action = event->action;
+ change.event_action = static_cast<int32_t>(event->action);
AddChange(change);
}
@@ -348,7 +348,7 @@ void TestChangeTracker::OnWindowPredefinedCursorChanged(
Change change;
change.type = CHANGE_TYPE_CURSOR_CHANGED;
change.window_id = window_id;
- change.cursor_id = cursor_id;
+ change.cursor_id = static_cast<int32_t>(cursor_id);
AddChange(change);
}
« no previous file with comments | « components/mus/ws/server_window_surface_manager_test_api.cc ('k') | components/mus/ws/transient_windows_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698