blob: fa2b66a2baf0de378bbc4501c1360932bb41b770 [file] [log] [blame]
// Copyright 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