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

Side by Side Diff: content/public/common/context_menu_params.h

Issue 73963004: [Chromium] Adding Writing direction to the context menu for linux gtk (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes under TOOLKIT_GTK Created 7 years, 1 month 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 | « content/common/view_messages.h ('k') | content/public/common/context_menu_params.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 6 #define CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // If editable, flag for whether node is speech-input enabled. 118 // If editable, flag for whether node is speech-input enabled.
119 bool speech_input_enabled; 119 bool speech_input_enabled;
120 120
121 // If editable, flag for whether spell check is enabled or not. 121 // If editable, flag for whether spell check is enabled or not.
122 bool spellcheck_enabled; 122 bool spellcheck_enabled;
123 123
124 // Whether context is editable. 124 // Whether context is editable.
125 bool is_editable; 125 bool is_editable;
126 126
127 #if defined(OS_MACOSX) 127 #if defined(OS_MACOSX) || defined(TOOLKIT_GTK)
128 // Writing direction menu items. 128 // Writing direction menu items.
129 // Currently only used on OS X. 129 // Currently only used on OS X and Linux.
130 int writing_direction_default; 130 int writing_direction_default;
131 int writing_direction_left_to_right; 131 int writing_direction_left_to_right;
132 int writing_direction_right_to_left; 132 int writing_direction_right_to_left;
133 #endif // OS_MACOSX 133 #endif // OS_MACOSX || defined(TOOLKIT_GTK)
134 134
135 // These flags indicate to the browser whether the renderer believes it is 135 // These flags indicate to the browser whether the renderer believes it is
136 // able to perform the corresponding action. 136 // able to perform the corresponding action.
137 int edit_flags; 137 int edit_flags;
138 138
139 // The security info for the resource we are showing the menu on. 139 // The security info for the resource we are showing the menu on.
140 SSLStatus security_info; 140 SSLStatus security_info;
141 141
142 // The character encoding of the frame on which the menu is invoked. 142 // The character encoding of the frame on which the menu is invoked.
143 std::string frame_charset; 143 std::string frame_charset;
(...skipping 10 matching lines...) Expand all
154 // Points representing the coordinates in the document space of the start and 154 // Points representing the coordinates in the document space of the start and
155 // end of the selection, if there is one. 155 // end of the selection, if there is one.
156 gfx::Point selection_start; 156 gfx::Point selection_start;
157 gfx::Point selection_end; 157 gfx::Point selection_end;
158 #endif 158 #endif
159 }; 159 };
160 160
161 } // namespace content 161 } // namespace content
162 162
163 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ 163 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/context_menu_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698