OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 WEBKIT_GLUE_CONTEXT_MENU_H_ | 5 #ifndef WEBKIT_GLUE_CONTEXT_MENU_H_ |
6 #define WEBKIT_GLUE_CONTEXT_MENU_H_ | 6 #define WEBKIT_GLUE_CONTEXT_MENU_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // |dictionary_suggestions| list. | 91 // |dictionary_suggestions| list. |
92 string16 misspelled_word; | 92 string16 misspelled_word; |
93 | 93 |
94 // Suggested replacements for a misspelled word under the cursor. | 94 // Suggested replacements for a misspelled word under the cursor. |
95 // This vector gets populated in the render process host | 95 // This vector gets populated in the render process host |
96 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter | 96 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter |
97 // and populating dictionary_suggestions if the type is EDITABLE | 97 // and populating dictionary_suggestions if the type is EDITABLE |
98 // and the misspelled_word is not empty. | 98 // and the misspelled_word is not empty. |
99 std::vector<string16> dictionary_suggestions; | 99 std::vector<string16> dictionary_suggestions; |
100 | 100 |
| 101 // If editable, flag for whether node is speech-input enabled. |
| 102 bool speech_input_enabled; |
| 103 |
101 // If editable, flag for whether spell check is enabled or not. | 104 // If editable, flag for whether spell check is enabled or not. |
102 bool spellcheck_enabled; | 105 bool spellcheck_enabled; |
103 | 106 |
104 // Whether context is editable. | 107 // Whether context is editable. |
105 bool is_editable; | 108 bool is_editable; |
106 | 109 |
107 #if defined(OS_MACOSX) | 110 #if defined(OS_MACOSX) |
108 // Writing direction menu items. | 111 // Writing direction menu items. |
109 // Currently only used on OS X. | 112 // Currently only used on OS X. |
110 int writing_direction_default; | 113 int writing_direction_default; |
(...skipping 13 matching lines...) Expand all Loading... |
124 | 127 |
125 webkit_glue::CustomContextMenuContext custom_context; | 128 webkit_glue::CustomContextMenuContext custom_context; |
126 std::vector<WebMenuItem> custom_items; | 129 std::vector<WebMenuItem> custom_items; |
127 | 130 |
128 ContextMenuParams(); | 131 ContextMenuParams(); |
129 ContextMenuParams(const WebKit::WebContextMenuData& data); | 132 ContextMenuParams(const WebKit::WebContextMenuData& data); |
130 ~ContextMenuParams(); | 133 ~ContextMenuParams(); |
131 }; | 134 }; |
132 | 135 |
133 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ | 136 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ |
OLD | NEW |