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

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: 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"
(...skipping 19 matching lines...) Expand all
30 // custom default border is not provided for a particular LabelButton class. 30 // custom default border is not provided for a particular LabelButton class.
31 static scoped_ptr<LabelButtonBorder> CreateLabelButtonBorder( 31 static scoped_ptr<LabelButtonBorder> CreateLabelButtonBorder(
32 Button::ButtonStyle style); 32 Button::ButtonStyle style);
33 33
34 // Applies the current system theme to the default border created by |button|. 34 // Applies the current system theme to the default border created by |button|.
35 static scoped_ptr<Border> CreateThemedLabelButtonBorder(LabelButton* button); 35 static scoped_ptr<Border> CreateThemedLabelButtonBorder(LabelButton* button);
36 36
37 // Creates the default scrollbar for the given orientation. 37 // Creates the default scrollbar for the given orientation.
38 static scoped_ptr<ScrollBar> CreateScrollBar(bool is_horizontal); 38 static scoped_ptr<ScrollBar> CreateScrollBar(bool is_horizontal);
39 39
40 // True if dragging vertically above or below a textfield's bounds selects to
41 // the beginning or end of the text from the cursor, respectively.
42 static const bool kTextfieldDragVerticallyDragsToEnd;
tapted 2016/04/06 23:29:38 this should be ordered before all the functions (s
Elly Fong-Jones 2016/04/07 17:43:47 Done.
43
40 private: 44 private:
41 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 45 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
42 }; 46 };
43 47
44 } // namespace views 48 } // namespace views
45 49
46 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 50 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698