| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
| 13 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" | 13 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" |
| 14 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h" | 14 #include "chrome/browser/chromeos/bluetooth/bluetooth_device.h" |
| 15 #include "chrome/browser/ui/webui/options2/options_ui.h" | 15 #include "chrome/browser/ui/webui/options2/options_ui.h" |
| 16 | 16 |
| 17 namespace base { | 17 namespace base { |
| 18 class DictionaryValue; | 18 class DictionaryValue; |
| 19 } | 19 } |
| 20 | 20 |
| 21 namespace chromeos { | 21 namespace chromeos { |
| 22 namespace options2 { | 22 namespace options { |
| 23 | 23 |
| 24 // Handler for Bluetooth options on the system options page. | 24 // Handler for Bluetooth options on the system options page. |
| 25 class BluetoothOptionsHandler : public ::options2::OptionsPageUIHandler, | 25 class BluetoothOptionsHandler : public ::options::OptionsPageUIHandler, |
| 26 public chromeos::BluetoothAdapter::Observer, | 26 public chromeos::BluetoothAdapter::Observer, |
| 27 public BluetoothDevice::PairingDelegate { | 27 public BluetoothDevice::PairingDelegate { |
| 28 public: | 28 public: |
| 29 BluetoothOptionsHandler(); | 29 BluetoothOptionsHandler(); |
| 30 virtual ~BluetoothOptionsHandler(); | 30 virtual ~BluetoothOptionsHandler(); |
| 31 | 31 |
| 32 // OptionsPageUIHandler implementation. | 32 // OptionsPageUIHandler implementation. |
| 33 virtual void GetLocalizedValues( | 33 virtual void GetLocalizedValues( |
| 34 base::DictionaryValue* localized_strings) OVERRIDE; | 34 base::DictionaryValue* localized_strings) OVERRIDE; |
| 35 virtual void RegisterMessages() OVERRIDE; | 35 virtual void RegisterMessages() OVERRIDE; |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // Default bluetooth adapter, used for all operations. | 185 // Default bluetooth adapter, used for all operations. |
| 186 scoped_refptr<BluetoothAdapter> adapter_; | 186 scoped_refptr<BluetoothAdapter> adapter_; |
| 187 | 187 |
| 188 // Weak pointer factory for generating 'this' pointers that might live longer | 188 // Weak pointer factory for generating 'this' pointers that might live longer |
| 189 // than this object does. | 189 // than this object does. |
| 190 base::WeakPtrFactory<BluetoothOptionsHandler> weak_ptr_factory_; | 190 base::WeakPtrFactory<BluetoothOptionsHandler> weak_ptr_factory_; |
| 191 | 191 |
| 192 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); | 192 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); |
| 193 }; | 193 }; |
| 194 | 194 |
| 195 } // namespace options2 | 195 } // namespace options |
| 196 } // namespace chromeos | 196 } // namespace chromeos |
| 197 | 197 |
| 198 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H
_ | 198 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H
_ |
| OLD | NEW |