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

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

Issue 9665026: Make views Slider accessible on Chrome OS (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change value to stringValue 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/accessibility/native_view_accessibility_win.cc ('k') | ui/views/controls/slider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/slider.h
diff --git a/ui/views/controls/slider.h b/ui/views/controls/slider.h
index 80fea2915358f37c99bb43ac30927e9a40d269c2..2e7a21fc7b230eb5c704ff67edc6a5ecbb1a4c63 100644
--- a/ui/views/controls/slider.h
+++ b/ui/views/controls/slider.h
@@ -48,6 +48,8 @@ class VIEWS_EXPORT Slider : public View,
float value() const { return value_; }
void SetValue(float value);
+ void SetAccessibleName(const string16& name);
+
private:
void SetValueInternal(float value, SliderChangeReason reason);
@@ -56,6 +58,7 @@ class VIEWS_EXPORT Slider : public View,
virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
+ virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
// ui::AnimationDelegate overrides:
virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
@@ -68,6 +71,7 @@ class VIEWS_EXPORT Slider : public View,
float value_;
float animating_value_;
bool value_is_valid_;
+ string16 accessible_name_;
DISALLOW_COPY_AND_ASSIGN(Slider);
};
« no previous file with comments | « ui/views/accessibility/native_view_accessibility_win.cc ('k') | ui/views/controls/slider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698