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

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: 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: 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 cd649976d5f1b56486c7b71a01c247a8d46e831a..6068950add495eb5fa8c23e457ae9d5f8ecb5de0 100644
--- a/content/browser/presentation/presentation_type_converters.cc
+++ b/content/browser/presentation/presentation_type_converters.cc
@@ -12,32 +12,32 @@ 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_CONNECTING:
- return presentation::PRESENTATION_CONNECTION_STATE_CONNECTING;
+ return presentation::PresentationConnectionState::CONNECTING;
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