| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef UI_VIEWS_CONTROLS_PROGRESS_BAR_H_ | 5 #ifndef UI_VIEWS_CONTROLS_PROGRESS_BAR_H_ |
| 6 #define UI_VIEWS_CONTROLS_PROGRESS_BAR_H_ | 6 #define UI_VIEWS_CONTROLS_PROGRESS_BAR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "ui/views/view.h" | 11 #include "ui/views/view.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 38 virtual bool GetTooltipText(const gfx::Point& p, | 38 virtual bool GetTooltipText(const gfx::Point& p, |
| 39 string16* tooltip) const OVERRIDE; | 39 string16* tooltip) const OVERRIDE; |
| 40 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 40 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 static const char kViewClassName[]; | 43 static const char kViewClassName[]; |
| 44 | 44 |
| 45 // Overridden from View: | 45 // Overridden from View: |
| 46 virtual gfx::Size GetPreferredSize() OVERRIDE; | 46 virtual gfx::Size GetPreferredSize() OVERRIDE; |
| 47 virtual std::string GetClassName() const OVERRIDE; | 47 virtual std::string GetClassName() const OVERRIDE; |
| 48 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 48 virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; |
| 49 | 49 |
| 50 // Inclusive range used when displaying values. | 50 // Inclusive range used when displaying values. |
| 51 double min_display_value_; | 51 double min_display_value_; |
| 52 double max_display_value_; | 52 double max_display_value_; |
| 53 | 53 |
| 54 // Current value. May be outside of [min_display_value_, max_display_value_]. | 54 // Current value. May be outside of [min_display_value_, max_display_value_]. |
| 55 double current_value_; | 55 double current_value_; |
| 56 | 56 |
| 57 // Tooltip text. | 57 // Tooltip text. |
| 58 string16 tooltip_text_; | 58 string16 tooltip_text_; |
| 59 | 59 |
| 60 DISALLOW_COPY_AND_ASSIGN(ProgressBar); | 60 DISALLOW_COPY_AND_ASSIGN(ProgressBar); |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace views | 63 } // namespace views |
| 64 | 64 |
| 65 #endif // UI_VIEWS_CONTROLS_PROGRESS_BAR_H_ | 65 #endif // UI_VIEWS_CONTROLS_PROGRESS_BAR_H_ |
| OLD | NEW |