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

Side by Side Diff: device/nfc/nfc_tag_technology.cc

Issue 77563002: nfc: Add native NFC API definitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed clang error. Created 7 years 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 | Annotate | Revision Log
« no previous file with comments | « device/nfc/nfc_tag_technology.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 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 #include "device/nfc/nfc_tag_technology.h"
6
7 #include "device/nfc/nfc_tag.h"
8
9 namespace device {
10
11 NfcTagTechnology::NfcTagTechnology(NfcTag* tag) : tag_(tag) {
12 }
13
14 NfcTagTechnology::NfcTagTechnology() : tag_(NULL) {
15 }
16
17 NfcTagTechnology::~NfcTagTechnology() {
18 }
19
20 bool NfcNdefTagTechnology::IsSupportedByTag() const {
21 return tag() && (tag()->GetSupportedTechnologies() &
22 NfcTagTechnology::kTechnologyTypeNdef);
23 }
24
25 NfcNdefTagTechnology::NfcNdefTagTechnology(NfcTag* tag)
26 : NfcTagTechnology(tag) {
27 }
28
29 NfcNdefTagTechnology::~NfcNdefTagTechnology() {
30 }
31
32 // static
33 NfcNdefTagTechnology* NfcNdefTagTechnology::Create(NfcTag* tag) {
34 // TODO(armansito): Create and return platform-specific implementation
35 // instances here.
36 return NULL;
37 }
38
39 } // namespace device
OLDNEW
« no previous file with comments | « device/nfc/nfc_tag_technology.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698