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

Unified Diff: third_party/WebKit/Source/modules/nfc/MessageCallback.h

Issue 1759373003: [webnfc] Implement nfc.watch in blink nfc module. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@implement_nfc_push_in_android
Patch Set: Fixes for comments from haraken Created 4 years, 1 month 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
« no previous file with comments | « third_party/WebKit/LayoutTests/nfc/watch.html ('k') | third_party/WebKit/Source/modules/nfc/NFC.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/nfc/MessageCallback.h
diff --git a/third_party/WebKit/Source/modules/nfc/MessageCallback.h b/third_party/WebKit/Source/modules/nfc/MessageCallback.h
index 046e277ef5c6e7b5016c835ee7dcf97872499fa0..43dcf0d531ca4ab33985b5978994a9d29b6aa6a6 100644
--- a/third_party/WebKit/Source/modules/nfc/MessageCallback.h
+++ b/third_party/WebKit/Source/modules/nfc/MessageCallback.h
@@ -10,12 +10,19 @@
namespace blink {
class NFCMessage;
+class ScriptState;
class MessageCallback : public GarbageCollectedFinalized<MessageCallback> {
public:
virtual ~MessageCallback() {}
DEFINE_INLINE_VIRTUAL_TRACE() {}
virtual void handleMessage(const NFCMessage&) = 0;
+
+ void setScriptState(ScriptState* scriptState) { m_scriptState = scriptState; }
+ ScriptState* getScriptState() const { return m_scriptState.get(); }
+
+ private:
+ RefPtr<ScriptState> m_scriptState;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/LayoutTests/nfc/watch.html ('k') | third_party/WebKit/Source/modules/nfc/NFC.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698