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

Side by Side Diff: chromeos/dbus/fake_bluetooth_adapter_client.h

Issue 628883002: replace OVERRIDE and FINAL with override and final in chromeos/ (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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 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 CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 11 matching lines...) Expand all
22 // the Linux desktop. 22 // the Linux desktop.
23 class CHROMEOS_EXPORT FakeBluetoothAdapterClient 23 class CHROMEOS_EXPORT FakeBluetoothAdapterClient
24 : public BluetoothAdapterClient { 24 : public BluetoothAdapterClient {
25 public: 25 public:
26 struct Properties : public BluetoothAdapterClient::Properties { 26 struct Properties : public BluetoothAdapterClient::Properties {
27 explicit Properties(const PropertyChangedCallback & callback); 27 explicit Properties(const PropertyChangedCallback & callback);
28 virtual ~Properties(); 28 virtual ~Properties();
29 29
30 // dbus::PropertySet override 30 // dbus::PropertySet override
31 virtual void Get(dbus::PropertyBase* property, 31 virtual void Get(dbus::PropertyBase* property,
32 dbus::PropertySet::GetCallback callback) OVERRIDE; 32 dbus::PropertySet::GetCallback callback) override;
33 virtual void GetAll() OVERRIDE; 33 virtual void GetAll() override;
34 virtual void Set(dbus::PropertyBase* property, 34 virtual void Set(dbus::PropertyBase* property,
35 dbus::PropertySet::SetCallback callback) OVERRIDE; 35 dbus::PropertySet::SetCallback callback) override;
36 }; 36 };
37 37
38 FakeBluetoothAdapterClient(); 38 FakeBluetoothAdapterClient();
39 virtual ~FakeBluetoothAdapterClient(); 39 virtual ~FakeBluetoothAdapterClient();
40 40
41 // BluetoothAdapterClient overrides 41 // BluetoothAdapterClient overrides
42 virtual void Init(dbus::Bus* bus) OVERRIDE; 42 virtual void Init(dbus::Bus* bus) override;
43 virtual void AddObserver(Observer* observer) OVERRIDE; 43 virtual void AddObserver(Observer* observer) override;
44 virtual void RemoveObserver(Observer* observer) OVERRIDE; 44 virtual void RemoveObserver(Observer* observer) override;
45 virtual std::vector<dbus::ObjectPath> GetAdapters() OVERRIDE; 45 virtual std::vector<dbus::ObjectPath> GetAdapters() override;
46 virtual Properties* GetProperties(const dbus::ObjectPath& object_path) 46 virtual Properties* GetProperties(const dbus::ObjectPath& object_path)
47 OVERRIDE; 47 override;
48 virtual void StartDiscovery(const dbus::ObjectPath& object_path, 48 virtual void StartDiscovery(const dbus::ObjectPath& object_path,
49 const base::Closure& callback, 49 const base::Closure& callback,
50 const ErrorCallback& error_callback) OVERRIDE; 50 const ErrorCallback& error_callback) override;
51 virtual void StopDiscovery(const dbus::ObjectPath& object_path, 51 virtual void StopDiscovery(const dbus::ObjectPath& object_path,
52 const base::Closure& callback, 52 const base::Closure& callback,
53 const ErrorCallback& error_callback) OVERRIDE; 53 const ErrorCallback& error_callback) override;
54 virtual void RemoveDevice(const dbus::ObjectPath& object_path, 54 virtual void RemoveDevice(const dbus::ObjectPath& object_path,
55 const dbus::ObjectPath& device_path, 55 const dbus::ObjectPath& device_path,
56 const base::Closure& callback, 56 const base::Closure& callback,
57 const ErrorCallback& error_callback) OVERRIDE; 57 const ErrorCallback& error_callback) override;
58 58
59 // Sets the current simulation timeout interval. 59 // Sets the current simulation timeout interval.
60 void SetSimulationIntervalMs(int interval_ms); 60 void SetSimulationIntervalMs(int interval_ms);
61 61
62 // Mark the adapter and second adapter as visible or invisible. 62 // Mark the adapter and second adapter as visible or invisible.
63 void SetVisible(bool visible); 63 void SetVisible(bool visible);
64 void SetSecondVisible(bool visible); 64 void SetSecondVisible(bool visible);
65 65
66 // Object path, name and addresses of the adapters we emulate. 66 // Object path, name and addresses of the adapters we emulate.
67 static const char kAdapterPath[]; 67 static const char kAdapterPath[];
(...skipping 26 matching lines...) Expand all
94 // Number of times we've been asked to discover. 94 // Number of times we've been asked to discover.
95 int discovering_count_; 95 int discovering_count_;
96 96
97 // Current timeout interval used when posting delayed tasks. 97 // Current timeout interval used when posting delayed tasks.
98 int simulation_interval_ms_; 98 int simulation_interval_ms_;
99 }; 99 };
100 100
101 } // namespace chromeos 101 } // namespace chromeos
102 102
103 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_ 103 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_ADAPTER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/easy_unlock_client.cc ('k') | chromeos/dbus/fake_bluetooth_agent_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698