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

Unified Diff: chrome/browser/chromeos/login/oobe_progress_bar.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/new_user_view.cc ('k') | chrome/browser/chromeos/login/oobe_progress_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/oobe_progress_bar.h
diff --git a/chrome/browser/chromeos/login/oobe_progress_bar.h b/chrome/browser/chromeos/login/oobe_progress_bar.h
deleted file mode 100644
index f306bbe96ce6f6aee84d46f71f4d87ba916b8fa9..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/oobe_progress_bar.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2010 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_OOBE_PROGRESS_BAR_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_PROGRESS_BAR_H_
-#pragma once
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "ui/gfx/font.h"
-#include "views/view.h"
-
-class SkBitmap;
-
-namespace chromeos {
-
-// Special purpose progress bar with labeled steps that is used to show user's
-// progress in OOBE process.
-class OobeProgressBar : public views::View {
- public:
- // Construct progress bar with given labels as steps.
- // |steps| is a vector of string IDs from resources.
- explicit OobeProgressBar(const std::vector<int>& steps);
- virtual ~OobeProgressBar();
-
- // Overridden from View:
- virtual void OnPaint(gfx::Canvas* canvas);
-
- // Set the current step for the progress bar. Must be one of the steps
- // passed in the constructor.
- void SetStep(int step);
-
- protected:
- // Overridden from View:
- virtual void OnLocaleChanged();
-
- private:
- static void InitClass();
-
- // Graphics.
- static SkBitmap* dot_current_;
- static SkBitmap* dot_empty_;
- static SkBitmap* dot_filled_;
- static SkBitmap* line_;
- static SkBitmap* line_left_;
- static SkBitmap* line_right_;
-
- gfx::Font font_;
-
- // Unique ids for progress bar steps. The order defines how the steps are
- // enumerated on screen.
- std::vector<int> steps_;
-
- // Index of the current step.
- size_t progress_;
-
- DISALLOW_COPY_AND_ASSIGN(OobeProgressBar);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_OOBE_PROGRESS_BAR_H_
« no previous file with comments | « chrome/browser/chromeos/login/new_user_view.cc ('k') | chrome/browser/chromeos/login/oobe_progress_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698