| 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(OS_LINUX) |
| 128 // Writing direction menu items. | 128 // Writing direction menu items. |
| 129 // Currently only used on OS X. | |
| 130 int writing_direction_default; | 129 int writing_direction_default; |
| 131 int writing_direction_left_to_right; | 130 int writing_direction_left_to_right; |
| 132 int writing_direction_right_to_left; | 131 int writing_direction_right_to_left; |
| 133 #endif // OS_MACOSX | 132 #endif // OS_MACOSX || defined(OS_LINUX) |
| 134 | 133 |
| 135 // These flags indicate to the browser whether the renderer believes it is | 134 // These flags indicate to the browser whether the renderer believes it is |
| 136 // able to perform the corresponding action. | 135 // able to perform the corresponding action. |
| 137 int edit_flags; | 136 int edit_flags; |
| 138 | 137 |
| 139 // The security info for the resource we are showing the menu on. | 138 // The security info for the resource we are showing the menu on. |
| 140 SSLStatus security_info; | 139 SSLStatus security_info; |
| 141 | 140 |
| 142 // The character encoding of the frame on which the menu is invoked. | 141 // The character encoding of the frame on which the menu is invoked. |
| 143 std::string frame_charset; | 142 std::string frame_charset; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 154 // Points representing the coordinates in the document space of the start and | 153 // Points representing the coordinates in the document space of the start and |
| 155 // end of the selection, if there is one. | 154 // end of the selection, if there is one. |
| 156 gfx::Point selection_start; | 155 gfx::Point selection_start; |
| 157 gfx::Point selection_end; | 156 gfx::Point selection_end; |
| 158 #endif | 157 #endif |
| 159 }; | 158 }; |
| 160 | 159 |
| 161 } // namespace content | 160 } // namespace content |
| 162 | 161 |
| 163 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ | 162 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ |
| OLD | NEW |