Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Unified Diff: chrome/browser/chromeos/login/background_view.cc

Issue 8436002: [cros] Remove Views implementation for login/OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/login/background_view.cc
diff --git a/chrome/browser/chromeos/login/background_view.cc b/chrome/browser/chromeos/login/background_view.cc
index 1dba5c57e9de00cdc07dd239f485b5f8a7eecadf..1e7cff11d96840cc61c0b8b0379784d30e1d61a5 100644
--- a/chrome/browser/chromeos/login/background_view.cc
+++ b/chrome/browser/chromeos/login/background_view.cc
@@ -13,7 +13,6 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/chromeos/login/login_utils.h"
-#include "chrome/browser/chromeos/login/oobe_progress_bar.h"
#include "chrome/browser/chromeos/login/proxy_settings_dialog.h"
#include "chrome/browser/chromeos/login/rounded_rect_painter.h"
#include "chrome/browser/chromeos/login/shutdown_button.h"
@@ -80,7 +79,6 @@ BackgroundView::BackgroundView()
screen_mode_(StatusAreaViewChromeos::LOGIN_MODE_VIEWS),
os_version_label_(NULL),
boot_times_label_(NULL),
- progress_bar_(NULL),
shutdown_button_(NULL),
#if defined(OFFICIAL_BUILD)
is_official_build_(true),
@@ -173,24 +171,6 @@ void BackgroundView::SetStatusAreaEnabled(bool enable) {
status_area_->MakeButtonsActive(enable);
}
-void BackgroundView::SetOobeProgressBarVisible(bool visible) {
- if (!progress_bar_ && visible)
- InitProgressBar();
-
- if (progress_bar_)
- progress_bar_->SetVisible(visible);
-}
-
-bool BackgroundView::IsOobeProgressBarVisible() {
- return progress_bar_ && progress_bar_->IsVisible();
-}
-
-void BackgroundView::SetOobeProgress(LoginStep step) {
- DCHECK(step < STEPS_COUNT);
- if (progress_bar_)
- progress_bar_->SetStep(GetStepId(step));
-}
-
void BackgroundView::ShowScreenSaver() {
SetStatusAreaVisible(false);
background_area_->SetVisible(true);
@@ -224,9 +204,6 @@ void BackgroundView::Layout() {
const int kInfoLeftPadding = 10;
const int kInfoBottomPadding = 10;
const int kInfoBetweenLinesPadding = 1;
- const int kProgressBarBottomPadding = 20;
- const int kProgressBarWidth = 750;
- const int kProgressBarHeight = 70;
gfx::Size status_area_size = status_area_->GetPreferredSize();
status_area_->SetBounds(
width() - status_area_size.width() - kCornerPadding,
@@ -249,13 +226,6 @@ void BackgroundView::Layout() {
width() - 2 * kInfoLeftPadding,
version_size.height());
}
- if (progress_bar_) {
- progress_bar_->SetBounds(
- (width() - kProgressBarWidth) / 2,
- (height() - kProgressBarBottomPadding - kProgressBarHeight),
- kProgressBarWidth,
- kProgressBarHeight);
- }
if (shutdown_button_) {
shutdown_button_->LayoutIn(this);
}
@@ -362,22 +332,6 @@ void BackgroundView::InitInfoLabels() {
version_info_updater_.StartUpdate(is_official_build_);
}
-void BackgroundView::InitProgressBar() {
- std::vector<int> steps;
- steps.push_back(GetStepId(SELECT_NETWORK));
-#if defined(OFFICIAL_BUILD)
- steps.push_back(GetStepId(EULA));
-#endif
- steps.push_back(GetStepId(SIGNIN));
-#if defined(OFFICIAL_BUILD)
- if (WizardController::IsRegisterScreenDefined())
- steps.push_back(GetStepId(REGISTRATION));
-#endif
- steps.push_back(GetStepId(PICTURE));
- progress_bar_ = new OobeProgressBar(steps);
- AddChildView(progress_bar_);
-}
-
void BackgroundView::UpdateWindowType() {
#if defined(TOOLKIT_USES_GTK)
std::vector<int> params;
« no previous file with comments | « chrome/browser/chromeos/login/background_view.h ('k') | chrome/browser/chromeos/login/base_login_display_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698