Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / public / platform / modules / presentation / WebPresentationError.h
blobd4d436df0aea85e71a23c4a421c73ce08bd73740
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
3 // found in the LICENSE file.
5 #ifndef WebPresentationError_h
6 #define WebPresentationError_h
8 #include "public/platform/WebString.h"
10 namespace blink {
12 struct WebPresentationError {
13 enum ErrorType {
14 ErrorTypeNoAvailableScreens = 0,
15 ErrorTypeSessionRequestCancelled,
16 ErrorTypeNoPresentationFound,
17 ErrorTypeAvailabilityNotSupported,
18 ErrorTypeUnknown,
19 ErrorTypeLast = ErrorTypeUnknown
22 WebPresentationError(ErrorType errorType, const WebString& message)
23 : errorType(errorType)
24 , message(message)
28 ErrorType errorType;
29 WebString message;
32 } // namespace blink
34 #endif // WebPresentationError_h