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

Issue 5110011: A non-GTK version of menus for touchui. (Closed)

Created:
10 years, 1 month ago by sadrul
Modified:
9 years, 6 months ago
Reviewers:
rjkroege, sky, Evan Martin
CC:
chromium-reviews, ben+cc_chromium.org, brettw-cc_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

A non-GTK version of menus for touchui. For the menus to work correctly, the X messge pump also needs updating to allow nested event dispatching. BUG=None TEST=On a touchui build, non-GTK context menus in web-pages should work correctly. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68309

Patch Set 1 #

Total comments: 18

Patch Set 2 : Address comments from sky. #

Total comments: 4

Patch Set 3 : '' #

Total comments: 4

Patch Set 4 : Address comments from evan. #

Patch Set 5 : change dispatcher to return an enum #

Patch Set 6 : fix compile for chromeos #

Total comments: 6

Patch Set 7 : Add TODO #

Total comments: 1

Patch Set 8 : remove changes from message_pump_glib #

Patch Set 9 : fix compile for touch on chromeos #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -59 lines) Patch
M base/message_pump_glib_x.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M base/message_pump_glib_x.cc View 1 2 3 4 5 6 7 5 chunks +33 lines, -2 lines 0 comments Download
M base/message_pump_glib_x_dispatch.h View 1 2 3 4 1 chunk +12 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/views/native_menu_domui.h View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/views/native_menu_domui.cc View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/wrench_menu.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -30 lines 0 comments Download
M views/controls/menu/menu_controller.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M views/controls/menu/menu_controller.cc View 1 2 3 4 1 chunk +8 lines, -2 lines 0 comments Download
M views/controls/menu/menu_item_view.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M views/controls/menu/menu_item_view.cc View 1 2 2 chunks +38 lines, -0 lines 0 comments Download
A views/controls/menu/native_menu_x.h View 1 1 chunk +56 lines, -0 lines 0 comments Download
A views/controls/menu/native_menu_x.cc View 1 1 chunk +162 lines, -0 lines 0 comments Download
M views/controls/menu/nested_dispatcher_gtk.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M views/controls/menu/nested_dispatcher_gtk.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -2 lines 0 comments Download
M views/focus/accelerator_handler.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M views/focus/accelerator_handler_touch.cc View 1 2 3 4 5 6 7 3 chunks +9 lines, -13 lines 0 comments Download
M views/views.gyp View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
sadrul
10 years, 1 month ago (2010-11-22 06:59:00 UTC) #1
sky
http://codereview.chromium.org/5110011/diff/1/views/controls/menu/menu_controller.cc File views/controls/menu/menu_controller.cc (right): http://codereview.chromium.org/5110011/diff/1/views/controls/menu/menu_controller.cc#newcode870 views/controls/menu/menu_controller.cc:870: MessageLoopForUI::current()->QuitNow(); How come you need the QuitNow instead of ...
10 years, 1 month ago (2010-11-22 17:06:15 UTC) #2
sky
Also, can you get someone else to review the message pump changes. -Scott
10 years, 1 month ago (2010-11-22 17:08:25 UTC) #3
sadrul
I have added Rob for the message-pump change. Would you recommend an additional reviewer? http://codereview.chromium.org/5110011/diff/1/views/controls/menu/menu_controller.cc ...
10 years, 1 month ago (2010-11-22 18:48:22 UTC) #4
sky
As to reviewing the message-pump change I would ask whoever reviewed your last review to ...
10 years, 1 month ago (2010-11-22 19:23:01 UTC) #5
sadrul
Regarding the behaviour of Dispatch(XEvent*): > The docs don't indicate that. Doesn't that make for ...
10 years, 1 month ago (2010-11-22 19:42:37 UTC) #6
sky
LGTM (everything except the message_pump_glib_x.cc change)
10 years, 1 month ago (2010-11-22 20:38:09 UTC) #7
Evan Martin
http://codereview.chromium.org/5110011/diff/14001/base/message_pump_glib_x.cc File base/message_pump_glib_x.cc (right): http://codereview.chromium.org/5110011/diff/14001/base/message_pump_glib_x.cc#newcode88 base/message_pump_glib_x.cc:88: static gboolean (*gdkdispatcher)(GSource*, GSourceFunc, void*) = NULL; Is this ...
10 years, 1 month ago (2010-11-22 20:43:26 UTC) #8
sadrul
Also, do you agree with the change to have Dispatch(XEvent*) return an enum? (in a ...
10 years, 1 month ago (2010-11-22 21:23:06 UTC) #9
sadrul
I have made the change to the dispatcher. So now, the MessagePumpGlibXDispatcher::Dispatch(XEvent*) returns an enum ...
10 years, 1 month ago (2010-11-23 20:29:22 UTC) #10
sadrul
On 2010/11/23 20:29:22, sadrul wrote: [snip] > (also, sent to trybots) The failure on chromeos ...
10 years, 1 month ago (2010-11-23 21:58:40 UTC) #11
rjkroege
http://codereview.chromium.org/5110011/diff/37001/base/message_pump_glib.h File base/message_pump_glib.h (right): http://codereview.chromium.org/5110011/diff/37001/base/message_pump_glib.h#newcode97 base/message_pump_glib.h:97: struct RunState { why did you have to move ...
10 years, 1 month ago (2010-11-23 23:38:54 UTC) #12
sadrul
http://codereview.chromium.org/5110011/diff/37001/base/message_pump_glib.h File base/message_pump_glib.h (right): http://codereview.chromium.org/5110011/diff/37001/base/message_pump_glib.h#newcode97 base/message_pump_glib.h:97: struct RunState { On 2010/11/23 23:38:54, rjkroege wrote: > ...
10 years, 1 month ago (2010-11-24 00:55:21 UTC) #13
rjkroege
On 2010/11/24 00:55:21, sadrul wrote: > http://codereview.chromium.org/5110011/diff/37001/base/message_pump_glib.h > File base/message_pump_glib.h (right): > > http://codereview.chromium.org/5110011/diff/37001/base/message_pump_glib.h#newcode97 > ...
10 years, 1 month ago (2010-11-24 16:59:12 UTC) #14
sadrul
[snip] > This means that the menus cannot receive touch events correct? If this is ...
10 years, 1 month ago (2010-11-24 17:35:49 UTC) #15
sadrul
http://codereview.chromium.org/5110011/diff/38020/base/message_pump_glib_x.cc File base/message_pump_glib_x.cc (right): http://codereview.chromium.org/5110011/diff/38020/base/message_pump_glib_x.cc#newcode112 base/message_pump_glib_x.cc:112: state_->should_quit = true; Instead of setting |should_quit| here, we ...
10 years ago (2010-11-29 15:56:56 UTC) #16
rjkroege
On 2010/11/29 15:56:56, sadrul wrote: > http://codereview.chromium.org/5110011/diff/38020/base/message_pump_glib_x.cc > File base/message_pump_glib_x.cc (right): > > http://codereview.chromium.org/5110011/diff/38020/base/message_pump_glib_x.cc#newcode112 > ...
10 years ago (2010-11-29 16:50:12 UTC) #17
rjkroege
10 years ago (2010-11-29 17:09:42 UTC) #18
LGTM.

Powered by Google App Engine
This is Rietveld 408576698