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

Side by Side Diff: ui/views/style/platform_style.h

Issue 2541313002: RenderTextHarfBuzz: Add support for multi line text selection. (Closed)
Patch Set: Fix test. Created 3 years, 12 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
« no previous file with comments | « ui/views/selection_controller.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 // Minimum size for platform-styled buttons (Button::STYLE_BUTTON). 33 // Minimum size for platform-styled buttons (Button::STYLE_BUTTON).
34 static const int kMinLabelButtonWidth; 34 static const int kMinLabelButtonWidth;
35 static const int kMinLabelButtonHeight; 35 static const int kMinLabelButtonHeight;
36 36
37 // Whether dialog-default buttons are given a bold font style. 37 // Whether dialog-default buttons are given a bold font style.
38 static const bool kDefaultLabelButtonHasBoldFont; 38 static const bool kDefaultLabelButtonHasBoldFont;
39 39
40 // Whether the default button for a dialog can be the Cancel button. 40 // Whether the default button for a dialog can be the Cancel button.
41 static const bool kDialogDefaultButtonCanBeCancel; 41 static const bool kDialogDefaultButtonCanBeCancel;
42 42
43 // Whether dragging vertically above or below a text view's bounds selects to
44 // the left or right end of the text from the cursor, respectively.
45 static const bool kTextDragVerticallyDragsToEnd;
46
47 // Whether right clicking on text, selects the word under cursor. 43 // Whether right clicking on text, selects the word under cursor.
48 static const bool kSelectWordOnRightClick; 44 static const bool kSelectWordOnRightClick;
49 45
50 // The menu button's action to show the menu. 46 // The menu button's action to show the menu.
51 static const CustomButton::NotifyAction kMenuNotifyActivationAction; 47 static const CustomButton::NotifyAction kMenuNotifyActivationAction;
52 48
53 // Whether TreeViews get a focus ring on the entire TreeView when focused. 49 // Whether TreeViews get a focus ring on the entire TreeView when focused.
54 static const bool kTreeViewHasFocusRing; 50 static const bool kTreeViewHasFocusRing;
55 51
56 // Whether selecting a row in a TreeView selects the entire row or only the 52 // Whether selecting a row in a TreeView selects the entire row or only the
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // the failed edit if platform-appropriate. 88 // the failed edit if platform-appropriate.
93 static void OnTextfieldEditFailed(); 89 static void OnTextfieldEditFailed();
94 90
95 private: 91 private:
96 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 92 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
97 }; 93 };
98 94
99 } // namespace views 95 } // namespace views
100 96
101 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 97 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_
OLDNEW
« no previous file with comments | « ui/views/selection_controller.cc ('k') | ui/views/style/platform_style.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698