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

Side by Side Diff: third_party/WebKit/public/platform/modules/presentation/presentation.mojom

Issue 2647723002: [Presentation API] reject request.start() with OperationError instead of UnknownError if previous s… (Closed)
Patch Set: add layout test for PREVIOUS_START_IN_PROGRESS error 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/platform/modules/presentation/WebPresentationError.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // TODO(crbug.com/647290): Rename "Session" to "Connection" 5 // TODO(crbug.com/647290): Rename "Session" to "Connection"
6 6
7 module blink.mojom; 7 module blink.mojom;
8 8
9 import "url/mojo/url.mojom"; 9 import "url/mojo/url.mojom";
10 10
(...skipping 12 matching lines...) Expand all
23 enum PresentationConnectionCloseReason { 23 enum PresentationConnectionCloseReason {
24 CONNECTION_ERROR, 24 CONNECTION_ERROR,
25 CLOSED, 25 CLOSED,
26 WENT_AWAY 26 WENT_AWAY
27 }; 27 };
28 28
29 enum PresentationErrorType { 29 enum PresentationErrorType {
30 NO_AVAILABLE_SCREENS, 30 NO_AVAILABLE_SCREENS,
31 SESSION_REQUEST_CANCELLED, 31 SESSION_REQUEST_CANCELLED,
32 NO_PRESENTATION_FOUND, 32 NO_PRESENTATION_FOUND,
33 PREVIOUS_START_IN_PROGRESS,
33 UNKNOWN, 34 UNKNOWN,
34 }; 35 };
35 36
36 struct PresentationError { 37 struct PresentationError {
37 PresentationErrorType error_type; 38 PresentationErrorType error_type;
38 string message; 39 string message;
39 }; 40 };
40 41
41 enum PresentationMessageType { 42 enum PresentationMessageType {
42 TEXT, 43 TEXT,
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 OnConnectionMessagesReceived(PresentationSessionInfo sessionInfo, 172 OnConnectionMessagesReceived(PresentationSessionInfo sessionInfo,
172 array<ConnectionMessage> messages); 173 array<ConnectionMessage> messages);
173 174
174 // Called on a presentation receiver when presentation connection is available 175 // Called on a presentation receiver when presentation connection is available
175 // from the controlling page. 176 // from the controlling page.
176 OnReceiverConnectionAvailable( 177 OnReceiverConnectionAvailable(
177 PresentationSessionInfo sessionInfo, 178 PresentationSessionInfo sessionInfo,
178 PresentationConnection controller_connection_ptr, 179 PresentationConnection controller_connection_ptr,
179 PresentationConnection& receiver_connection_request); 180 PresentationConnection& receiver_connection_request);
180 }; 181 };
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/modules/presentation/WebPresentationError.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698