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

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

Issue 2650963002: MacViews: Select all text on right clicking an unfocused text view. (Closed)
Patch Set: Nit Created 3 years, 10 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 25 matching lines...) Expand all
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 right clicking on text, selects the word under cursor. 43 // Whether right clicking on text, selects the word under cursor.
44 static const bool kSelectWordOnRightClick; 44 static const bool kSelectWordOnRightClick;
45 45
46 // Whether right clicking inside an unfocused text view selects all the text.
47 static const bool kSelectAllOnRightClickWhenUnfocused;
48
46 // The menu button's action to show the menu. 49 // The menu button's action to show the menu.
47 static const CustomButton::NotifyAction kMenuNotifyActivationAction; 50 static const CustomButton::NotifyAction kMenuNotifyActivationAction;
48 51
49 // Whether the Space key clicks a button on key press or key release. 52 // Whether the Space key clicks a button on key press or key release.
50 static const CustomButton::KeyClickAction kKeyClickActionOnSpace; 53 static const CustomButton::KeyClickAction kKeyClickActionOnSpace;
51 54
52 // Whether the Return key clicks the focused control (on key press). 55 // Whether the Return key clicks the focused control (on key press).
53 // Otherwise, Return does nothing unless it is handled by an accelerator. 56 // Otherwise, Return does nothing unless it is handled by an accelerator.
54 static const bool kReturnClicksFocusedControl; 57 static const bool kReturnClicksFocusedControl;
55 58
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // the failed edit if platform-appropriate. 98 // the failed edit if platform-appropriate.
96 static void OnTextfieldEditFailed(); 99 static void OnTextfieldEditFailed();
97 100
98 private: 101 private:
99 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle); 102 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformStyle);
100 }; 103 };
101 104
102 } // namespace views 105 } // namespace views
103 106
104 #endif // UI_VIEWS_STYLE_PLATFORM_STYLE_H_ 107 #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