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

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

Issue 1870573003: Full Keyboard Access: Second Approach (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « ui/views/controls/button/custom_button.h ('k') | ui/views/controls/button/label_button.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_IMAGE_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_IMAGE_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_IMAGE_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_IMAGE_BUTTON_H_
7 7
8 #include "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/base/layout.h" 11 #include "ui/base/layout.h"
12 #include "ui/gfx/image/image_skia.h" 12 #include "ui/gfx/image/image_skia.h"
13 #include "ui/views/controls/button/custom_button.h" 13 #include "ui/views/controls/button/custom_button.h"
14 14
15 namespace views { 15 namespace views {
16 16
17 class Painter; 17 class Painter;
18 18
19 // An image button. 19 // An image button.
20 20
21 // Note that this type of button is not focusable by default and will not be 21 // Note that this type of button is not focusable by default and will not be
22 // part of the focus chain. Call SetFocusable(true) to make it part of the 22 // part of the focus chain. Call PlatformStyle::ConfigureFocus to make it
23 // focus chain. 23 // part of the focus chain.
24
25 class VIEWS_EXPORT ImageButton : public CustomButton { 24 class VIEWS_EXPORT ImageButton : public CustomButton {
26 public: 25 public:
27 static const char kViewClassName[]; 26 static const char kViewClassName[];
28 27
29 enum HorizontalAlignment { 28 enum HorizontalAlignment {
30 ALIGN_LEFT = 0, 29 ALIGN_LEFT = 0,
31 ALIGN_CENTER, 30 ALIGN_CENTER,
32 ALIGN_RIGHT 31 ALIGN_RIGHT
33 }; 32 };
34 33
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // The parent class's tooltip_text_ is displayed when not toggled, and 161 // The parent class's tooltip_text_ is displayed when not toggled, and
163 // this one is shown when toggled. 162 // this one is shown when toggled.
164 base::string16 toggled_tooltip_text_; 163 base::string16 toggled_tooltip_text_;
165 164
166 DISALLOW_COPY_AND_ASSIGN(ToggleImageButton); 165 DISALLOW_COPY_AND_ASSIGN(ToggleImageButton);
167 }; 166 };
168 167
169 } // namespace views 168 } // namespace views
170 169
171 #endif // UI_VIEWS_CONTROLS_BUTTON_IMAGE_BUTTON_H_ 170 #endif // UI_VIEWS_CONTROLS_BUTTON_IMAGE_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/views/controls/button/custom_button.h ('k') | ui/views/controls/button/label_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698