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

Issue 223483002: base: Do not allow MessagePumpObservers to consume events. (Closed)

Created:
6 years, 8 months ago by sadrul
Modified:
6 years, 8 months ago
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, jam, dcheng, darin-cc_chromium.org, oshima+watch_chromium.org, kalyank, ben+aura_chromium.org, erikwright+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

base: Do not allow MessagePumpObservers to consume events. There is currently a single message-pump observer that can consume an event, and it does so only when the num-lock key is pressed on Chrome OS. But it doesn't need to consume the event, because no other dispatcher/observer cares about this event. So remove a MessagePumpObserver's ability to consume an event. This makes the code cleaner, and easier to understand. BUG=354062 R=darin@chromium.org, derat@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262019

Patch Set 1 #

Total comments: 2

Patch Set 2 : tot-merge-r262009 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -110 lines) Patch
M base/message_loop/message_pump_observer.h View 2 chunks +4 lines, -16 lines 0 comments Download
M base/message_loop/message_pump_x11.h View 1 1 chunk +2 lines, -4 lines 0 comments Download
M base/message_loop/message_pump_x11.cc View 1 1 chunk +2 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/device_uma.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/device_uma.cc View 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/events/event_rewriter.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/events/event_rewriter.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/events/system_key_event_listener.h View 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/events/system_key_event_listener.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/events/xinput_hierarchy_changed_event_listener.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/events/xinput_hierarchy_changed_event_listener.cc View 1 chunk +1 line, -5 lines 0 comments Download
M chrome/browser/jankometer_win.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/notifications/balloon_collection_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/notifications/balloon_collection_views.cc View 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller.cc View 1 chunk +1 line, -4 lines 0 comments Download
M ui/aura/device_list_updater_aurax11.h View 1 chunk +2 lines, -4 lines 0 comments Download
M ui/aura/device_list_updater_aurax11.cc View 2 chunks +1 line, -3 lines 0 comments Download
M ui/aura/test/ui_controls_factory_aurax11.cc View 1 chunk +1 line, -3 lines 0 comments Download
M ui/aura/window_tree_host_x11.cc View 1 2 chunks +1 line, -3 lines 0 comments Download
M ui/base/clipboard/clipboard_aurax11.cc View 1 3 chunks +2 lines, -5 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.cc View 1 3 chunks +2 lines, -6 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.cc View 1 1 chunk +3 lines, -5 lines 0 comments Download
M ui/gl/gl_surface_glx.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M ui/views/test/ui_controls_factory_desktop_aurax11.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
sadrul
derat@ for chrome/browser/chromeos/ changes darin@ for base/ sky@ for the rest
6 years, 8 months ago (2014-04-03 08:22:53 UTC) #1
Daniel Erat
lgtm for c/b/chromeos
6 years, 8 months ago (2014-04-03 14:11:59 UTC) #2
sky
LGTM https://codereview.chromium.org/223483002/diff/1/base/message_loop/message_pump_x11.cc File base/message_loop/message_pump_x11.cc (right): https://codereview.chromium.org/223483002/diff/1/base/message_loop/message_pump_x11.cc#newcode270 base/message_loop/message_pump_x11.cc:270: FOR_EACH_OBSERVER(MessagePumpObserver, observers(), WillProcessEvent(xevent)); I would just inline this ...
6 years, 8 months ago (2014-04-03 15:43:21 UTC) #3
sadrul
https://codereview.chromium.org/223483002/diff/1/base/message_loop/message_pump_x11.cc File base/message_loop/message_pump_x11.cc (right): https://codereview.chromium.org/223483002/diff/1/base/message_loop/message_pump_x11.cc#newcode270 base/message_loop/message_pump_x11.cc:270: FOR_EACH_OBSERVER(MessagePumpObserver, observers(), WillProcessEvent(xevent)); On 2014/04/03 15:43:21, sky wrote: > ...
6 years, 8 months ago (2014-04-03 16:22:49 UTC) #4
sky
Ok, fair enough. On Thu, Apr 3, 2014 at 9:22 AM, <sadrul@chromium.org> wrote: > > ...
6 years, 8 months ago (2014-04-03 18:24:35 UTC) #5
darin (slow to review)
LGTM
6 years, 8 months ago (2014-04-05 05:39:44 UTC) #6
sadrul
6 years, 8 months ago (2014-04-05 17:38:09 UTC) #7
Message was sent while issue was closed.
Committed patchset #2 manually as r262019 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698