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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.h

Issue 7086005: Context menu for "Voice recognition options" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: No changes (Just trying to get commit-bot to wake up) 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 CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 void AppendVideoItems(); 104 void AppendVideoItems();
105 void AppendMediaItems(); 105 void AppendMediaItems();
106 void AppendPluginItems(); 106 void AppendPluginItems();
107 void AppendPageItems(); 107 void AppendPageItems();
108 void AppendFrameItems(); 108 void AppendFrameItems();
109 void AppendCopyItem(); 109 void AppendCopyItem();
110 void AppendEditableItems(); 110 void AppendEditableItems();
111 void AppendSearchProvider(); 111 void AppendSearchProvider();
112 void AppendAllExtensionItems(); 112 void AppendAllExtensionItems();
113 void AppendSpellcheckOptionsSubMenu(); 113 void AppendSpellcheckOptionsSubMenu();
114 void AppendSpeechInputOptionsSubMenu();
114 // Add writing direction sub menu (only used on Mac). 115 // Add writing direction sub menu (only used on Mac).
115 void AppendBidiSubMenu(); 116 void AppendBidiSubMenu();
116 void AppendProtocolHandlerSubMenu(); 117 void AppendProtocolHandlerSubMenu();
117 118
118 // This is a helper function to append items for one particular extension. 119 // This is a helper function to append items for one particular extension.
119 // The |index| parameter is used for assigning id's, and is incremented for 120 // The |index| parameter is used for assigning id's, and is incremented for
120 // each item actually added. 121 // each item actually added.
121 void AppendExtensionItems(const std::string& extension_id, int* index); 122 void AppendExtensionItems(const std::string& extension_id, int* index);
122 123
123 // Used for recursively adding submenus of extension items. 124 // Used for recursively adding submenus of extension items.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 157
157 // Returns a (possibly truncated) version of the current selection text 158 // Returns a (possibly truncated) version of the current selection text
158 // suitable or putting in the title of a menu item. 159 // suitable or putting in the title of a menu item.
159 string16 PrintableSelectionText(); 160 string16 PrintableSelectionText();
160 161
161 // The destination URL to use if the user tries to search for or navigate to 162 // The destination URL to use if the user tries to search for or navigate to
162 // a text selection. 163 // a text selection.
163 GURL selection_navigation_url_; 164 GURL selection_navigation_url_;
164 165
165 ui::SimpleMenuModel spellcheck_submenu_model_; 166 ui::SimpleMenuModel spellcheck_submenu_model_;
167 ui::SimpleMenuModel speech_input_submenu_model_;
166 ui::SimpleMenuModel bidi_submenu_model_; 168 ui::SimpleMenuModel bidi_submenu_model_;
167 ui::SimpleMenuModel protocol_handler_submenu_model_; 169 ui::SimpleMenuModel protocol_handler_submenu_model_;
168 ScopedVector<ui::SimpleMenuModel> extension_menu_models_; 170 ScopedVector<ui::SimpleMenuModel> extension_menu_models_;
169 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_; 171 scoped_refptr<ProtocolHandlerRegistry> protocol_handler_registry_;
170 172
171 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu); 173 DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenu);
172 }; 174 };
173 175
174 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_ 176 #endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_H_
OLDNEW
« no previous file with comments | « chrome/browser/speech/speech_input_manager.cc ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698