| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 | 189 |
| 190 void BackgroundView::CreateModalPopup(views::WindowDelegate* view) { | 190 void BackgroundView::CreateModalPopup(views::WindowDelegate* view) { |
| 191 views::Window* window = browser::CreateViewsWindow( | 191 views::Window* window = browser::CreateViewsWindow( |
| 192 GetNativeWindow(), gfx::Rect(), view); | 192 GetNativeWindow(), gfx::Rect(), view); |
| 193 window->SetIsAlwaysOnTop(true); | 193 window->SetIsAlwaysOnTop(true); |
| 194 window->Show(); | 194 window->Show(); |
| 195 } | 195 } |
| 196 | 196 |
| 197 gfx::NativeWindow BackgroundView::GetNativeWindow() const { | 197 gfx::NativeWindow BackgroundView::GetNativeWindow() const { |
| 198 return | 198 return |
| 199 GTK_WINDOW(static_cast<WidgetGtk*>(GetWidget())->GetNativeView()); | 199 GTK_WINDOW(static_cast<const WidgetGtk*>(GetWidget())->GetNativeView()); |
| 200 } | 200 } |
| 201 | 201 |
| 202 void BackgroundView::SetStatusAreaVisible(bool visible) { | 202 void BackgroundView::SetStatusAreaVisible(bool visible) { |
| 203 status_area_->SetVisible(visible); | 203 status_area_->SetVisible(visible); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void BackgroundView::SetStatusAreaEnabled(bool enable) { | 206 void BackgroundView::SetStatusAreaEnabled(bool enable) { |
| 207 status_area_->MakeButtonsActive(enable); | 207 status_area_->MakeButtonsActive(enable); |
| 208 } | 208 } |
| 209 | 209 |
| (...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 444 kBootTimesNoChromeExec, | 444 kBootTimesNoChromeExec, |
| 445 boot_times.total, | 445 boot_times.total, |
| 446 boot_times.pre_startup, | 446 boot_times.pre_startup, |
| 447 boot_times.system); | 447 boot_times.system); |
| 448 } | 448 } |
| 449 // Use UTF8ToWide once this string is localized. | 449 // Use UTF8ToWide once this string is localized. |
| 450 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); | 450 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); |
| 451 } | 451 } |
| 452 | 452 |
| 453 } // namespace chromeos | 453 } // namespace chromeos |
| OLD | NEW |