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

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

Issue 2580293003: MacViews: Select word under cursor on right click. (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 26 matching lines...) Expand all
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 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. 44 // the left or right end of the text from the cursor, respectively.
45 static const bool kTextDragVerticallyDragsToEnd; 45 static const bool kTextDragVerticallyDragsToEnd;
46 46
47 // Whether right clicking on text, selects the word under cursor.
48 static const bool kSelectWordOnRightClick;
49
47 // The menu button's action to show the menu. 50 // The menu button's action to show the menu.
48 static const CustomButton::NotifyAction kMenuNotifyActivationAction; 51 static const CustomButton::NotifyAction kMenuNotifyActivationAction;
49 52
50 // Whether TreeViews get a focus ring on the entire TreeView when focused. 53 // Whether TreeViews get a focus ring on the entire TreeView when focused.
51 static const bool kTreeViewHasFocusRing; 54 static const bool kTreeViewHasFocusRing;
52 55
53 // Whether selecting a row in a TreeView selects the entire row or only the 56 // Whether selecting a row in a TreeView selects the entire row or only the
54 // label for that row. 57 // label for that row.
55 static const bool kTreeViewSelectionPaintsEntireRow; 58 static const bool kTreeViewSelectionPaintsEntireRow;
56 59
(...skipping 28 matching lines...) Expand all
85 // the failed edit if platform-appropriate. 88 // the failed edit if platform-appropriate.
86 static void OnTextfieldEditFailed(); 89 static void OnTextfieldEditFailed();
87 90
88 private: 91 private:
89 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 92 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
90 }; 93 };
91 94
92 } // namespace views 95 } // namespace views
93 96
94 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 97 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698