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

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

Issue 1865063004: views: support vertical-drag-to-end on textfields (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor some textfield unittests 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 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 e56fe0e30ba41263550095c37f381c195b0cf850..5c8cf9fbcd6ad492fecc098d7907256def6c912a 100644
--- a/ui/views/style/platform_style.h
+++ b/ui/views/style/platform_style.h
@@ -18,6 +18,10 @@ class LabelButtonBorder;
// Cross-platform API for providing platform-specific styling for toolkit-views.
class PlatformStyle {
public:
+ // True if dragging vertically above or below a textfield's bounds selects to
+ // the beginning or end of the text from the cursor, respectively.
+ VIEWS_EXPORT static const bool kTextfieldDragVerticallyDragsToEnd;
tapted 2016/04/15 00:35:08 #include ui/views/views_export.h for this. Also I
Elly Fong-Jones 2016/04/15 14:47:46 After a rebase, it seems like it is already includ
tapted 2016/04/18 01:14:39 ahyep - that was me :3
+
// Creates the default label button border for the given |style|. Used when a
// custom default border is not provided for a particular LabelButton class.
static scoped_ptr<LabelButtonBorder> CreateLabelButtonBorder(

Powered by Google App Engine
This is Rietveld 408576698