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

Unified Diff: content/browser/presentation/presentation_type_converters.cc

Issue 2622993002: [Presentation API] Move presentation.mojom to content/common/presentation (Closed)
Patch Set: Fix presentation_service_delegate. DEPS failure Created 3 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 827897cbeae85d1db838ad13c6c7ce526b0747cc..69c92d24c9ed091ad74e30a161aadb7b8d2b3e64 100644
--- a/content/browser/presentation/presentation_type_converters.cc
+++ b/content/browser/presentation/presentation_type_converters.cc
@@ -8,51 +8,52 @@
namespace content {
-blink::mojom::PresentationErrorType PresentationErrorTypeToMojo(
+content::mojom::PresentationErrorType PresentationErrorTypeToMojo(
content::PresentationErrorType input) {
switch (input) {
case content::PRESENTATION_ERROR_NO_AVAILABLE_SCREENS:
- return blink::mojom::PresentationErrorType::NO_AVAILABLE_SCREENS;
+ return content::mojom::PresentationErrorType::NO_AVAILABLE_SCREENS;
case content::PRESENTATION_ERROR_SESSION_REQUEST_CANCELLED:
- return blink::mojom::PresentationErrorType::SESSION_REQUEST_CANCELLED;
+ return content::mojom::PresentationErrorType::SESSION_REQUEST_CANCELLED;
case content::PRESENTATION_ERROR_NO_PRESENTATION_FOUND:
- return blink::mojom::PresentationErrorType::NO_PRESENTATION_FOUND;
+ return content::mojom::PresentationErrorType::NO_PRESENTATION_FOUND;
case content::PRESENTATION_ERROR_UNKNOWN:
- return blink::mojom::PresentationErrorType::UNKNOWN;
+ return content::mojom::PresentationErrorType::UNKNOWN;
}
NOTREACHED();
- return blink::mojom::PresentationErrorType::UNKNOWN;
+ return content::mojom::PresentationErrorType::UNKNOWN;
}
-blink::mojom::PresentationConnectionState PresentationConnectionStateToMojo(
+content::mojom::PresentationConnectionState PresentationConnectionStateToMojo(
content::PresentationConnectionState state) {
switch (state) {
case content::PRESENTATION_CONNECTION_STATE_CONNECTING:
- return blink::mojom::PresentationConnectionState::CONNECTING;
+ return content::mojom::PresentationConnectionState::CONNECTING;
case content::PRESENTATION_CONNECTION_STATE_CONNECTED:
- return blink::mojom::PresentationConnectionState::CONNECTED;
+ return content::mojom::PresentationConnectionState::CONNECTED;
case content::PRESENTATION_CONNECTION_STATE_CLOSED:
- return blink::mojom::PresentationConnectionState::CLOSED;
+ return content::mojom::PresentationConnectionState::CLOSED;
case content::PRESENTATION_CONNECTION_STATE_TERMINATED:
- return blink::mojom::PresentationConnectionState::TERMINATED;
+ return content::mojom::PresentationConnectionState::TERMINATED;
}
NOTREACHED();
- return blink::mojom::PresentationConnectionState::TERMINATED;
+ return content::mojom::PresentationConnectionState::TERMINATED;
}
-blink::mojom::PresentationConnectionCloseReason
+content::mojom::PresentationConnectionCloseReason
PresentationConnectionCloseReasonToMojo(
content::PresentationConnectionCloseReason reason) {
switch (reason) {
case content::PRESENTATION_CONNECTION_CLOSE_REASON_CONNECTION_ERROR:
- return blink::mojom::PresentationConnectionCloseReason::CONNECTION_ERROR;
+ return content::mojom::PresentationConnectionCloseReason::
+ CONNECTION_ERROR;
case content::PRESENTATION_CONNECTION_CLOSE_REASON_CLOSED:
- return blink::mojom::PresentationConnectionCloseReason::CLOSED;
+ return content::mojom::PresentationConnectionCloseReason::CLOSED;
case content::PRESENTATION_CONNECTION_CLOSE_REASON_WENT_AWAY:
- return blink::mojom::PresentationConnectionCloseReason::WENT_AWAY;
+ return content::mojom::PresentationConnectionCloseReason::WENT_AWAY;
}
NOTREACHED();
- return blink::mojom::PresentationConnectionCloseReason::CONNECTION_ERROR;
+ return content::mojom::PresentationConnectionCloseReason::CONNECTION_ERROR;
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698