| 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_HANDLER2_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" | 12 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" |
| 13 #include "chrome/browser/chromeos/bluetooth/bluetooth_manager.h" | 13 #include "chrome/browser/chromeos/bluetooth/bluetooth_manager.h" |
| 14 #include "chrome/browser/ui/webui/options2/options_ui2.h" | 14 #include "chrome/browser/ui/webui/options2/options_ui2.h" |
| 15 | 15 |
| 16 namespace base { | 16 namespace base { |
| 17 class DictionaryValue; | 17 class DictionaryValue; |
| 18 } | 18 } |
| 19 | 19 |
| 20 namespace chromeos { | 20 namespace chromeos { |
| 21 namespace options2 { | 21 namespace options2 { |
| 22 | 22 |
| 23 // Handler for Bluetooth options on the system options page. | 23 // Handler for Bluetooth options on the system options page. |
| 24 class BluetoothOptionsHandler : public ::options2::OptionsPageUIHandler, | 24 class BluetoothOptionsHandler : public OptionsPageUIHandler, |
| 25 public chromeos::BluetoothManager::Observer, | 25 public chromeos::BluetoothManager::Observer, |
| 26 public chromeos::BluetoothAdapter::Observer { | 26 public chromeos::BluetoothAdapter::Observer { |
| 27 public: | 27 public: |
| 28 BluetoothOptionsHandler(); | 28 BluetoothOptionsHandler(); |
| 29 virtual ~BluetoothOptionsHandler(); | 29 virtual ~BluetoothOptionsHandler(); |
| 30 | 30 |
| 31 // Potential errors during the process of pairing or connecting to a | 31 // Potential errors during the process of pairing or connecting to a |
| 32 // Bluetooth device. Each enumerated value is associated with an i18n | 32 // Bluetooth device. Each enumerated value is associated with an i18n |
| 33 // label for display in the Bluetooth UI. | 33 // label for display in the Bluetooth UI. |
| 34 enum ConnectionError { | 34 enum ConnectionError { |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // The empty string represents "none". | 142 // The empty string represents "none". |
| 143 std::string default_adapter_id_; | 143 std::string default_adapter_id_; |
| 144 | 144 |
| 145 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); | 145 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace options2 | 148 } // namespace options2 |
| 149 } // namespace chromeos | 149 } // namespace chromeos |
| 150 | 150 |
| 151 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_
H_ | 151 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER2_
H_ |
| OLD | NEW |