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 #include "chrome/browser/chromeos/charger_replace/charger_link_dialog.h" | 5 #include "chrome/browser/chromeos/charger_replace/charger_link_dialog.h" |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/profiles/profile_manager.h" | 10 #include "chrome/browser/profiles/profile_manager.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 void ChargerLinkDialog::Show() { | 40 void ChargerLinkDialog::Show() { |
41 chrome::ShowWebDialog(parent_window_, | 41 chrome::ShowWebDialog(parent_window_, |
42 ProfileManager::GetDefaultProfile(), | 42 ProfileManager::GetDefaultProfile(), |
43 this); | 43 this); |
44 } | 44 } |
45 | 45 |
46 ui::ModalType ChargerLinkDialog::GetDialogModalType() const { | 46 ui::ModalType ChargerLinkDialog::GetDialogModalType() const { |
47 return ui::MODAL_TYPE_SYSTEM; | 47 return ui::MODAL_TYPE_SYSTEM; |
48 } | 48 } |
49 | 49 |
50 string16 ChargerLinkDialog::GetDialogTitle() const { | 50 base::string16 ChargerLinkDialog::GetDialogTitle() const { |
51 return l10n_util::GetStringUTF16(IDS_CHARGER_REPLACEMENT_DIALOG_TITLE); | 51 return l10n_util::GetStringUTF16(IDS_CHARGER_REPLACEMENT_DIALOG_TITLE); |
52 } | 52 } |
53 | 53 |
54 GURL ChargerLinkDialog::GetDialogContentURL() const { | 54 GURL ChargerLinkDialog::GetDialogContentURL() const { |
55 return GURL(url_); | 55 return GURL(url_); |
56 } | 56 } |
57 | 57 |
58 void ChargerLinkDialog::GetWebUIMessageHandlers( | 58 void ChargerLinkDialog::GetWebUIMessageHandlers( |
59 std::vector<WebUIMessageHandler*>* handlers) const { | 59 std::vector<WebUIMessageHandler*>* handlers) const { |
60 } | 60 } |
(...skipping 20 matching lines...) Expand all Loading... |
81 return true; | 81 return true; |
82 } | 82 } |
83 | 83 |
84 bool ChargerLinkDialog::HandleContextMenu( | 84 bool ChargerLinkDialog::HandleContextMenu( |
85 const content::ContextMenuParams& params) { | 85 const content::ContextMenuParams& params) { |
86 // Disable context menu. | 86 // Disable context menu. |
87 return true; | 87 return true; |
88 } | 88 } |
89 | 89 |
90 } // namespace chromeos | 90 } // namespace chromeos |
OLD | NEW |