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

Side by Side Diff: third_party/WebKit/public/platform/modules/nfc/WebNFCObserver.h

Issue 1708543002: [webnfc] Implement push() method in blink nfc module. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onionsoup_webnfc
Patch Set: Move dependency from content_browsertests to layouttest_support_content Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebNFCObserver_h
6 #define WebNFCObserver_h
7
8 namespace blink {
9
10 struct WebNFCMessage;
11
12 // Observer interface that should be implemented in order to get notification
13 // about triggered NFC watch.
14 class WebNFCObserver {
15 public:
16 virtual ~WebNFCObserver() { }
17
18 // The id is an identifier of the registered NFC watch that was obtained aft er
19 // calling watch method (https://w3c.github.io/web-nfc/#the-watch-method).
20 // The WebNFCMessage that matches NFC watch filtering criteria is provided t o the callback.
21 // See https://w3c.github.io/web-nfc/#idl-def-messagecallback
22 virtual void onWatch(long id, const WebNFCMessage&) = 0;
23 };
24
25 } // namespace blink
26
27 #endif // WebNFCObserver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698