Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_VIEW_H_ | |
| 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_VIEW_H_ | |
| 7 | |
| 8 #include "ui/views/controls/webview/web_dialog_view.h" | |
| 9 | |
| 10 namespace content { | |
| 11 class BrowserContext; | |
| 12 } | |
| 13 | |
| 14 namespace device { | |
| 15 class BluetoothDevice; | |
| 16 } | |
| 17 | |
| 18 namespace ui { | |
| 19 class WebDialogDelegate; | |
| 20 } | |
| 21 | |
| 22 namespace chromeos { | |
| 23 | |
| 24 // A customized dialog view for the Bluetooth pairing dialog. | |
| 25 class BluetoothPairingView : public views::WebDialogView { | |
| 26 public: | |
| 27 BluetoothPairingView(content::BrowserContext* context, | |
| 28 ui::WebDialogDelegate* delegate, | |
| 29 WebContentsHandler* handler); | |
| 30 ~BluetoothPairingView() override; | |
| 31 | |
| 32 // Shows the customarized Bluetooth pairing dialog. | |
|
James Cook
2017/02/09 15:18:02
nit: "customized"
Also, document parameters, espe
xdai1
2017/02/09 22:58:28
Done.
| |
| 33 static void ShowDialog(int container_id, | |
|
James Cook
2017/02/09 15:18:02
It's kind of weird that there's a "ShowDialog" met
xdai1
2017/02/09 22:58:28
In this case we don't need this view class at all.
| |
| 34 content::BrowserContext* context, | |
| 35 WebContentsHandler* handler, | |
| 36 const device::BluetoothDevice* device); | |
| 37 | |
| 38 private: | |
| 39 DISALLOW_COPY_AND_ASSIGN(BluetoothPairingView); | |
|
James Cook
2017/02/09 15:18:02
#include macros.h
xdai1
2017/02/09 22:58:28
Done.
| |
| 40 }; | |
| 41 | |
| 42 } // namespace chromeos | |
| 43 | |
| 44 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_VIEW_H_ | |
| OLD | NEW |