OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |