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

Issue 3704005: Hijack mouse-related events for TOUCH_UI builds (Closed)

Created:
10 years, 2 months ago by wyck
Modified:
9 years, 6 months ago
Reviewers:
rjkroege, sky
CC:
chromium-reviews, ben+cc_chromium.org, sadrul
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Hijack mouse-related events for TOUCH_UI builds With this change, which is specifically for TOUCH_UI builds, mouse-related messages are hijacked from the normal Gdk event dispatcher and processed manually in the file touchui/touch_event_dispatcher_gtk.cc. GdkEvents are converted directly to views events, and dispatched to the RootView. This is preliminary work that will be followed by more elaborate message pump changes, and ultimately is in the spirit of removing Gtk entirely for TOUCH_UI (Chromium-Views-Gtk). Patch from Chad Faragher <wyck@chromium.org>; BUG=none TEST=none

Patch Set 1 #

Patch Set 2 : touched up a few comments before initial review #

Total comments: 1

Patch Set 3 : removed extraneous newline #

Total comments: 25

Patch Set 4 : addressing most of sky's review issues #

Patch Set 5 : accelerator_handler_touch and associated gyp changes #

Total comments: 14

Patch Set 6 : moved touchui namespace to views namespace. formatting fixes. NOTREACHED added #

Total comments: 14

Patch Set 7 : Refactoring to accomodate both Gtk and X11 easily #

Unified diffs Side-by-side diffs Delta from patch set Stats (+307 lines, -7 lines) Patch
A views/focus/accelerator_handler_touch.cc View 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A views/touchui/touch_event_dispatcher_gtk.h View 1 chunk +18 lines, -0 lines 0 comments Download
A views/touchui/touch_event_dispatcher_gtk.cc View 1 chunk +243 lines, -0 lines 0 comments Download
M views/views.gyp View 1 2 3 4 5 6 4 chunks +8 lines, -1 line 0 comments Download
M views/widget/widget_gtk.h View 2 chunks +3 lines, -3 lines 0 comments Download
M views/widget/widget_gtk.cc View 1 2 4 5 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
wyck
http://codereview.chromium.org/3704005/diff/2001/3005 File views/widget/widget_gtk.h (right): http://codereview.chromium.org/3704005/diff/2001/3005#newcode212 views/widget/widget_gtk.h:212: static int GetFlagsForEventButton(const GdkEventButton& event); GetFlagsForEventButton is called externally ...
10 years, 2 months ago (2010-10-12 20:45:54 UTC) #1
sky
http://codereview.chromium.org/3704005/diff/5001/6001 File views/focus/accelerator_handler_gtk.cc (right): http://codereview.chromium.org/3704005/diff/5001/6001#newcode13 views/focus/accelerator_handler_gtk.cc:13: namespace touchui { It's time. Leave this class as ...
10 years, 2 months ago (2010-10-12 21:52:20 UTC) #2
wyck
http://codereview.chromium.org/3704005/diff/5001/6001 File views/focus/accelerator_handler_gtk.cc (right): http://codereview.chromium.org/3704005/diff/5001/6001#newcode13 views/focus/accelerator_handler_gtk.cc:13: namespace touchui { On 2010/10/12 21:52:20, sky wrote: > ...
10 years, 2 months ago (2010-10-14 14:24:28 UTC) #3
sky
http://codereview.chromium.org/3704005/diff/5001/6001 File views/focus/accelerator_handler_gtk.cc (right): http://codereview.chromium.org/3704005/diff/5001/6001#newcode13 views/focus/accelerator_handler_gtk.cc:13: namespace touchui { On 2010/10/14 14:24:29, wyck wrote: > ...
10 years, 2 months ago (2010-10-14 16:22:56 UTC) #4
wyck
How do things look now? Is the namespace still a problem? On 2010/10/14 16:22:56, sky ...
10 years, 2 months ago (2010-10-18 15:14:07 UTC) #5
sky
Don't forget to send mail when you update a patch. -Scott http://codereview.chromium.org/3704005/diff/15001/16001 File views/focus/accelerator_handler_touch.cc (right): ...
10 years, 2 months ago (2010-10-18 15:56:24 UTC) #6
wyck
Things are in the 'views' namespace rather than the 'touchui' namespace now. http://codereview.chromium.org/3704005/diff/15001/16001 File views/focus/accelerator_handler_touch.cc ...
10 years, 2 months ago (2010-10-18 17:42:41 UTC) #7
rjkroege
http://codereview.chromium.org/3704005/diff/24001/25002 File views/touchui/touchui.cc (right): http://codereview.chromium.org/3704005/diff/24001/25002#newcode120 views/touchui/touchui.cc:120: static void DispatchEventToRootView(GdkEvent* event, RootView* root_view) { This method ...
10 years, 2 months ago (2010-10-18 18:03:37 UTC) #8
wyck
Responding to Rob's comments about Sadrul's work. http://codereview.chromium.org/3704005/diff/24001/25002 File views/touchui/touchui.cc (right): http://codereview.chromium.org/3704005/diff/24001/25002#newcode120 views/touchui/touchui.cc:120: static void ...
10 years, 2 months ago (2010-10-18 18:58:17 UTC) #9
wyck
PTAL
10 years, 2 months ago (2010-10-19 13:25:05 UTC) #10
rjkroege
On 2010/10/18 18:58:17, wyck wrote: > Responding to Rob's comments about Sadrul's work. > > ...
10 years, 2 months ago (2010-10-19 13:38:26 UTC) #11
wyck
Since all these functions are specific to GdkEvents, and we are planning on also writing ...
10 years, 2 months ago (2010-10-19 14:14:26 UTC) #12
sky
http://codereview.chromium.org/3704005/diff/24001/25001 File views/focus/accelerator_handler_touch.cc (right): http://codereview.chromium.org/3704005/diff/24001/25001#newcode14 views/focus/accelerator_handler_touch.cc:14: void DispatchEventForTouchUI(GdkEvent* event); You said you were going to ...
10 years, 2 months ago (2010-10-19 15:36:48 UTC) #13
wyck
Clarification needed, please. http://codereview.chromium.org/3704005/diff/24001/25001 File views/focus/accelerator_handler_touch.cc (right): http://codereview.chromium.org/3704005/diff/24001/25001#newcode24 views/focus/accelerator_handler_touch.cc:24: // as well as native_menu_gtk. :( ...
10 years, 2 months ago (2010-10-19 16:44:59 UTC) #14
sky
On Tue, Oct 19, 2010 at 9:45 AM, <wyck@chromium.org> wrote: > Clarification needed, please. > ...
10 years, 2 months ago (2010-10-19 16:59:33 UTC) #15
wyck
I also made a few extra changes. I fixed some out-of-order files in views.gyp (from ...
10 years, 2 months ago (2010-10-19 19:50:29 UTC) #16
sky
LGTM
10 years, 2 months ago (2010-10-19 20:05:50 UTC) #17
rjkroege
10 years, 2 months ago (2010-10-20 15:08:02 UTC) #18
LGTM

Powered by Google App Engine
This is Rietveld 408576698