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 #include "chrome/browser/chromeos/bluetooth/bluetooth_pairing_dialog.h" | 5 #include "chrome/browser/chromeos/bluetooth/bluetooth_pairing_dialog.h" |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "chrome/browser/profiles/profile_manager.h" | 8 #include "chrome/browser/profiles/profile_manager.h" |
9 #include "chrome/browser/ui/browser_dialogs.h" | 9 #include "chrome/browser/ui/browser_dialogs.h" |
10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 this); | 48 this); |
49 } | 49 } |
50 | 50 |
51 /////////////////////////////////////////////////////////////////////////////// | 51 /////////////////////////////////////////////////////////////////////////////// |
52 // LoginWebDialog, protected: | 52 // LoginWebDialog, protected: |
53 | 53 |
54 ui::ModalType BluetoothPairingDialog::GetDialogModalType() const { | 54 ui::ModalType BluetoothPairingDialog::GetDialogModalType() const { |
55 return ui::MODAL_TYPE_SYSTEM; | 55 return ui::MODAL_TYPE_SYSTEM; |
56 } | 56 } |
57 | 57 |
58 string16 BluetoothPairingDialog::GetDialogTitle() const { | 58 base::string16 BluetoothPairingDialog::GetDialogTitle() const { |
59 return l10n_util::GetStringUTF16( | 59 return l10n_util::GetStringUTF16( |
60 IDS_OPTIONS_SETTINGS_BLUETOOTH_ADD_DEVICE_TITLE); | 60 IDS_OPTIONS_SETTINGS_BLUETOOTH_ADD_DEVICE_TITLE); |
61 } | 61 } |
62 | 62 |
63 GURL BluetoothPairingDialog::GetDialogContentURL() const { | 63 GURL BluetoothPairingDialog::GetDialogContentURL() const { |
64 return GURL(chrome::kChromeUIBluetoothPairingURL); | 64 return GURL(chrome::kChromeUIBluetoothPairingURL); |
65 } | 65 } |
66 | 66 |
67 void BluetoothPairingDialog::GetWebUIMessageHandlers( | 67 void BluetoothPairingDialog::GetWebUIMessageHandlers( |
68 std::vector<WebUIMessageHandler*>* handlers) const { | 68 std::vector<WebUIMessageHandler*>* handlers) const { |
(...skipping 23 matching lines...) Expand all Loading... |
92 return true; | 92 return true; |
93 } | 93 } |
94 | 94 |
95 bool BluetoothPairingDialog::HandleContextMenu( | 95 bool BluetoothPairingDialog::HandleContextMenu( |
96 const content::ContextMenuParams& params) { | 96 const content::ContextMenuParams& params) { |
97 // Disable context menu. | 97 // Disable context menu. |
98 return true; | 98 return true; |
99 } | 99 } |
100 | 100 |
101 } // namespace chromeos | 101 } // namespace chromeos |
OLD | NEW |