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

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

Issue 173462: Fix control key and paste behavior in Linux omnibox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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
Index: chrome/browser/autocomplete/autocomplete_edit_view_gtk.h
===================================================================
--- chrome/browser/autocomplete/autocomplete_edit_view_gtk.h (revision 24586)
+++ chrome/browser/autocomplete/autocomplete_edit_view_gtk.h (working copy)
@@ -272,6 +272,11 @@
}
void HandleCopyClipboard();
+ static void HandlePasteClipboardThunk(GtkTextView* text_view, gpointer self) {
+ reinterpret_cast<AutocompleteEditViewGtk*>(self)->HandlePasteClipboard();
+ }
+ void HandlePasteClipboard();
+
// Actual implementation of SelectAll(), but also provides control over
// whether the PRIMARY selection is set to the selected text (in SelectAll(),
// it isn't, but we want set the selection when the user clicks in the entry).
@@ -390,6 +395,11 @@
// during sync dispatch of "move-focus" signal.
bool tab_was_pressed_;
+ // Indicates that user requested to paste clipboard.
+ // The actual paste clipboard action might be performed later if the
+ // clipboard is not empty.
+ bool paste_clipboard_requested_;
+
// If a character is inserted, store it in this variable so that it can
// be used later in "key-press-event" signal handler to determine if a Tab or
// Enter key event is handled by IME or not.
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view.h ('k') | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698