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

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

Issue 2541313002: RenderTextHarfBuzz: Add support for multi line text selection. (Closed)
Patch Set: --- Created 4 years 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 <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 // The menu button's action to show the menu. 43 // The menu button's action to show the menu.
48 static const CustomButton::NotifyAction kMenuNotifyActivationAction; 44 static const CustomButton::NotifyAction kMenuNotifyActivationAction;
49 45
50 // Whether TreeViews get a focus ring on the entire TreeView when focused. 46 // Whether TreeViews get a focus ring on the entire TreeView when focused.
51 static const bool kTreeViewHasFocusRing; 47 static const bool kTreeViewHasFocusRing;
52 48
53 // Whether selecting a row in a TreeView selects the entire row or only the 49 // Whether selecting a row in a TreeView selects the entire row or only the
54 // label for that row. 50 // label for that row.
55 static const bool kTreeViewSelectionPaintsEntireRow; 51 static const bool kTreeViewSelectionPaintsEntireRow;
56 52
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // the failed edit if platform-appropriate. 85 // the failed edit if platform-appropriate.
90 static void OnTextfieldEditFailed(); 86 static void OnTextfieldEditFailed();
91 87
92 private: 88 private:
93 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 89 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
94 }; 90 };
95 91
96 } // namespace views 92 } // namespace views
97 93
98 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 94 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698