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

Unified Diff: chrome/renderer/searchbox/searchbox.cc

Issue 23462014: InstantExtended: add back focus() API call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix semi-colon. Created 7 years, 4 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 | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox.cc
diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
index 8130cd0b1ca71de7496435bb463acbdb08a72150..be0f880e7b81b455fac4f8ec9669051bfc63c953 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -223,6 +223,12 @@ const ThemeBackgroundInfo& SearchBox::GetThemeBackgroundInfo() {
return theme_info_;
}
+void SearchBox::Focus() {
+ render_view()->Send(new ChromeViewHostMsg_FocusOmnibox(
+ render_view()->GetRoutingID(), render_view()->GetPageId(),
+ OMNIBOX_FOCUS_VISIBLE));
+}
+
void SearchBox::NavigateToURL(const GURL& url,
content::PageTransition transition,
WindowOpenDisposition disposition,
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698