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

Unified Diff: chrome/browser/chromeos/login/update_view.h

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
« no previous file with comments | « chrome/browser/chromeos/login/rounded_view.h ('k') | chrome/browser/chromeos/login/update_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/update_view.h
diff --git a/chrome/browser/chromeos/login/update_view.h b/chrome/browser/chromeos/login/update_view.h
deleted file mode 100644
index 128b1e7fc868bc646449d5e96535729f4255a318..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/update_view.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_
-#pragma once
-
-#include "third_party/skia/include/core/SkColor.h"
-#include "views/view.h"
-
-namespace views {
-class Label;
-class ProgressBar;
-class Throbber;
-} // namespace views
-
-namespace chromeos {
-
-class ScreenObserver;
-
-// View for the network selection/initial welcome screen.
-class UpdateView : public views::View {
- public:
- explicit UpdateView(ScreenObserver* observer);
- virtual ~UpdateView();
-
- void Init();
- void Reset();
- void UpdateLocalizedStrings();
-
- // Advances view's progress bar. Maximum progress is 100.
- void AddProgress(int progress);
-
- // Sets the current value for the progress bar. Maximum progress is 100.
- void SetProgress(int progress);
-
- // Shows label with instructions for user to do a manual reboot.
- // Usually is not called since we rely on API that will reboot after update.
- void ShowManualRebootInfo();
-
- // Shows label for "Preparing updates" state.
- void ShowPreparingUpdatesInfo(bool visible);
-
- // Whether curtain window with throbber and label in the center should
- // be shown.
- void ShowCurtain(bool show_curtain);
-
- // views::View implementation:
- virtual void Layout();
-
- private:
- // Creates Label control and adds it as a child.
- views::Label* InitLabel(SkColor background_color);
-
- // Updates visibility of the elements.
- void UpdateVisibility();
-
- // Keyboard accelerator to allow cancelling update by hitting escape.
- views::Accelerator escape_accelerator_;
-
- // Dialog controls.
- views::Label* installing_updates_label_;
- views::Label* preparing_updates_label_;
- views::Label* reboot_label_;
- views::Label* manual_reboot_label_;
- views::Label* escape_to_skip_label_;
- views::ProgressBar* progress_bar_;
-
- // Curtain views.
- views::Label* checking_label_;
- views::Throbber* throbber_;
-
- // Show curtain view?
- bool show_curtain_;
-
- // Show manual reboot label?
- bool show_manual_reboot_label_;
-
- // Show preparing updates label?
- bool show_preparing_updates_label_;
-
- // Notifications receiver.
- chromeos::ScreenObserver* observer_;
-
- DISALLOW_COPY_AND_ASSIGN(UpdateView);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_UPDATE_VIEW_H_
« no previous file with comments | « chrome/browser/chromeos/login/rounded_view.h ('k') | chrome/browser/chromeos/login/update_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698