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

Unified Diff: chrome/browser/autocomplete/autocomplete_edit.h

Issue 8702002: Strip invalid characters (line breaks, tabs), javascript:schemes from the copied text while pasti... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 1 month 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 | « base/utf_string_conversion_utils.h ('k') | chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_edit.h
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit.h (revision 110898)
+++ chrome/browser/autocomplete/autocomplete_edit.h (working copy)
@@ -291,6 +291,9 @@
// Called when the user pastes in text.
void on_paste() { paste_state_ = PASTING; }
+ // Returns true if pasting is in progress.
+ bool is_pasting() const { return paste_state_ == PASTING; }
+
// Called when the user presses up or down. |count| is a repeat count,
// negative for moving up, positive for moving down.
void OnUpOrDownKeyPressed(int count);
« no previous file with comments | « base/utf_string_conversion_utils.h ('k') | chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698