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

Unified Diff: chrome/browser/ui/omnibox/omnibox_view.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/browser/ui/omnibox/omnibox_view.h
diff --git a/chrome/browser/ui/omnibox/omnibox_view.h b/chrome/browser/ui/omnibox/omnibox_view.h
index 9fb5b943a747f160e079815b65f32ba5156d46d4..54d7460d9abaee481f0a13e3e32cfc62deeb4417 100644
--- a/chrome/browser/ui/omnibox/omnibox_view.h
+++ b/chrome/browser/ui/omnibox/omnibox_view.h
@@ -235,6 +235,10 @@ class OmniboxView {
// input text.
static string16 StripJavascriptSchemas(const string16& text);
+ // Returns a string after stripping out any leading javascript schemas and
+ // collapsing whitespace from the input text.
Peter Kasting 2013/08/06 21:55:13 This needs to say more about what's happening. Ba
jfweitz 2013/08/09 02:37:41 Done.
+ static string16 SanitizeTextForPaste(const string16& text);
+
// Returns the current clipboard contents as a string that can be pasted in.
// In addition to just getting CF_UNICODETEXT out, this can also extract URLs
// from bookmarks on the clipboard.

Powered by Google App Engine
This is Rietveld 408576698