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

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

Issue 650613005: bluetooth: Initial WebBluetooth & WebBluetoothError. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Abandoned initial approach implementing BluetoothMock in Blink. Created 6 years, 2 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: Source/modules/bluetooth/BluetoothError.h
diff --git a/Source/modules/push_messaging/PushError.h b/Source/modules/bluetooth/BluetoothError.h
similarity index 56%
copy from Source/modules/push_messaging/PushError.h
copy to Source/modules/bluetooth/BluetoothError.h
index 78aed14cf3dc0c6b5f6f88320b6d6e3bc12efb9d..da71d670edb0aea3754577a04a1f0c274da17098 100644
--- a/Source/modules/push_messaging/PushError.h
+++ b/Source/modules/bluetooth/BluetoothError.h
@@ -2,29 +2,29 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PushError_h
-#define PushError_h
+#ifndef BluetoothError_h
+#define BluetoothError_h
#include "core/dom/DOMException.h"
#include "platform/heap/Handle.h"
-#include "public/platform/WebPushError.h"
namespace blink {
class ScriptPromiseResolver;
+struct WebBluetoothError;
scheib 2014/10/19 03:54:21 I will add a class comment here: // BluetoothErro
-class PushError {
- WTF_MAKE_NONCOPYABLE(PushError);
+class BluetoothError {
+ WTF_MAKE_NONCOPYABLE(BluetoothError);
public:
// For CallbackPromiseAdapter.
- typedef WebPushError WebType;
- static PassRefPtrWillBeRawPtr<DOMException> take(ScriptPromiseResolver*, WebType* webErrorRaw);
- static void dispose(WebType* webErrorRaw);
+ typedef WebBluetoothError WebType;
+ static PassRefPtrWillBeRawPtr<DOMException> take(ScriptPromiseResolver*, WebBluetoothError*);
+ static void dispose(blink::WebBluetoothError*);
private:
- PushError() WTF_DELETED_FUNCTION;
+ BluetoothError() WTF_DELETED_FUNCTION;
};
} // namespace blink
-#endif // PushError_h
+#endif // BluetoothError_h

Powered by Google App Engine
This is Rietveld 408576698