| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/background_view.h" | 5 #include "chrome/browser/chromeos/login/background_view.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 this, GetNativeWindow())); | 302 this, GetNativeWindow())); |
| 303 } | 303 } |
| 304 proxy_settings_dialog_->Show(); | 304 proxy_settings_dialog_->Show(); |
| 305 } | 305 } |
| 306 } | 306 } |
| 307 | 307 |
| 308 StatusAreaHost::ScreenMode BackgroundView::GetScreenMode() const { | 308 StatusAreaHost::ScreenMode BackgroundView::GetScreenMode() const { |
| 309 return kLoginMode; | 309 return kLoginMode; |
| 310 } | 310 } |
| 311 | 311 |
| 312 StatusAreaHost::TextStyle BackgroundView::GetTextStyle() const { |
| 313 return kWhitePlain; |
| 314 } |
| 315 |
| 312 // Overridden from LoginHtmlDialog::Delegate: | 316 // Overridden from LoginHtmlDialog::Delegate: |
| 313 void BackgroundView::OnLocaleChanged() { | 317 void BackgroundView::OnLocaleChanged() { |
| 314 // Proxy settings dialog contains localized strings. | 318 // Proxy settings dialog contains localized strings. |
| 315 proxy_settings_dialog_.reset(); | 319 proxy_settings_dialog_.reset(); |
| 316 InitInfoLabels(); | 320 InitInfoLabels(); |
| 317 SchedulePaint(); | 321 SchedulePaint(); |
| 318 } | 322 } |
| 319 | 323 |
| 320 /////////////////////////////////////////////////////////////////////////////// | 324 /////////////////////////////////////////////////////////////////////////////// |
| 321 // BackgroundView private: | 325 // BackgroundView private: |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); | 532 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); |
| 529 } | 533 } |
| 530 | 534 |
| 531 void BackgroundView::OnPolicyStateChanged( | 535 void BackgroundView::OnPolicyStateChanged( |
| 532 policy::CloudPolicySubsystem::PolicySubsystemState state, | 536 policy::CloudPolicySubsystem::PolicySubsystemState state, |
| 533 policy::CloudPolicySubsystem::ErrorDetails error_details) { | 537 policy::CloudPolicySubsystem::ErrorDetails error_details) { |
| 534 UpdateEnterpriseInfo(); | 538 UpdateEnterpriseInfo(); |
| 535 } | 539 } |
| 536 | 540 |
| 537 } // namespace chromeos | 541 } // namespace chromeos |
| OLD | NEW |