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

Unified Diff: content/browser/renderer_host/render_view_host.cc

Issue 7086005: Context menu for "Voice recognition options" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Context menu for "Voice recognition options" 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_view_host.h ('k') | content/browser/speech/speech_input_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host.cc
diff --git a/content/browser/renderer_host/render_view_host.cc b/content/browser/renderer_host/render_view_host.cc
index 2376d887da51e22987dc3f71df514e1fe0a1a0a8..c5bb00724470ee48525db162edcd7cf1a434afa1 100644
--- a/content/browser/renderer_host/render_view_host.cc
+++ b/content/browser/renderer_host/render_view_host.cc
@@ -15,7 +15,9 @@
#include "base/time.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
+#include "chrome/browser/google/google_util.h"
jam 2011/07/19 23:06:54 you're going to get a deps failure for including c
gshires 2011/07/20 13:48:43 Done.
jam 2011/07/20 15:49:27 thanks!
#include "chrome/browser/profiles/profile.h"
+#include "chrome/common/url_constants.h"
#include "content/browser/browser_message_filter.h"
#include "content/browser/child_process_security_policy.h"
#include "content/browser/content_browser_client.h"
@@ -511,6 +513,13 @@ void RenderViewHost::SelectAll() {
UserMetrics::RecordAction(UserMetricsAction("SelectAll"));
}
+void RenderViewHost::SpeechInputAbout() {
+ GURL about_url(chrome::kSpeechInputAboutURL);
+ GURL localized_about_url = google_util::AppendGoogleLocaleParam(about_url);
+ // Open URL with no referrer field (because user clicked on menu item).
+ delegate_->RequestOpenURL(localized_about_url, GURL(), NEW_FOREGROUND_TAB);
+}
+
void RenderViewHost::JavaScriptDialogClosed(IPC::Message* reply_msg,
bool success,
const string16& user_input) {
« no previous file with comments | « content/browser/renderer_host/render_view_host.h ('k') | content/browser/speech/speech_input_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698