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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 class BluetoothPairingDialog : public ui::WebDialogDelegate { | 22 class BluetoothPairingDialog : public ui::WebDialogDelegate { |
23 public: | 23 public: |
24 BluetoothPairingDialog(gfx::NativeWindow parent_window, | 24 BluetoothPairingDialog(gfx::NativeWindow parent_window, |
25 const device::BluetoothDevice* device); | 25 const device::BluetoothDevice* device); |
26 virtual ~BluetoothPairingDialog(); | 26 virtual ~BluetoothPairingDialog(); |
27 | 27 |
28 void Show(); | 28 void Show(); |
29 | 29 |
30 protected: | 30 protected: |
31 // ui::WebDialogDelegate implementation. | 31 // ui::WebDialogDelegate implementation. |
32 virtual ui::ModalType GetDialogModalType() const OVERRIDE; | 32 virtual ui::ModalType GetDialogModalType() const override; |
33 virtual base::string16 GetDialogTitle() const OVERRIDE; | 33 virtual base::string16 GetDialogTitle() const override; |
34 virtual GURL GetDialogContentURL() const OVERRIDE; | 34 virtual GURL GetDialogContentURL() const override; |
35 virtual void GetWebUIMessageHandlers( | 35 virtual void GetWebUIMessageHandlers( |
36 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE; | 36 std::vector<content::WebUIMessageHandler*>* handlers) const override; |
37 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 37 virtual void GetDialogSize(gfx::Size* size) const override; |
38 virtual std::string GetDialogArgs() const OVERRIDE; | 38 virtual std::string GetDialogArgs() const override; |
39 // NOTE: This function deletes this object at the end. | 39 // NOTE: This function deletes this object at the end. |
40 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 40 virtual void OnDialogClosed(const std::string& json_retval) override; |
41 virtual void OnCloseContents( | 41 virtual void OnCloseContents( |
42 content::WebContents* source, bool* out_close_dialog) OVERRIDE; | 42 content::WebContents* source, bool* out_close_dialog) override; |
43 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 43 virtual bool ShouldShowDialogTitle() const override; |
44 virtual bool HandleContextMenu( | 44 virtual bool HandleContextMenu( |
45 const content::ContextMenuParams& params) OVERRIDE; | 45 const content::ContextMenuParams& params) override; |
46 | 46 |
47 private: | 47 private: |
48 gfx::NativeWindow parent_window_; | 48 gfx::NativeWindow parent_window_; |
49 base::DictionaryValue device_data_; | 49 base::DictionaryValue device_data_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(BluetoothPairingDialog); | 51 DISALLOW_COPY_AND_ASSIGN(BluetoothPairingDialog); |
52 }; | 52 }; |
53 | 53 |
54 } // namespace chromeos | 54 } // namespace chromeos |
55 | 55 |
56 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ | 56 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_PAIRING_DIALOG_H_ |
OLD | NEW |