| OLD | NEW |
| (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 | |
| OLD | NEW |