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

Side by Side Diff: ui/views/controls/progress_bar.h

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698