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

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

Issue 20501002: Adds paste function to searchbox api and handles paste event on fakebox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds optional text param to paste. Also adds drop behavior to fakebox. Created 7 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
Index: chrome/renderer/searchbox/searchbox.h
diff --git a/chrome/renderer/searchbox/searchbox.h b/chrome/renderer/searchbox/searchbox.h
index b4743c980a880848ccdc403f93eb5c86e8a4ff09..8596d8b554f4236ade49b8b2387ae1576313331b 100644
--- a/chrome/renderer/searchbox/searchbox.h
+++ b/chrome/renderer/searchbox/searchbox.h
@@ -71,6 +71,9 @@ class SearchBox : public content::RenderViewObserver,
WindowOpenDisposition disposition,
bool is_search_type);
+ // Pastes text or clipboard content if text is empty into the omnibox.
samarth 2013/08/06 18:39:44 Just // Sends ChromeViewHostMsg_SearchBoxPaste to
jfweitz 2013/08/09 02:37:41 Done.
+ void Paste(const string16& text);
+
const ThemeBackgroundInfo& GetThemeBackgroundInfo();
// Sends ChromeViewHostMsg_SetVoiceSearchSupported to the browser.

Powered by Google App Engine
This is Rietveld 408576698