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

Unified Diff: ui/views/style/platform_style.h

Issue 2607923002: MacViews: Handle Space and Return keys correctly for Buttons. (Closed)
Patch Set: Address review. Created 3 years, 11 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/controls/button/custom_button_unittest.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/platform_style.h
diff --git a/ui/views/style/platform_style.h b/ui/views/style/platform_style.h
index e71720fbce3b714c30ebabab18757260a0eec5ac..5f945147b0037c3641ef829ae1bd4239e1df4be0 100644
--- a/ui/views/style/platform_style.h
+++ b/ui/views/style/platform_style.h
@@ -46,6 +46,13 @@ class VIEWS_EXPORT PlatformStyle {
// The menu button's action to show the menu.
static const CustomButton::NotifyAction kMenuNotifyActivationAction;
+ // Whether the Space key clicks a button on key press or key release.
+ static const CustomButton::KeyClickAction kKeyClickActionOnSpace;
+
+ // Whether the Return key clicks the focused control (on key press).
+ // Otherwise, Return does nothing unless it is handled by an accelerator.
+ static const bool kReturnClicksFocusedControl;
+
// Whether TreeViews get a focus ring on the entire TreeView when focused.
static const bool kTreeViewHasFocusRing;
« no previous file with comments | « ui/views/controls/button/custom_button_unittest.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698