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

Side by Side Diff: device/nfc/nfc_tag_chromeos.h

Issue 628873002: replace OVERRIDE and FINAL with override and final in device/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « device/nfc/nfc_peer_chromeos.h ('k') | device/nfc/nfc_tag_technology.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef DEVICE_NFC_NFC_TAG_CHROMEOS_H_ 5 #ifndef DEVICE_NFC_NFC_TAG_CHROMEOS_H_
6 #define DEVICE_NFC_NFC_TAG_CHROMEOS_H_ 6 #define DEVICE_NFC_NFC_TAG_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "chromeos/dbus/nfc_tag_client.h" 12 #include "chromeos/dbus/nfc_tag_client.h"
13 #include "dbus/object_path.h" 13 #include "dbus/object_path.h"
14 #include "device/nfc/nfc_tag.h" 14 #include "device/nfc/nfc_tag.h"
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 class NfcNdefTagTechnologyChromeOS; 18 class NfcNdefTagTechnologyChromeOS;
19 19
20 // The NfcTagChromeOS class implements device::NfcTag for the Chrome OS 20 // The NfcTagChromeOS class implements device::NfcTag for the Chrome OS
21 // platform. 21 // platform.
22 class NfcTagChromeOS : public device::NfcTag, 22 class NfcTagChromeOS : public device::NfcTag,
23 public NfcTagClient::Observer { 23 public NfcTagClient::Observer {
24 public: 24 public:
25 // device::NfcTag overrides. 25 // device::NfcTag overrides.
26 virtual void AddObserver(device::NfcTag::Observer* observer) OVERRIDE; 26 virtual void AddObserver(device::NfcTag::Observer* observer) override;
27 virtual void RemoveObserver(device::NfcTag::Observer* observer) OVERRIDE; 27 virtual void RemoveObserver(device::NfcTag::Observer* observer) override;
28 virtual std::string GetIdentifier() const OVERRIDE; 28 virtual std::string GetIdentifier() const override;
29 virtual TagType GetType() const OVERRIDE; 29 virtual TagType GetType() const override;
30 virtual bool IsReadOnly() const OVERRIDE; 30 virtual bool IsReadOnly() const override;
31 virtual device::NfcTag::Protocol GetSupportedProtocol() const OVERRIDE; 31 virtual device::NfcTag::Protocol GetSupportedProtocol() const override;
32 virtual device::NfcTagTechnology::TechnologyTypeMask 32 virtual device::NfcTagTechnology::TechnologyTypeMask
33 GetSupportedTechnologies() const OVERRIDE; 33 GetSupportedTechnologies() const override;
34 virtual bool IsReady() const OVERRIDE; 34 virtual bool IsReady() const override;
35 virtual device::NfcNdefTagTechnology* GetNdefTagTechnology() OVERRIDE; 35 virtual device::NfcNdefTagTechnology* GetNdefTagTechnology() override;
36 36
37 // NfcTagClient::Observer overrides. 37 // NfcTagClient::Observer overrides.
38 virtual void TagPropertyChanged(const dbus::ObjectPath& object_path, 38 virtual void TagPropertyChanged(const dbus::ObjectPath& object_path,
39 const std::string& property_name) OVERRIDE; 39 const std::string& property_name) override;
40 virtual void TagPropertiesReceived( 40 virtual void TagPropertiesReceived(
41 const dbus::ObjectPath& object_path) OVERRIDE; 41 const dbus::ObjectPath& object_path) override;
42 42
43 // Object path representing the remote tag object. 43 // Object path representing the remote tag object.
44 const dbus::ObjectPath& object_path() const { return object_path_; } 44 const dbus::ObjectPath& object_path() const { return object_path_; }
45 45
46 private: 46 private:
47 friend class NfcAdapterChromeOS; 47 friend class NfcAdapterChromeOS;
48 48
49 explicit NfcTagChromeOS(const dbus::ObjectPath& object_path); 49 explicit NfcTagChromeOS(const dbus::ObjectPath& object_path);
50 virtual ~NfcTagChromeOS(); 50 virtual ~NfcTagChromeOS();
51 51
52 // Object path of the tag that we are currently tracking. 52 // Object path of the tag that we are currently tracking.
53 dbus::ObjectPath object_path_; 53 dbus::ObjectPath object_path_;
54 54
55 // Stores whether or not the initial set of properties have been received. 55 // Stores whether or not the initial set of properties have been received.
56 bool is_ready_; 56 bool is_ready_;
57 57
58 // The NfcNdefTagTechnology instance that allows users to perform NDEF 58 // The NfcNdefTagTechnology instance that allows users to perform NDEF
59 // read and write on this tag. 59 // read and write on this tag.
60 scoped_ptr<NfcNdefTagTechnologyChromeOS> ndef_technology_; 60 scoped_ptr<NfcNdefTagTechnologyChromeOS> ndef_technology_;
61 61
62 // List of observers interested in event notifications from us. 62 // List of observers interested in event notifications from us.
63 ObserverList<device::NfcTag::Observer> observers_; 63 ObserverList<device::NfcTag::Observer> observers_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(NfcTagChromeOS); 65 DISALLOW_COPY_AND_ASSIGN(NfcTagChromeOS);
66 }; 66 };
67 67
68 } // namespace chromeos 68 } // namespace chromeos
69 69
70 #endif // DEVICE_NFC_NFC_TAG_CHROMEOS_H_ 70 #endif // DEVICE_NFC_NFC_TAG_CHROMEOS_H_
OLDNEW
« no previous file with comments | « device/nfc/nfc_peer_chromeos.h ('k') | device/nfc/nfc_tag_technology.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698