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

Issue 6487002: Add a new constructor to KeyEvent. (Closed)

Created:
9 years, 10 months ago by Ben Goodger (Google)
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Adds the ability to construct a KeyEvent from a NativeEvent[2], and converts some code to use it. Removes some of the Windows-specific stuff from KeyEvent. BUG=72040 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74614

Patch Set 1 : '' #

Total comments: 4

Patch Set 2 : '' #

Total comments: 1

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -175 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_win.cc View 4 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/screen_locker.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/screen_locker_tester.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_input_api.cc View 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/key_identifier_conversion_views.cc View 4 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host_gtk.cc View 1 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/dropdown_bar_host_win.cc View 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/find_bar_host_win.cc View 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M views/controls/button/custom_button.cc View 4 1 chunk +1 line, -1 line 0 comments Download
M views/controls/textfield/native_textfield_gtk.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M views/controls/textfield/native_textfield_views_unittest.cc View 4 1 chunk +1 line, -1 line 0 comments Download
M views/controls/textfield/native_textfield_win.h View 4 1 chunk +3 lines, -1 line 0 comments Download
M views/controls/textfield/native_textfield_win.cc View 4 4 chunks +9 lines, -33 lines 0 comments Download
M views/controls/textfield/textfield.cc View 4 2 chunks +2 lines, -1 line 0 comments Download
M views/events/event.h View 1 2 3 4 7 chunks +31 lines, -53 lines 0 comments Download
M views/events/event.cc View 1 2 3 4 4 chunks +35 lines, -5 lines 0 comments Download
M views/events/event_gtk.cc View 1 2 3 4 3 chunks +70 lines, -13 lines 0 comments Download
A views/events/event_utils_win.h View 4 1 chunk +33 lines, -0 lines 0 comments Download
A views/events/event_utils_win.cc View 4 1 chunk +31 lines, -0 lines 0 comments Download
M views/events/event_win.cc View 1 2 3 4 3 chunks +101 lines, -24 lines 0 comments Download
M views/events/event_x.cc View 1 2 3 4 4 chunks +41 lines, -9 lines 0 comments Download
M views/focus/accelerator_handler.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M views/focus/accelerator_handler_touch.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M views/focus/accelerator_handler_win.cc View 1 2 3 4 1 chunk +1 line, -5 lines 0 comments Download
M views/native_types.h View 1 4 1 chunk +22 lines, -3 lines 0 comments Download
M views/view_unittest.cc View 4 1 chunk +1 line, -1 line 0 comments Download
M views/views.gyp View 4 1 chunk +2 lines, -0 lines 0 comments Download
M views/widget/gtk_views_window.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M views/widget/widget_gtk.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M views/widget/widget_win.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M views/widget/widget_win.cc View 1 2 3 4 5 6 chunks +35 lines, -8 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Ben Goodger (Google)
Sending this for comment and review. sky - everything rjkroege/sadrul/backer - GDK/X bits.
9 years, 10 months ago (2011-02-10 20:27:36 UTC) #1
Ben Goodger (Google)
Note also that this doesn't quite compile yet. I am figuring on the trybots to ...
9 years, 10 months ago (2011-02-10 20:39:44 UTC) #2
sadrul-g
On Thu, Feb 10, 2011 at 3:39 PM, <ben@chromium.org> wrote: > Note also that this ...
9 years, 10 months ago (2011-02-10 20:51:24 UTC) #3
Ben Goodger (Google)
We will need them at least for ChromeOS, which is still using Gtk. Once we ...
9 years, 10 months ago (2011-02-10 20:57:24 UTC) #4
sky
http://codereview.chromium.org/6487002/diff/7111/views/events/event.cc File views/events/event.cc (right): http://codereview.chromium.org/6487002/diff/7111/views/events/event.cc#newcode12 views/events/event.cc:12: : type_(type), Initialize native_event_ and native_event_2_ here and in ...
9 years, 10 months ago (2011-02-10 20:59:35 UTC) #5
rjkroege
I've added Bryan who knows the keyboard event injection code. http://codereview.chromium.org/6487002/diff/7111/views/events/event.h File views/events/event.h (right): http://codereview.chromium.org/6487002/diff/7111/views/events/event.h#newcode97 ...
9 years, 10 months ago (2011-02-10 21:15:26 UTC) #6
Ben Goodger (Google)
http://codereview.chromium.org/6487002/diff/7111/views/events/event.h File views/events/event.h (right): http://codereview.chromium.org/6487002/diff/7111/views/events/event.h#newcode97 views/events/event.h:97: // of woe. I rewrote the comment in native_types.h ...
9 years, 10 months ago (2011-02-10 21:22:37 UTC) #7
Ben Goodger (Google)
OK as of this latest version this change now builds on every platform covered by ...
9 years, 10 months ago (2011-02-10 21:30:47 UTC) #8
sky
LGTM
9 years, 10 months ago (2011-02-10 21:50:31 UTC) #9
sadrul
I also needed the following changes: diff --git a/views/widget/gtk_views_window.cc b/views/widget/gtk_views_window.cc index b94c2cd..7da1490 100644 --- a/views/widget/gtk_views_window.cc ...
9 years, 10 months ago (2011-02-10 21:52:01 UTC) #10
bryeung
LGTM (wrt the keyboard event injection code)
9 years, 10 months ago (2011-02-11 02:38:16 UTC) #11
sadrul
http://codereview.chromium.org/6487002/diff/1095/views/events/event_gtk.cc File views/events/event_gtk.cc (right): http://codereview.chromium.org/6487002/diff/1095/views/events/event_gtk.cc#newcode63 views/events/event_gtk.cc:63: void Event::Init() { Event::Init and Event::InitWithNativeEvent are also in ...
9 years, 10 months ago (2011-02-11 16:12:47 UTC) #12
sky
9 years, 10 months ago (2011-02-11 16:42:41 UTC) #13
LGTM

Powered by Google App Engine
This is Rietveld 408576698