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

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

Issue 10086005: ash: Show better focus rects for the tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 8 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 | « ash/system/user/tray_user.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 ba6416f8fa3c6adeb4e4aa8663e288c032cb98bb..f93cc4a719e7dc5999f82dcb9bf58771cb12e2ed 100644
--- a/ui/views/controls/slider.h
+++ b/ui/views/controls/slider.h
@@ -10,6 +10,8 @@
#include "ui/views/view.h"
#include "ui/views/views_export.h"
+typedef unsigned int SkColor;
+
namespace ui {
class SlideAnimation;
}
@@ -58,6 +60,8 @@ class VIEWS_EXPORT Slider : public View,
void SetAccessibleName(const string16& name);
+ void set_focus_color(SkColor color) { focus_color_ = color; }
Ben Goodger (Google) 2012/04/13 20:13:42 set_focus_border_color
sadrul 2012/04/13 20:42:46 Done.
+
private:
void SetValueInternal(float value, SliderChangeReason reason);
@@ -69,6 +73,7 @@ class VIEWS_EXPORT Slider : public View,
virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
virtual bool OnKeyPressed(const views::KeyEvent& event) OVERRIDE;
virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
+ virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE;
// ui::AnimationDelegate overrides:
virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
@@ -83,6 +88,7 @@ class VIEWS_EXPORT Slider : public View,
float animating_value_;
bool value_is_valid_;
string16 accessible_name_;
+ SkColor focus_color_;
DISALLOW_COPY_AND_ASSIGN(Slider);
};
« no previous file with comments | « ash/system/user/tray_user.cc ('k') | ui/views/controls/slider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698