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..af7b38f917abde0dab63384d8143958f2d34b609 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 |
riju_
2015/11/16 15:05:01
nit: s/todo/TODO and a . at the end.
shalamov
2015/11/19 12:59:06
Done.
|
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError)); |
+} |
+ |
+ScriptPromise NFC::cancelWatch(ScriptState* scriptState, long id) |
+{ |
+ // todo(shalamov): To be implemented |
riju_
2015/11/16 15:05:01
nit: same as above.
shalamov
2015/11/19 12:59:06
Done.
|
+ return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError)); |
} |
-ScriptPromise NFC::requestAdapter(ScriptState* scriptState) |
+ScriptPromise NFC::cancelWatch(ScriptState* scriptState) |
{ |
- // TODO(riju): To be implemented. |
+ // todo(shalamov): To be implemented |
riju_
2015/11/16 15:05:01
nit: same as above.
shalamov
2015/11/19 12:59:06
Done.
|
return ScriptPromise::rejectWithDOMException(scriptState, DOMException::create(NotSupportedError)); |
} |