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

Unified Diff: views/event.h

Issue 5857002: no native implementation of Textfield. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « views/controls/textfield/textfield_views_model_unittest.cc ('k') | views/event_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/event.h
diff --git a/views/event.h b/views/event.h
index 1ec666d2046f790d8fb6141231c4fe801e11347e..f878e2dbd4d11de651feb09d0c82adafa70d54d4 100644
--- a/views/event.h
+++ b/views/event.h
@@ -13,6 +13,7 @@
#if defined(OS_LINUX)
typedef struct _GdkEventKey GdkEventKey;
#endif
+
#if defined(TOUCH_UI)
typedef union _XEvent XEvent;
#endif
@@ -332,7 +333,9 @@ class KeyEvent : public Event {
int repeat_count,
int message_flags);
#if defined(OS_LINUX)
- explicit KeyEvent(GdkEventKey* event);
+ explicit KeyEvent(const GdkEventKey* event);
+
+ const GdkEventKey* native_event() const { return native_event_; }
#endif
#if defined(TOUCH_UI)
@@ -366,7 +369,9 @@ class KeyEvent : public Event {
app::KeyboardCode key_code_;
int repeat_count_;
int message_flags_;
-
+#if defined(OS_LINUX)
+ const GdkEventKey* native_event_;
+#endif
DISALLOW_COPY_AND_ASSIGN(KeyEvent);
};
« no previous file with comments | « views/controls/textfield/textfield_views_model_unittest.cc ('k') | views/event_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698