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

Unified Diff: chrome/renderer/resources/extensions/searchbox_api.js

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: Nits 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/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/searchbox_api.js
diff --git a/chrome/renderer/resources/extensions/searchbox_api.js b/chrome/renderer/resources/extensions/searchbox_api.js
index 6bdb5ea00e27eb3f2226dd78a03113093c41c941..3aa3d533d8d01de2a3cf2a2b4d9988fc57a48202 100644
--- a/chrome/renderer/resources/extensions/searchbox_api.js
+++ b/chrome/renderer/resources/extensions/searchbox_api.js
@@ -21,6 +21,7 @@ if (!chrome.embeddedSearch) {
native function GetStartMargin();
native function IsFocused();
native function IsKeyCaptureEnabled();
+ native function Paste();
native function SetVoiceSearchSupported();
native function StartCapturingKeyStrokes();
native function StopCapturingKeyStrokes();
@@ -42,6 +43,10 @@ if (!chrome.embeddedSearch) {
return GetMostVisitedItemData(restrictedId);
};
+ this.paste = function(value) {
+ Paste(value);
+ };
+
this.setVoiceSearchSupported = function(supported) {
SetVoiceSearchSupported(supported);
};
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698