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

Side by Side Diff: webkit/glue/context_menu.h

Issue 7086005: Context menu for "Voice recognition options" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Reverted changes in render_view_host and implemented instead in render_view_context_menu Created 9 years, 5 months 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 | Annotate | Revision Log
OLDNEW
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // |dictionary_suggestions| list. 88 // |dictionary_suggestions| list.
89 string16 misspelled_word; 89 string16 misspelled_word;
90 90
91 // Suggested replacements for a misspelled word under the cursor. 91 // Suggested replacements for a misspelled word under the cursor.
92 // This vector gets populated in the render process host 92 // This vector gets populated in the render process host
93 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter 93 // by intercepting ViewHostMsg_ContextMenu in ResourceMessageFilter
94 // and populating dictionary_suggestions if the type is EDITABLE 94 // and populating dictionary_suggestions if the type is EDITABLE
95 // and the misspelled_word is not empty. 95 // and the misspelled_word is not empty.
96 std::vector<string16> dictionary_suggestions; 96 std::vector<string16> dictionary_suggestions;
97 97
98 // If editable, flag for whether node is speech-input enabled.
99 bool speech_input_enabled;
100
98 // If editable, flag for whether spell check is enabled or not. 101 // If editable, flag for whether spell check is enabled or not.
99 bool spellcheck_enabled; 102 bool spellcheck_enabled;
100 103
101 // Whether context is editable. 104 // Whether context is editable.
102 bool is_editable; 105 bool is_editable;
103 106
104 #if defined(OS_MACOSX) 107 #if defined(OS_MACOSX)
105 // Writing direction menu items. 108 // Writing direction menu items.
106 // Currently only used on OS X. 109 // Currently only used on OS X.
107 int writing_direction_default; 110 int writing_direction_default;
(...skipping 13 matching lines...) Expand all
121 124
122 webkit_glue::CustomContextMenuContext custom_context; 125 webkit_glue::CustomContextMenuContext custom_context;
123 std::vector<WebMenuItem> custom_items; 126 std::vector<WebMenuItem> custom_items;
124 127
125 ContextMenuParams(); 128 ContextMenuParams();
126 ContextMenuParams(const WebKit::WebContextMenuData& data); 129 ContextMenuParams(const WebKit::WebContextMenuData& data);
127 ~ContextMenuParams(); 130 ~ContextMenuParams();
128 }; 131 };
129 132
130 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_ 133 #endif // WEBKIT_GLUE_CONTEXT_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698