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

Unified Diff: ui/views/controls/progress_bar.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 months 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 | « ui/views/controls/prefix_selector_unittest.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/progress_bar.h
diff --git a/ui/views/controls/progress_bar.h b/ui/views/controls/progress_bar.h
deleted file mode 100644
index e844d2f4bb2bd2a0dcd66e6a7711ef5df34a9e30..0000000000000000000000000000000000000000
--- a/ui/views/controls/progress_bar.h
+++ /dev/null
@@ -1,68 +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 UI_VIEWS_CONTROLS_PROGRESS_BAR_H_
-#define UI_VIEWS_CONTROLS_PROGRESS_BAR_H_
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ui/views/view.h"
-
-namespace views {
-
-// Progress bar is a control that indicates progress visually.
-class VIEWS_EXPORT ProgressBar : public View {
- public:
- // The value range defaults to [0.0, 1.0].
- ProgressBar();
- virtual ~ProgressBar();
-
- double current_value() const { return current_value_; }
-
- // Gets a normalized current value in [0.0, 1.0] range based on current value
- // range and the min/max display value range.
- double GetNormalizedValue() const;
-
- // Sets the inclusive range of values to be displayed. Values outside of the
- // range will be capped when displayed.
- void SetDisplayRange(double min_display_value, double max_display_value);
-
- // Sets the current value. Values outside of the range [min_display_value_,
- // max_display_value_] will be stored unmodified and capped for display.
- void SetValue(double value);
-
- // Sets the tooltip text. Default behavior for a progress bar is to show no
- // tooltip on mouse hover. Calling this lets you set a custom tooltip. To
- // revert to default behavior, call this with an empty string.
- void SetTooltipText(const base::string16& tooltip_text);
-
- // Overridden from View:
- virtual bool GetTooltipText(const gfx::Point& p,
- base::string16* tooltip) const override;
- virtual void GetAccessibleState(ui::AXViewState* state) override;
-
- private:
- static const char kViewClassName[];
-
- // Overridden from View:
- virtual gfx::Size GetPreferredSize() const override;
- virtual const char* GetClassName() const override;
- virtual void OnPaint(gfx::Canvas* canvas) override;
-
- // Inclusive range used when displaying values.
- double min_display_value_;
- double max_display_value_;
-
- // Current value. May be outside of [min_display_value_, max_display_value_].
- double current_value_;
-
- // Tooltip text.
- base::string16 tooltip_text_;
-
- DISALLOW_COPY_AND_ASSIGN(ProgressBar);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_PROGRESS_BAR_H_
« no previous file with comments | « ui/views/controls/prefix_selector_unittest.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698