| 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/background_view.h" | 5 #include "chrome/browser/chromeos/login/background_view.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
| 9 #include "app/x11_util.h" | 9 #include "app/x11_util.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 65 |
| 66 (*view)->UpdateWindowType(); | 66 (*view)->UpdateWindowType(); |
| 67 | 67 |
| 68 // This keeps the window from flashing at startup. | 68 // This keeps the window from flashing at startup. |
| 69 GdkWindow* gdk_window = window->GetNativeView()->window; | 69 GdkWindow* gdk_window = window->GetNativeView()->window; |
| 70 gdk_window_set_back_pixmap(gdk_window, NULL, false); | 70 gdk_window_set_back_pixmap(gdk_window, NULL, false); |
| 71 | 71 |
| 72 return window; | 72 return window; |
| 73 } | 73 } |
| 74 | 74 |
| 75 void BackgroundView::SetStatusAreaVisible(bool visible) { |
| 76 status_area_->SetVisible(visible); |
| 77 } |
| 78 |
| 75 void BackgroundView::Paint(gfx::Canvas* canvas) { | 79 void BackgroundView::Paint(gfx::Canvas* canvas) { |
| 76 views::View::Paint(canvas); | 80 views::View::Paint(canvas); |
| 77 if (!did_paint_) { | 81 if (!did_paint_) { |
| 78 did_paint_ = true; | 82 did_paint_ = true; |
| 79 UpdateWindowType(); | 83 UpdateWindowType(); |
| 80 } | 84 } |
| 81 } | 85 } |
| 82 | 86 |
| 83 void BackgroundView::Layout() { | 87 void BackgroundView::Layout() { |
| 84 int corner_padding = | 88 int corner_padding = |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 kBootTimesNoChromeExec, | 224 kBootTimesNoChromeExec, |
| 221 boot_times.firmware + boot_times.login_prompt_ready, | 225 boot_times.firmware + boot_times.login_prompt_ready, |
| 222 boot_times.firmware, | 226 boot_times.firmware, |
| 223 boot_times.pre_startup, | 227 boot_times.pre_startup, |
| 224 boot_times.login_prompt_ready - boot_times.pre_startup); | 228 boot_times.login_prompt_ready - boot_times.pre_startup); |
| 225 } | 229 } |
| 226 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); | 230 boot_times_label_->SetText(ASCIIToWide(boot_times_text)); |
| 227 } | 231 } |
| 228 | 232 |
| 229 } // namespace chromeos | 233 } // namespace chromeos |
| OLD | NEW |