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

Side by Side Diff: ash/system/chromeos/bluetooth/bluetooth_notification_controller.h

Issue 621133002: replace OVERRIDE and FINAL with override and final in ash/ (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 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 ASH_SYSTEM_CHROMEOS_BLUETOOTH_BLUETOOTH_NOTIFICATION_CONTROLLER_H_ 5 #ifndef ASH_SYSTEM_CHROMEOS_BLUETOOTH_BLUETOOTH_NOTIFICATION_CONTROLLER_H_
6 #define ASH_SYSTEM_CHROMEOS_BLUETOOTH_BLUETOOTH_NOTIFICATION_CONTROLLER_H_ 6 #define ASH_SYSTEM_CHROMEOS_BLUETOOTH_BLUETOOTH_NOTIFICATION_CONTROLLER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 13 matching lines...) Expand all
24 // rich notifications that the user can interact with to approve the request. 24 // rich notifications that the user can interact with to approve the request.
25 class ASH_EXPORT BluetoothNotificationController 25 class ASH_EXPORT BluetoothNotificationController
26 : public device::BluetoothAdapter::Observer, 26 : public device::BluetoothAdapter::Observer,
27 public device::BluetoothDevice::PairingDelegate { 27 public device::BluetoothDevice::PairingDelegate {
28 public: 28 public:
29 BluetoothNotificationController(); 29 BluetoothNotificationController();
30 virtual ~BluetoothNotificationController(); 30 virtual ~BluetoothNotificationController();
31 31
32 // device::BluetoothAdapter::Observer override. 32 // device::BluetoothAdapter::Observer override.
33 virtual void AdapterDiscoverableChanged(device::BluetoothAdapter* adapter, 33 virtual void AdapterDiscoverableChanged(device::BluetoothAdapter* adapter,
34 bool discoverable) OVERRIDE; 34 bool discoverable) override;
35 virtual void DeviceAdded(device::BluetoothAdapter* adapter, 35 virtual void DeviceAdded(device::BluetoothAdapter* adapter,
36 device::BluetoothDevice* device) OVERRIDE; 36 device::BluetoothDevice* device) override;
37 virtual void DeviceChanged(device::BluetoothAdapter* adapter, 37 virtual void DeviceChanged(device::BluetoothAdapter* adapter,
38 device::BluetoothDevice* device) OVERRIDE; 38 device::BluetoothDevice* device) override;
39 virtual void DeviceRemoved(device::BluetoothAdapter* adapter, 39 virtual void DeviceRemoved(device::BluetoothAdapter* adapter,
40 device::BluetoothDevice* device) OVERRIDE; 40 device::BluetoothDevice* device) override;
41 41
42 // device::BluetoothDevice::PairingDelegate override. 42 // device::BluetoothDevice::PairingDelegate override.
43 virtual void RequestPinCode(device::BluetoothDevice* device) OVERRIDE; 43 virtual void RequestPinCode(device::BluetoothDevice* device) override;
44 virtual void RequestPasskey(device::BluetoothDevice* device) OVERRIDE; 44 virtual void RequestPasskey(device::BluetoothDevice* device) override;
45 virtual void DisplayPinCode(device::BluetoothDevice* device, 45 virtual void DisplayPinCode(device::BluetoothDevice* device,
46 const std::string& pincode) OVERRIDE; 46 const std::string& pincode) override;
47 virtual void DisplayPasskey(device::BluetoothDevice* device, 47 virtual void DisplayPasskey(device::BluetoothDevice* device,
48 uint32 passkey) OVERRIDE; 48 uint32 passkey) override;
49 virtual void KeysEntered(device::BluetoothDevice* device, 49 virtual void KeysEntered(device::BluetoothDevice* device,
50 uint32 entered) OVERRIDE; 50 uint32 entered) override;
51 virtual void ConfirmPasskey(device::BluetoothDevice* device, 51 virtual void ConfirmPasskey(device::BluetoothDevice* device,
52 uint32 passkey) OVERRIDE; 52 uint32 passkey) override;
53 virtual void AuthorizePairing(device::BluetoothDevice* device) OVERRIDE; 53 virtual void AuthorizePairing(device::BluetoothDevice* device) override;
54 54
55 private: 55 private:
56 // Internal method called by BluetoothAdapterFactory to provide the adapter 56 // Internal method called by BluetoothAdapterFactory to provide the adapter
57 // object. 57 // object.
58 void OnGetAdapter(scoped_refptr<device::BluetoothAdapter> adapter); 58 void OnGetAdapter(scoped_refptr<device::BluetoothAdapter> adapter);
59 59
60 // Presents a notification to the user when the adapter becomes discoverable 60 // Presents a notification to the user when the adapter becomes discoverable
61 // to other nearby devices. 61 // to other nearby devices.
62 void NotifyAdapterDiscoverable(); 62 void NotifyAdapterDiscoverable();
63 63
(...skipping 20 matching lines...) Expand all
84 // Note: This should remain the last member so it'll be destroyed and 84 // Note: This should remain the last member so it'll be destroyed and
85 // invalidate its weak pointers before any other members are destroyed. 85 // invalidate its weak pointers before any other members are destroyed.
86 base::WeakPtrFactory<BluetoothNotificationController> weak_ptr_factory_; 86 base::WeakPtrFactory<BluetoothNotificationController> weak_ptr_factory_;
87 87
88 DISALLOW_COPY_AND_ASSIGN(BluetoothNotificationController); 88 DISALLOW_COPY_AND_ASSIGN(BluetoothNotificationController);
89 }; 89 };
90 90
91 } // namespace ash 91 } // namespace ash
92 92
93 #endif // ASH_SYSTEM_CHROMEOS_BLUETOOTH_BLUETOOTH_NOTIFICATION_CONTROLLER_H_ 93 #endif // ASH_SYSTEM_CHROMEOS_BLUETOOTH_BLUETOOTH_NOTIFICATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698