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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // The identifier of the misspelling under the cursor, if any. | 105 // The identifier of the misspelling under the cursor, if any. |
106 uint32 misspelling_hash; | 106 uint32 misspelling_hash; |
107 | 107 |
108 // Suggested replacements for a misspelled word under the cursor. | 108 // Suggested replacements for a misspelled word under the cursor. |
109 // This vector gets populated in the render process host | 109 // This vector gets populated in the render process host |
110 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter | 110 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter |
111 // and populating dictionary_suggestions if the type is EDITABLE | 111 // and populating dictionary_suggestions if the type is EDITABLE |
112 // and the misspelled_word is not empty. | 112 // and the misspelled_word is not empty. |
113 std::vector<base::string16> dictionary_suggestions; | 113 std::vector<base::string16> dictionary_suggestions; |
114 | 114 |
115 // If editable, flag for whether node is speech-input enabled. | |
116 bool speech_input_enabled; | |
117 | |
118 // If editable, flag for whether spell check is enabled or not. | 115 // If editable, flag for whether spell check is enabled or not. |
119 bool spellcheck_enabled; | 116 bool spellcheck_enabled; |
120 | 117 |
121 // Whether context is editable. | 118 // Whether context is editable. |
122 bool is_editable; | 119 bool is_editable; |
123 | 120 |
124 // Writing direction menu items. | 121 // Writing direction menu items. |
125 int writing_direction_default; | 122 int writing_direction_default; |
126 int writing_direction_left_to_right; | 123 int writing_direction_left_to_right; |
127 int writing_direction_right_to_left; | 124 int writing_direction_right_to_left; |
(...skipping 20 matching lines...) Expand all Loading... |
148 // Points representing the coordinates in the document space of the start and | 145 // Points representing the coordinates in the document space of the start and |
149 // end of the selection, if there is one. | 146 // end of the selection, if there is one. |
150 gfx::Point selection_start; | 147 gfx::Point selection_start; |
151 gfx::Point selection_end; | 148 gfx::Point selection_end; |
152 #endif | 149 #endif |
153 }; | 150 }; |
154 | 151 |
155 } // namespace content | 152 } // namespace content |
156 | 153 |
157 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ | 154 #endif // CONTENT_PUBLIC_COMMON_CONTEXT_MENU_PARAMS_H_ |
OLD | NEW |