Chromium Code Reviews| Index: third_party/WebKit/Source/modules/bluetooth/BluetoothError.h |
| diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h |
| index 311677d96a9fef7cf2ac76630f024f4a1c811cea..1cc42bd9c84f0facd1f4809f5c510ce4b310f0a9 100644 |
| --- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h |
| +++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h |
| @@ -6,6 +6,7 @@ |
| #define BluetoothError_h |
| #include "platform/heap/Handle.h" |
| +#include "third_party/WebKit/public/platform/modules/bluetooth/web_bluetooth.mojom-blink.h" |
| #include "wtf/Allocator.h" |
| namespace blink { |
| @@ -26,6 +27,13 @@ class BluetoothError { |
| ScriptPromiseResolver*, |
| int32_t |
| error /* Corresponds to WebBluetoothResult in web_bluetooth.mojom */); |
| + static DOMException* take( |
| + ScriptPromiseResolver*, |
| + int32_t |
| + error /* Corresponds to WebBluetoothResult in web_bluetooth.mojom */, |
| + String detailedMessage /* Detailed error message - can be empty.*/); |
| + static bool isSameError(int32_t error, |
|
scheib
2016/12/14 18:22:46
Comment this method, please, to explain here why i
perja
2016/12/15 10:54:01
Done.
|
| + mojom::blink::WebBluetoothResult webError); |
| }; |
| } // namespace blink |