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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothError.h

Issue 2142813003: bluetooth: Avoid including non-blink mojo bindings in blink code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Add DCHECK for enum Created 4 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 side-by-side diff with in-line comments
Download patch
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 6fcf7de19542a5afef873db37475ad97c7869456..a79837baf76391b48a7ef815ba439e3a14b2beff 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothError.h
@@ -6,7 +6,6 @@
#define BluetoothError_h
#include "platform/heap/Handle.h"
-#include "public/platform/modules/bluetooth/WebBluetoothError.h"
#include "wtf/Allocator.h"
namespace blink {
@@ -20,8 +19,8 @@ class BluetoothError {
STATIC_ONLY(BluetoothError);
public:
// Interface required by CallbackPromiseAdapter:
- using WebType = const WebBluetoothError&;
- static DOMException* take(ScriptPromiseResolver*, const WebBluetoothError&);
+ using WebType = int32_t /* Corresponds to WebBluetoothError in web_bluetooth.mojom */;
+ static DOMException* take(ScriptPromiseResolver*, int32_t error /* Corresponds to WebBluetoothError in web_bluetooth.mojom */);
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/BUILD.gn ('k') | third_party/WebKit/Source/modules/bluetooth/BluetoothError.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698