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

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

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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
« no previous file with comments | « ui/views/controls/native/native_view_host.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 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 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 28 matching lines...) Expand all
39 39
40 // Overridden from View: 40 // Overridden from View:
41 virtual bool GetTooltipText(const gfx::Point& p, 41 virtual bool GetTooltipText(const gfx::Point& p,
42 base::string16* tooltip) const OVERRIDE; 42 base::string16* tooltip) const OVERRIDE;
43 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 43 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
44 44
45 private: 45 private:
46 static const char kViewClassName[]; 46 static const char kViewClassName[];
47 47
48 // Overridden from View: 48 // Overridden from View:
49 virtual gfx::Size GetPreferredSize() OVERRIDE; 49 virtual gfx::Size GetPreferredSize() const OVERRIDE;
50 virtual const char* GetClassName() const OVERRIDE; 50 virtual const char* GetClassName() const OVERRIDE;
51 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 51 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
52 52
53 // Inclusive range used when displaying values. 53 // Inclusive range used when displaying values.
54 double min_display_value_; 54 double min_display_value_;
55 double max_display_value_; 55 double max_display_value_;
56 56
57 // Current value. May be outside of [min_display_value_, max_display_value_]. 57 // Current value. May be outside of [min_display_value_, max_display_value_].
58 double current_value_; 58 double current_value_;
59 59
60 // Tooltip text. 60 // Tooltip text.
61 base::string16 tooltip_text_; 61 base::string16 tooltip_text_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(ProgressBar); 63 DISALLOW_COPY_AND_ASSIGN(ProgressBar);
64 }; 64 };
65 65
66 } // namespace views 66 } // namespace views
67 67
68 #endif // UI_VIEWS_CONTROLS_PROGRESS_BAR_H_ 68 #endif // UI_VIEWS_CONTROLS_PROGRESS_BAR_H_
OLDNEW
« no previous file with comments | « ui/views/controls/native/native_view_host.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698