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

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

Issue 2228833002: MacViews: Fix behavior of move and select commands when selection direction changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@use_text_commands
Patch Set: 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
Index: ui/views/style/platform_style.h
diff --git a/ui/views/style/platform_style.h b/ui/views/style/platform_style.h
index 542c8c301800b6d18a85fe93daee2441b238a69b..bf85f026e80a0fae219196cbbd3666566f7beb64 100644
--- a/ui/views/style/platform_style.h
+++ b/ui/views/style/platform_style.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/macros.h"
+#include "ui/gfx/text_constants.h"
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/button/custom_button.h"
#include "ui/views/controls/combobox/combobox.h"
@@ -49,6 +50,14 @@ class VIEWS_EXPORT PlatformStyle {
// The menu button's action to show the menu.
static const CustomButton::NotifyAction kMenuNotifyActivationAction;
+ // The default behavior for word text selection commands, when the selection
+ // direction is reversed.
+ static const gfx::SelectionReversedBehavior kWordSelectionBehavior;
+
+ // The default behavior for line text selection commands, when the selection
+ // direction is reversed.
+ static const gfx::SelectionReversedBehavior kLineSelectionBehavior;
+
// Creates an ImageSkia containing the image to use for the combobox arrow.
// The |is_enabled| argument is true if the control the arrow is for is
// enabled, and false if the control is disabled. The |style| argument is the

Powered by Google App Engine
This is Rietveld 408576698