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

Unified Diff: ui/views/controls/slider.cc

Issue 863223002: Add missing views class names (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: table 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/slider.h ('k') | ui/views/controls/styled_label.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/slider.cc
diff --git a/ui/views/controls/slider.cc b/ui/views/controls/slider.cc
index f1d2bc34915c4c532753d10648c33971a85682a4..b5c71c2451f37e235724827b082a3329fd9dc626 100644
--- a/ui/views/controls/slider.cc
+++ b/ui/views/controls/slider.cc
@@ -51,6 +51,9 @@ enum BorderElements {
namespace views {
+// static
+const char Slider::kViewClassName[] = "Slider";
+
Slider::Slider(SliderListener* listener, Orientation orientation)
: listener_(listener),
orientation_(orientation),
@@ -186,6 +189,10 @@ void Slider::OnPaintFocus(gfx::Canvas* canvas) {
}
}
+const char* Slider::GetClassName() const {
+ return kViewClassName;
+}
+
gfx::Size Slider::GetPreferredSize() const {
const int kSizeMajor = 200;
const int kSizeMinor = 40;
« no previous file with comments | « ui/views/controls/slider.h ('k') | ui/views/controls/styled_label.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698