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

Side by Side Diff: views/controls/textfield/native_textfield_gtk.h

Issue 5254011: Forward unhandled KeyEvents to WidgetGtk's HandleKeyboardEvent() in native textfields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/views
Patch Set: Fix nits Created 10 years 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ 5 #ifndef VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ 6 #define VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 private: 57 private:
58 Textfield* textfield_; 58 Textfield* textfield_;
59 59
60 // Callback when the entry text changes. 60 // Callback when the entry text changes.
61 static gboolean OnKeyPressEventHandler( 61 static gboolean OnKeyPressEventHandler(
62 GtkWidget* entry, 62 GtkWidget* entry,
63 GdkEventKey* event, 63 GdkEventKey* event,
64 NativeTextfieldGtk* textfield); 64 NativeTextfieldGtk* textfield);
65 gboolean OnKeyPressEvent(GdkEventKey* event); 65 gboolean OnKeyPressEvent(GdkEventKey* event);
66 static gboolean OnActivateHandler(
67 GtkWidget* entry,
68 NativeTextfieldGtk* textfield);
69 gboolean OnActivate();
66 static gboolean OnChangedHandler( 70 static gboolean OnChangedHandler(
67 GtkWidget* entry, 71 GtkWidget* entry,
68 NativeTextfieldGtk* textfield); 72 NativeTextfieldGtk* textfield);
69 gboolean OnChanged(); 73 gboolean OnChanged();
70 74
71 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk); 75 DISALLOW_COPY_AND_ASSIGN(NativeTextfieldGtk);
72 }; 76 };
73 77
74 } // namespace views 78 } // namespace views
75 79
76 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_ 80 #endif // VIEWS_CONTROLS_TEXTFIELD_NATIVE_TEXTFIELD_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | views/controls/textfield/native_textfield_gtk.cc » ('j') | views/controls/textfield/native_textfield_gtk.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698