| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |