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_replacement_dialog.h" | 5 #include "chrome/browser/chromeos/charger_replace/charger_replacement_dialog.h" |
6 | 6 |
7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
8 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/profiles/profile_manager.h" | 9 #include "chrome/browser/profiles/profile_manager.h" |
10 #include "chrome/browser/ui/browser_dialogs.h" | 10 #include "chrome/browser/ui/browser_dialogs.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 chrome::ShowWebDialog(parent_window_, | 69 chrome::ShowWebDialog(parent_window_, |
70 ProfileManager::GetDefaultProfile(), | 70 ProfileManager::GetDefaultProfile(), |
71 this); | 71 this); |
72 charger_replacement_handler_->set_charger_window(dialog_window); | 72 charger_replacement_handler_->set_charger_window(dialog_window); |
73 } | 73 } |
74 | 74 |
75 ui::ModalType ChargerReplacementDialog::GetDialogModalType() const { | 75 ui::ModalType ChargerReplacementDialog::GetDialogModalType() const { |
76 return ui::MODAL_TYPE_SYSTEM; | 76 return ui::MODAL_TYPE_SYSTEM; |
77 } | 77 } |
78 | 78 |
79 string16 ChargerReplacementDialog::GetDialogTitle() const { | 79 base::string16 ChargerReplacementDialog::GetDialogTitle() const { |
80 return l10n_util::GetStringUTF16(IDS_CHARGER_REPLACEMENT_DIALOG_TITLE); | 80 return l10n_util::GetStringUTF16(IDS_CHARGER_REPLACEMENT_DIALOG_TITLE); |
81 } | 81 } |
82 | 82 |
83 GURL ChargerReplacementDialog::GetDialogContentURL() const { | 83 GURL ChargerReplacementDialog::GetDialogContentURL() const { |
84 return GURL(chrome::kChromeUIChargerReplacementURL); | 84 return GURL(chrome::kChromeUIChargerReplacementURL); |
85 } | 85 } |
86 | 86 |
87 void ChargerReplacementDialog::GetWebUIMessageHandlers( | 87 void ChargerReplacementDialog::GetWebUIMessageHandlers( |
88 std::vector<WebUIMessageHandler*>* handlers) const { | 88 std::vector<WebUIMessageHandler*>* handlers) const { |
89 handlers->push_back(charger_replacement_handler_); | 89 handlers->push_back(charger_replacement_handler_); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 return true; | 128 return true; |
129 } | 129 } |
130 | 130 |
131 bool ChargerReplacementDialog::HandleContextMenu( | 131 bool ChargerReplacementDialog::HandleContextMenu( |
132 const content::ContextMenuParams& params) { | 132 const content::ContextMenuParams& params) { |
133 // Disable context menu. | 133 // Disable context menu. |
134 return true; | 134 return true; |
135 } | 135 } |
136 | 136 |
137 } // namespace chromeos | 137 } // namespace chromeos |
OLD | NEW |