OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" | 11 #include "chrome/browser/chromeos/bluetooth/bluetooth_adapter.h" |
12 #include "chrome/browser/chromeos/bluetooth/bluetooth_manager.h" | 12 #include "chrome/browser/chromeos/bluetooth/bluetooth_manager.h" |
13 #include "chrome/browser/ui/webui/options/chromeos/cros_options_page_ui_handler.
h" | 13 #include "chrome/browser/ui/webui/options/options_ui.h" |
14 | 14 |
15 namespace base { | 15 namespace base { |
16 class DictionaryValue; | 16 class DictionaryValue; |
17 } | 17 } |
18 | 18 |
19 namespace chromeos { | 19 namespace chromeos { |
20 | 20 |
21 // Handler for Bluetooth options on the system options page. | 21 // Handler for Bluetooth options on the system options page. |
22 class BluetoothOptionsHandler : public chromeos::CrosOptionsPageUIHandler, | 22 class BluetoothOptionsHandler : public OptionsPageUIHandler, |
23 public chromeos::BluetoothManager::Observer, | 23 public chromeos::BluetoothManager::Observer, |
24 public chromeos::BluetoothAdapter::Observer { | 24 public chromeos::BluetoothAdapter::Observer { |
25 public: | 25 public: |
26 BluetoothOptionsHandler(); | 26 BluetoothOptionsHandler(); |
27 virtual ~BluetoothOptionsHandler(); | 27 virtual ~BluetoothOptionsHandler(); |
28 | 28 |
29 // OptionsPageUIHandler implementation. | 29 // OptionsPageUIHandler implementation. |
30 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); | 30 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); |
31 virtual void Initialize(); | 31 virtual void Initialize(); |
32 virtual void RegisterMessages(); | 32 virtual void RegisterMessages(); |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 // The id of the current default bluetooth adapter. | 125 // The id of the current default bluetooth adapter. |
126 // The empty string represents "none". | 126 // The empty string represents "none". |
127 std::string default_adapter_id_; | 127 std::string default_adapter_id_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); | 129 DISALLOW_COPY_AND_ASSIGN(BluetoothOptionsHandler); |
130 }; | 130 }; |
131 | 131 |
132 } // namespace chromeos | 132 } // namespace chromeos |
133 | 133 |
134 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ | 134 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_BLUETOOTH_OPTIONS_HANDLER_H_ |
OLD | NEW |