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

Side by Side Diff: ui/views/controls/button/checkbox.h

Issue 2734273002: Remove dashed focus rect from Views checkboxes. (Closed)
Patch Set: review Created 3 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/views/controls/button/checkbox.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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BUTTON_CHECKBOX_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 23 matching lines...) Expand all
34 34
35 // Sets/Gets whether or not the checkbox is checked. 35 // Sets/Gets whether or not the checkbox is checked.
36 virtual void SetChecked(bool checked); 36 virtual void SetChecked(bool checked);
37 bool checked() const { return checked_; } 37 bool checked() const { return checked_; }
38 38
39 protected: 39 protected:
40 // Returns whether MD is enabled; exists for the sake of brevity. 40 // Returns whether MD is enabled; exists for the sake of brevity.
41 static bool UseMd(); 41 static bool UseMd();
42 42
43 // Overridden from LabelButton: 43 // Overridden from LabelButton:
44 void Layout() override;
45 const char* GetClassName() const override; 44 const char* GetClassName() const override;
46 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; 45 void GetAccessibleNodeData(ui::AXNodeData* node_data) override;
47 void OnPaint(gfx::Canvas* canvas) override; 46 void OnPaint(gfx::Canvas* canvas) override;
48 void OnFocus() override; 47 void OnFocus() override;
49 void OnBlur() override; 48 void OnBlur() override;
50 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; 49 void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
51 std::unique_ptr<InkDropRipple> CreateInkDropRipple() const override; 50 std::unique_ptr<InkDropRipple> CreateInkDropRipple() const override;
52 SkColor GetInkDropBaseColor() const override; 51 SkColor GetInkDropBaseColor() const override;
53 gfx::ImageSkia GetImage(ButtonState for_state) const override; 52 gfx::ImageSkia GetImage(ButtonState for_state) const override;
54 53
(...skipping 22 matching lines...) Expand all
77 76
78 // The images for each button node_data. 77 // The images for each button node_data.
79 gfx::ImageSkia images_[2][2][STATE_COUNT]; 78 gfx::ImageSkia images_[2][2][STATE_COUNT];
80 79
81 DISALLOW_COPY_AND_ASSIGN(Checkbox); 80 DISALLOW_COPY_AND_ASSIGN(Checkbox);
82 }; 81 };
83 82
84 } // namespace views 83 } // namespace views
85 84
86 #endif // UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_ 85 #endif // UI_VIEWS_CONTROLS_BUTTON_CHECKBOX_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/button/checkbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698