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

Unified Diff: content/browser/presentation/presentation_type_converters.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: Created 4 years, 12 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: content/browser/presentation/presentation_type_converters.cc
diff --git a/content/browser/presentation/presentation_type_converters.cc b/content/browser/presentation/presentation_type_converters.cc
index ff322315a31d39a737cd3cf6b987511ddca9ab67..aedfa1ae8c01cfe8e4f41218e0ebf1969f2a2167 100644
--- a/content/browser/presentation/presentation_type_converters.cc
+++ b/content/browser/presentation/presentation_type_converters.cc
@@ -12,30 +12,30 @@ presentation::PresentationErrorType PresentationErrorTypeToMojo(
content::PresentationErrorType input) {
switch (input) {
case content::PRESENTATION_ERROR_NO_AVAILABLE_SCREENS:
- return presentation::PRESENTATION_ERROR_TYPE_NO_AVAILABLE_SCREENS;
+ return presentation::PresentationErrorType::NO_AVAILABLE_SCREENS;
case content::PRESENTATION_ERROR_SESSION_REQUEST_CANCELLED:
- return presentation::PRESENTATION_ERROR_TYPE_SESSION_REQUEST_CANCELLED;
+ return presentation::PresentationErrorType::SESSION_REQUEST_CANCELLED;
case content::PRESENTATION_ERROR_NO_PRESENTATION_FOUND:
- return presentation::PRESENTATION_ERROR_TYPE_NO_PRESENTATION_FOUND;
+ return presentation::PresentationErrorType::NO_PRESENTATION_FOUND;
case content::PRESENTATION_ERROR_UNKNOWN:
- return presentation::PRESENTATION_ERROR_TYPE_UNKNOWN;
+ return presentation::PresentationErrorType::UNKNOWN;
}
NOTREACHED();
- return presentation::PRESENTATION_ERROR_TYPE_UNKNOWN;
+ return presentation::PresentationErrorType::UNKNOWN;
}
presentation::PresentationConnectionState PresentationConnectionStateToMojo(
content::PresentationConnectionState state) {
switch (state) {
case content::PRESENTATION_CONNECTION_STATE_CONNECTED:
- return presentation::PRESENTATION_CONNECTION_STATE_CONNECTED;
+ return presentation::PresentationConnectionState::CONNECTED;
case content::PRESENTATION_CONNECTION_STATE_CLOSED:
- return presentation::PRESENTATION_CONNECTION_STATE_CLOSED;
+ return presentation::PresentationConnectionState::CLOSED;
case content::PRESENTATION_CONNECTION_STATE_TERMINATED:
- return presentation::PRESENTATION_CONNECTION_STATE_TERMINATED;
+ return presentation::PresentationConnectionState::TERMINATED;
}
NOTREACHED();
- return presentation::PRESENTATION_CONNECTION_STATE_TERMINATED;
+ return presentation::PresentationConnectionState::TERMINATED;
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698