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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_STYLE_PLATFORM_STYLE_H_ 5 #ifndef UI_VIEWS_STYLE_PLATFORM_STYLE_H_
6 #define UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 6 #define UI_VIEWS_STYLE_PLATFORM_STYLE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/views/controls/button/button.h" 10 #include "ui/views/controls/button/button.h"
11 11
12 namespace views { 12 namespace views {
13 13
14 class Border; 14 class Border;
15 class LabelButton; 15 class LabelButton;
16 class LabelButtonBorder; 16 class LabelButtonBorder;
17 17
18 // Cross-platform API for providing platform-specific styling for toolkit-views. 18 // Cross-platform API for providing platform-specific styling for toolkit-views.
19 class PlatformStyle { 19 class PlatformStyle {
20 public: 20 public:
21 // True if dragging vertically above or below a textfield's bounds selects to
22 // the beginning or end of the text from the cursor, respectively.
23 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
24
21 // Creates the default label button border for the given |style|. Used when a 25 // Creates the default label button border for the given |style|. Used when a
22 // custom default border is not provided for a particular LabelButton class. 26 // custom default border is not provided for a particular LabelButton class.
23 static scoped_ptr<LabelButtonBorder> CreateLabelButtonBorder( 27 static scoped_ptr<LabelButtonBorder> CreateLabelButtonBorder(
24 Button::ButtonStyle style); 28 Button::ButtonStyle style);
25 29
26 // Applies the current system theme to the default border created by |button|. 30 // Applies the current system theme to the default border created by |button|.
27 static scoped_ptr<Border> CreateThemedLabelButtonBorder(LabelButton* button); 31 static scoped_ptr<Border> CreateThemedLabelButtonBorder(LabelButton* button);
28 32
29 private: 33 private:
30 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 34 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
31 }; 35 };
32 36
33 } // namespace views 37 } // namespace views
34 38
35 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 39 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698