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

Unified Diff: ui/views/controls/button/checkbox.h

Issue 2240603002: Harmony checkbox/radio tweaks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 4 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/native_theme/common_theme.cc ('k') | ui/views/controls/button/checkbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/checkbox.h
diff --git a/ui/views/controls/button/checkbox.h b/ui/views/controls/button/checkbox.h
index 654039463623970ae54d1f3bac7182a00642009a..9c03ae6d7f957ad731fb1fe089f74e8a70a88d8c 100644
--- a/ui/views/controls/button/checkbox.h
+++ b/ui/views/controls/button/checkbox.h
@@ -14,6 +14,10 @@
class SkPaint;
+namespace gfx {
+enum class VectorIconId;
+}
+
namespace views {
class InkDropHover;
@@ -63,6 +67,10 @@ class VIEWS_EXPORT Checkbox : public LabelButton {
// Paints a focus indicator for the view.
virtual void PaintFocusRing(gfx::Canvas* canvas, const SkPaint& paint);
+ // Gets the vector icon id used to draw the icon based on the current state of
+ // |checked_|.
+ virtual gfx::VectorIconId GetVectorIconId() const;
+
private:
// Overridden from Button:
void NotifyClick(const ui::Event& event) override;
« no previous file with comments | « ui/native_theme/common_theme.cc ('k') | ui/views/controls/button/checkbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698