OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/login/eula_view.h" | 5 #include "chrome/browser/chromeos/login/eula_view.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 #include <sys/types.h> | 8 #include <sys/types.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 l10n_util::GetString(IDS_EULA_SYSTEM_SECURITY_SETTINGS_LINK)); | 201 l10n_util::GetString(IDS_EULA_SYSTEM_SECURITY_SETTINGS_LINK)); |
202 continue_button_->SetLabel( | 202 continue_button_->SetLabel( |
203 l10n_util::GetString(IDS_EULA_ACCEPT_AND_CONTINUE_BUTTON)); | 203 l10n_util::GetString(IDS_EULA_ACCEPT_AND_CONTINUE_BUTTON)); |
204 cancel_button_->SetLabel( | 204 cancel_button_->SetLabel( |
205 l10n_util::GetString(IDS_CANCEL)); | 205 l10n_util::GetString(IDS_CANCEL)); |
206 } | 206 } |
207 | 207 |
208 //////////////////////////////////////////////////////////////////////////////// | 208 //////////////////////////////////////////////////////////////////////////////// |
209 // views::View: implementation: | 209 // views::View: implementation: |
210 | 210 |
211 void EulaView::LocaleChanged() { | 211 void EulaView::OnLocaleChanged() { |
212 UpdateLocalizedStrings(); | 212 UpdateLocalizedStrings(); |
213 Layout(); | 213 Layout(); |
214 } | 214 } |
215 | 215 |
216 //////////////////////////////////////////////////////////////////////////////// | 216 //////////////////////////////////////////////////////////////////////////////// |
217 // views::ButtonListener implementation: | 217 // views::ButtonListener implementation: |
218 | 218 |
219 void EulaView::ButtonPressed(views::Button* sender, const views::Event& event) { | 219 void EulaView::ButtonPressed(views::Button* sender, const views::Event& event) { |
220 if (sender == continue_button_) { | 220 if (sender == continue_button_) { |
221 if (usage_statistics_checkbox_) { | 221 if (usage_statistics_checkbox_) { |
222 GoogleUpdateSettings::SetCollectStatsConsent( | 222 GoogleUpdateSettings::SetCollectStatsConsent( |
223 usage_statistics_checkbox_->checked()); | 223 usage_statistics_checkbox_->checked()); |
224 } | 224 } |
225 observer_->OnExit(ScreenObserver::EULA_ACCEPTED); | 225 observer_->OnExit(ScreenObserver::EULA_ACCEPTED); |
226 } | 226 } |
227 // TODO(glotov): handle cancel button. | 227 // TODO(glotov): handle cancel button. |
228 } | 228 } |
229 | 229 |
230 //////////////////////////////////////////////////////////////////////////////// | 230 //////////////////////////////////////////////////////////////////////////////// |
231 // views::LinkController implementation: | 231 // views::LinkController implementation: |
232 | 232 |
233 void EulaView::LinkActivated(views::Link* source, int event_flags) { | 233 void EulaView::LinkActivated(views::Link* source, int event_flags) { |
234 // TODO(glotov): handle link clicks. | 234 // TODO(glotov): handle link clicks. |
235 } | 235 } |
236 | 236 |
237 } // namespace chromeos | 237 } // namespace chromeos |
OLD | NEW |