Index: third_party/WebKit/Source/modules/nfc/NFC.cpp |
diff --git a/third_party/WebKit/Source/modules/nfc/NFC.cpp b/third_party/WebKit/Source/modules/nfc/NFC.cpp |
index ffd1cf76206f5c9254ad3843bf97b853ab103571..1f935e50c71843fda0112a89fa984b293ab30f16 100644 |
--- a/third_party/WebKit/Source/modules/nfc/NFC.cpp |
+++ b/third_party/WebKit/Source/modules/nfc/NFC.cpp |
@@ -8,6 +8,8 @@ |
#include "bindings/core/v8/ScriptPromiseResolver.h" |
#include "core/dom/DOMException.h" |
#include "core/dom/ExceptionCode.h" |
+#include "modules/nfc/NFCMessage.h" |
+#include "modules/nfc/NFCPushOptions.h" |
namespace blink { |
@@ -23,13 +25,33 @@ NFC* NFC::create(LocalFrame* frame) |
return nfc; |
} |
-NFC::~NFC() |
+ScriptPromise NFC::push(ScriptState* scriptState, const NFCPushMessage& records, const NFCPushOptions& options) |
{ |
+ // TODO(shalamov): To be implemented. |
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError)); |
+} |
+ |
+ScriptPromise NFC::cancelPush(ScriptState* scriptState, const String& target) |
+{ |
+ // TODO(shalamov): To be implemented. |
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError)); |
+} |
+ |
+ScriptPromise NFC::watch(ScriptState* scriptState, MessageCallback* callback, const NFCWatchOptions& options) |
+{ |
+ // TODO(shalamov): To be implemented. |
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError)); |
} |
-ScriptPromise NFC::requestAdapter(ScriptState* scriptState) |
+ScriptPromise NFC::cancelWatch(ScriptState* scriptState, long id) |
{ |
- // TODO(riju): To be implemented. |
+ // TODO(shalamov): To be implemented. |
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError)); |
+} |
+ |
+ScriptPromise NFC::cancelWatch(ScriptState* scriptState) |
+{ |
+ // TODO(shalamov): To be implemented. |
return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError)); |
} |