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

Side by Side Diff: Source/modules/bluetooth/BluetoothError.cpp

Issue 1228283003: Attach a WebBluetooth to the LocalFrame and use it if it's available. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@error-enum-cleanup
Patch Set: Always use BluetoothSupplement to get the WebBluetooth instance. Created 5 years, 5 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
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 #include "config.h" 5 #include "config.h"
6 #include "modules/bluetooth/BluetoothError.h" 6 #include "modules/bluetooth/BluetoothError.h"
7 7
8 #include "core/dom/DOMException.h" 8 #include "core/dom/DOMException.h"
9 #include "core/dom/ExceptionCode.h" 9 #include "core/dom/ExceptionCode.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // NotSupportedErrors: 49 // NotSupportedErrors:
50 MAP_ERROR(GATTUnknownError, NotSupportedError, "GATT Error Unknown."); 50 MAP_ERROR(GATTUnknownError, NotSupportedError, "GATT Error Unknown.");
51 MAP_ERROR(GATTUnknownFailure, NotSupportedError, "GATT operation failed for unknown reason."); 51 MAP_ERROR(GATTUnknownFailure, NotSupportedError, "GATT operation failed for unknown reason.");
52 MAP_ERROR(GATTNotPermitted, NotSupportedError, "GATT operation not permi tted."); 52 MAP_ERROR(GATTNotPermitted, NotSupportedError, "GATT operation not permi tted.");
53 MAP_ERROR(GATTNotSupported, NotSupportedError, "GATT Error: Not supporte d."); 53 MAP_ERROR(GATTNotSupported, NotSupportedError, "GATT Error: Not supporte d.");
54 MAP_ERROR(GATTUntranslatedErrorCode, NotSupportedError, "GATT Error: Unk nown GattErrorCode."); 54 MAP_ERROR(GATTUntranslatedErrorCode, NotSupportedError, "GATT Error: Unk nown GattErrorCode.");
55 55
56 // SecurityErrors: 56 // SecurityErrors:
57 MAP_ERROR(GATTNotAuthorized, SecurityError, "GATT operation not authoriz ed."); 57 MAP_ERROR(GATTNotAuthorized, SecurityError, "GATT operation not authoriz ed.");
58 MAP_ERROR(RequestDeviceWithoutFrame, SecurityError, "No window to show t he requestDevice() dialog.");
58 59
59 #undef MAP_ERROR 60 #undef MAP_ERROR
60 } 61 }
61 62
62 ASSERT_NOT_REACHED(); 63 ASSERT_NOT_REACHED();
63 return DOMException::create(UnknownError); 64 return DOMException::create(UnknownError);
64 } 65 }
65 66
66 } // namespace blink 67 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/bluetooth/BluetoothDevice.cpp ('k') | Source/modules/bluetooth/BluetoothGATTCharacteristic.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698