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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/nfc/nfc_tag_technology.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/nfc/nfc_tag_technology.cc
diff --git a/device/nfc/nfc_tag_technology.cc b/device/nfc/nfc_tag_technology.cc
new file mode 100644
index 0000000000000000000000000000000000000000..e3e1b6de9fd647f6319a2c776efdb23868142987
--- /dev/null
+++ b/device/nfc/nfc_tag_technology.cc
@@ -0,0 +1,39 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "device/nfc/nfc_tag_technology.h"
+
+#include "device/nfc/nfc_tag.h"
+
+namespace device {
+
+NfcTagTechnology::NfcTagTechnology(NfcTag* tag) : tag_(tag) {
+}
+
+NfcTagTechnology::NfcTagTechnology() : tag_(NULL) {
+}
+
+NfcTagTechnology::~NfcTagTechnology() {
+}
+
+bool NfcNdefTagTechnology::IsSupportedByTag() const {
+ return tag() && (tag()->GetSupportedTechnologies() &
+ NfcTagTechnology::kTechnologyTypeNdef);
+}
+
+NfcNdefTagTechnology::NfcNdefTagTechnology(NfcTag* tag)
+ : NfcTagTechnology(tag) {
+}
+
+NfcNdefTagTechnology::~NfcNdefTagTechnology() {
+}
+
+// static
+NfcNdefTagTechnology* NfcNdefTagTechnology::Create(NfcTag* tag) {
+ // TODO(armansito): Create and return platform-specific implementation
+ // instances here.
+ return NULL;
+}
+
+} // namespace device
« 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