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

Side by Side Diff: content/public/common/context_menu_params.h

Issue 260903010: Start removing support for the experimental x-webkit-speech API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't touch histograms.xml Created 6 years, 7 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) 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
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
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_
OLDNEW
« no previous file with comments | « content/public/browser/speech_recognition_session_context.cc ('k') | content/public/common/context_menu_params.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698