| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_CONTROLS_PROGRESS_BAR_H_ | 5 #ifndef VIEWS_CONTROLS_PROGRESS_BAR_H_ |
| 6 #define VIEWS_CONTROLS_PROGRESS_BAR_H_ | 6 #define VIEWS_CONTROLS_PROGRESS_BAR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "views/view.h" | 11 #include "views/view.h" |
| 12 | 12 |
| 13 namespace gfx { | 13 namespace gfx { |
| 14 class Canvas; | 14 class Canvas; |
| 15 class Point; | 15 class Point; |
| 16 class Size; | 16 class Size; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace views { | 19 namespace views { |
| 20 | 20 |
| 21 ///////////////////////////////////////////////////////////////////////////// | 21 ///////////////////////////////////////////////////////////////////////////// |
| 22 // | 22 // |
| 23 // ProgressBar class | 23 // ProgressBar class |
| 24 // | 24 // |
| 25 // A progress bar is a control that indicates progress visually. | 25 // A progress bar is a control that indicates progress visually. |
| 26 // | 26 // |
| 27 ///////////////////////////////////////////////////////////////////////////// | 27 ///////////////////////////////////////////////////////////////////////////// |
| 28 | 28 |
| 29 class VIEWS_API ProgressBar : public View { | 29 class VIEWS_EXPORT ProgressBar : public View { |
| 30 public: | 30 public: |
| 31 ProgressBar(); | 31 ProgressBar(); |
| 32 virtual ~ProgressBar(); | 32 virtual ~ProgressBar(); |
| 33 | 33 |
| 34 // Overridden to return preferred size of the progress bar. | 34 // Overridden to return preferred size of the progress bar. |
| 35 virtual gfx::Size GetPreferredSize(); | 35 virtual gfx::Size GetPreferredSize(); |
| 36 | 36 |
| 37 // Returns views/ProgressBar. | 37 // Returns views/ProgressBar. |
| 38 virtual std::string GetClassName() const; | 38 virtual std::string GetClassName() const; |
| 39 | 39 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 | 73 |
| 74 // The view class name. | 74 // The view class name. |
| 75 static const char kViewClassName[]; | 75 static const char kViewClassName[]; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(ProgressBar); | 77 DISALLOW_COPY_AND_ASSIGN(ProgressBar); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace views | 80 } // namespace views |
| 81 | 81 |
| 82 #endif // VIEWS_CONTROLS_PROGRESS_BAR_H_ | 82 #endif // VIEWS_CONTROLS_PROGRESS_BAR_H_ |
| OLD | NEW |