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

Unified Diff: chrome/browser/chromeos/bluetooth/bluetooth_adapter.h

Issue 10837294: Add bluetooth.getName API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/bluetooth/bluetooth_adapter.h
diff --git a/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h b/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h
index eb3715df4eb60a5004cb980308611adf7becac85..6b8ff2bc13488216e3ec3bd77c5cd31a75842277 100644
--- a/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h
+++ b/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h
@@ -98,7 +98,10 @@ class BluetoothAdapter : public base::RefCounted<BluetoothAdapter>,
// The address of this adapter. The address format is "XX:XX:XX:XX:XX:XX",
// where each XX is a hexadecimal number.
- const std::string& address() const { return address_; }
+ virtual const std::string& address() const;
Mihai Parparita -not on Chrome 2012/08/17 20:30:07 Nit: lowercase names are for basic getters/setters
keybuk 2012/08/17 20:31:36 Is there any particular reason this method has bee
bryeung 2012/08/20 23:13:19 Done.
+
+ // The name of the adapter.
+ virtual const std::string& name() const;
// Indicates whether the adapter is actually present on the system, for
// the default adapter this indicates whether any adapter is present.
@@ -316,6 +319,9 @@ class BluetoothAdapter : public base::RefCounted<BluetoothAdapter>,
// Address of the adapter.
std::string address_;
+ // Name of the adapter.
+ std::string name_;
+
// Tracked adapter state, cached locally so we only send change notifications
// to observers on a genuine change.
bool powered_;

Powered by Google App Engine
This is Rietveld 408576698