| OLD | NEW |
| 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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_BLUETOOTH_PAIRING_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_BLUETOOTH_PAIRING_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_BLUETOOTH_PAIRING_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_BLUETOOTH_PAIRING_UI_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/webui/options/options_ui.h" | 8 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 9 #include "ui/web_dialogs/web_dialog_ui.h" | 9 #include "ui/web_dialogs/web_dialog_ui.h" |
| 10 | 10 |
| 11 namespace chromeos { | 11 namespace chromeos { |
| 12 | 12 |
| 13 namespace options { | 13 namespace options { |
| 14 class CoreChromeOSOptionsHandler; | 14 class CoreChromeOSOptionsHandler; |
| 15 class BluetoothOptionsHandler; | 15 class BluetoothOptionsHandler; |
| 16 } | 16 } |
| 17 | 17 |
| 18 // A WebUI to host bluetooth device pairing web ui. | 18 // A WebUI to host bluetooth device pairing web ui. |
| 19 class BluetoothPairingUI : public ui::WebDialogUI, | 19 class BluetoothPairingUI : public ui::WebDialogUI, |
| 20 public ::options::OptionsPageUIHandlerHost { | 20 public ::options::OptionsPageUIHandlerHost { |
| 21 public: | 21 public: |
| 22 explicit BluetoothPairingUI(content::WebUI* web_ui); | 22 explicit BluetoothPairingUI(content::WebUI* web_ui); |
| 23 virtual ~BluetoothPairingUI(); | 23 ~BluetoothPairingUI() override; |
| 24 | 24 |
| 25 private: | 25 private: |
| 26 // Overridden from OptionsPageUIHandlerHost: | 26 // Overridden from OptionsPageUIHandlerHost: |
| 27 virtual void InitializeHandlers() override; | 27 void InitializeHandlers() override; |
| 28 | 28 |
| 29 options::CoreChromeOSOptionsHandler* core_handler_; | 29 options::CoreChromeOSOptionsHandler* core_handler_; |
| 30 options::BluetoothOptionsHandler* bluetooth_handler_; | 30 options::BluetoothOptionsHandler* bluetooth_handler_; |
| 31 | 31 |
| 32 DISALLOW_COPY_AND_ASSIGN(BluetoothPairingUI); | 32 DISALLOW_COPY_AND_ASSIGN(BluetoothPairingUI); |
| 33 }; | 33 }; |
| 34 | 34 |
| 35 } // namespace chromeos | 35 } // namespace chromeos |
| 36 | 36 |
| 37 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_BLUETOOTH_PAIRING_UI_H_ | 37 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_BLUETOOTH_PAIRING_UI_H_ |
| OLD | NEW |