| 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_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/strings/string16.h" |
| 9 #include "base/values.h" | 10 #include "base/values.h" |
| 10 #include "ui/web_dialogs/web_dialog_delegate.h" | 11 #include "ui/web_dialogs/web_dialog_delegate.h" |
| 11 | 12 |
| 12 namespace device { | |
| 13 class BluetoothDevice; | |
| 14 } | |
| 15 | |
| 16 namespace chromeos { | 13 namespace chromeos { |
| 17 | 14 |
| 18 // Bluetooth device pairing dialog shown from ash tray bubble. | 15 // Bluetooth device pairing dialog shown from ash tray bubble. |
| 19 class BluetoothPairingDialog : public ui::WebDialogDelegate { | 16 class BluetoothPairingDialog : public ui::WebDialogDelegate { |
| 20 public: | 17 public: |
| 21 explicit BluetoothPairingDialog(const device::BluetoothDevice* device); | 18 BluetoothPairingDialog(const std::string& address, |
| 19 const base::string16& name_for_display, |
| 20 bool paired, |
| 21 bool connected); |
| 22 ~BluetoothPairingDialog() override; | 22 ~BluetoothPairingDialog() override; |
| 23 | 23 |
| 24 // Shows the dialog in an ash window container (which must be a system modal | 24 // Shows the dialog in an ash window container (which must be a system modal |
| 25 // container) on the primary display. See ash/public/cpp/shell_window_ids.h. | 25 // container) on the primary display. See ash/public/cpp/shell_window_ids.h. |
| 26 void ShowInContainer(int container_id); | 26 void ShowInContainer(int container_id); |
| 27 | 27 |
| 28 content::WebUI* GetWebUIForTest() { return webui_; } | 28 content::WebUI* GetWebUIForTest() { return webui_; } |
| 29 | 29 |
| 30 protected: | 30 protected: |
| 31 // ui::WebDialogDelegate implementation. | 31 // ui::WebDialogDelegate implementation. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 48 private: | 48 private: |
| 49 base::DictionaryValue device_data_; | 49 base::DictionaryValue device_data_; |
| 50 content::WebUI* webui_; | 50 content::WebUI* webui_; |
| 51 | 51 |
| 52 DISALLOW_COPY_AND_ASSIGN(BluetoothPairingDialog); | 52 DISALLOW_COPY_AND_ASSIGN(BluetoothPairingDialog); |
| 53 }; | 53 }; |
| 54 | 54 |
| 55 } // namespace chromeos | 55 } // namespace chromeos |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ |
| OLD | NEW |