| 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
|
|
|