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

Side by Side Diff: public/platform/modules/bluetooth/WebBluetoothError.h

Issue 1179963002: bluetooth: Add DOMErrors in WebBluetooth Spec to WebBluetooth interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-read-value-impl
Patch Set: Created 5 years, 6 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 | « Source/modules/bluetooth/BluetoothError.cpp ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef WebBluetoothError_h 5 #ifndef WebBluetoothError_h
6 #define WebBluetoothError_h 6 #define WebBluetoothError_h
7 7
8 #include "public/platform/WebString.h" 8 #include "public/platform/WebString.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 // Error object when a bluetooth request can not be satisfied used to create 12 // Error object when a bluetooth request can not be satisfied used to create
13 // DOMExceptions. 13 // DOMExceptions.
14 struct WebBluetoothError { 14 struct WebBluetoothError {
15 enum ErrorType { 15 enum ErrorType {
16 AbortError,
17 InvalidModificationError,
18 InvalidStateError,
16 NetworkError, 19 NetworkError,
17 NotFoundError, 20 NotFoundError,
18 SecurityError 21 NotSupportedError,
22 SecurityError,
23 SyntaxError
19 }; 24 };
20 25
21 WebBluetoothError(ErrorType errorType, const WebString& message) 26 WebBluetoothError(ErrorType errorType, const WebString& message)
22 : errorType(errorType) 27 : errorType(errorType)
23 , message(message) 28 , message(message)
24 { 29 {
25 } 30 }
26 31
27 ErrorType errorType; 32 ErrorType errorType;
28 WebString message; 33 WebString message;
29 }; 34 };
30 35
31 } // namespace blink 36 } // namespace blink
32 37
33 #endif // WebBluetoothError_h 38 #endif // WebBluetoothError_h
OLDNEW
« no previous file with comments | « Source/modules/bluetooth/BluetoothError.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698