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

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

Issue 164142: Improve key event handling of AutocompleteEditViewGtk.... (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 22995)
+++ chrome/browser/autocomplete/autocomplete_edit_view_gtk.h (working copy)
@@ -7,6 +7,8 @@
#include <gtk/gtk.h>
+#include <string>
+
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/string_util.h"
@@ -251,6 +253,24 @@
GtkSelectionData* selection_data,
guint target_type, guint time);
+ static void HandleInsertTextThunk(GtkTextBuffer* buffer,
+ GtkTextIter* location,
+ const gchar* text,
+ gint len,
+ gpointer self) {
+ reinterpret_cast<AutocompleteEditViewGtk*>(self)->
+ HandleInsertText(buffer, location, text, len);
+ }
+ void HandleInsertText(GtkTextBuffer* buffer,
+ GtkTextIter* location,
+ const gchar* text,
+ gint len);
+
+ static void HandleBackSpaceThunk(GtkTextView* text_view, gpointer self) {
+ reinterpret_cast<AutocompleteEditViewGtk*>(self)->HandleBackSpace();
+ }
+ void HandleBackSpace();
+
// 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).

Powered by Google App Engine
This is Rietveld 408576698