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

Issue 724973003: Get event targetting working for mouse events. (Closed)

Created:
6 years, 1 month ago by Elliot Glaysher
Modified:
6 years, 1 month ago
Reviewers:
sky
CC:
mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Project:
mojo
Visibility:
Public.

Description

Get event targetting working for mouse events. In 28b50b9614, I committed a patch which broke input handling as I removed window_manager's aura dependency. This has been fixed for mouse events, and the wm_flow demo now switches windows on clicks. Key input is still broken here; that will be handled in another followup. BUG=431047 R=sky@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/c89cc3b5229ffebab3050389d6be7b234097cafa

Patch Set 1 #

Patch Set 2 : Patch beautification. #

Total comments: 10

Patch Set 3 : sky comments #

Total comments: 5

Patch Set 4 : Move on top of the recently committed local view property stuff. #

Total comments: 16

Patch Set 5 : More comments, de-const a bunch of stuff in ui/. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+490 lines, -111 lines) Patch
M examples/window_manager/window_manager.cc View 1 chunk +1 line, -2 lines 0 comments Download
M mojo/services/window_manager/BUILD.gn View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M mojo/services/window_manager/focus_controller.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M mojo/services/window_manager/view_event_dispatcher.h View 1 chunk +3 lines, -2 lines 0 comments Download
M mojo/services/window_manager/view_event_dispatcher.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M mojo/services/window_manager/view_target.h View 1 2 3 4 2 chunks +44 lines, -11 lines 0 comments Download
M mojo/services/window_manager/view_target.cc View 1 2 3 4 4 chunks +100 lines, -26 lines 0 comments Download
A mojo/services/window_manager/view_target_unittest.cc View 1 2 1 chunk +63 lines, -0 lines 0 comments Download
M mojo/services/window_manager/view_targeter.h View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M mojo/services/window_manager/view_targeter.cc View 1 2 3 4 1 chunk +63 lines, -0 lines 0 comments Download
A mojo/services/window_manager/view_targeter_unittest.cc View 1 2 3 4 1 chunk +62 lines, -0 lines 0 comments Download
M mojo/services/window_manager/window_manager_app.h View 1 2 3 4 5 chunks +3 lines, -9 lines 0 comments Download
M mojo/services/window_manager/window_manager_app.cc View 1 2 3 4 7 chunks +18 lines, -42 lines 0 comments Download
A mojo/services/window_manager/window_manager_test_util.h View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A mojo/services/window_manager/window_manager_test_util.cc View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M ui/aura/env.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/env.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/window.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/window.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/event_dispatcher_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/event_target.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/event_target_iterator.h View 1 2 3 4 2 chunks +28 lines, -3 lines 0 comments Download
M ui/events/test/test_event_target.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/events/test/test_event_target.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/views/view.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ui/views/view.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (1 generated)
Elliot Glaysher
This implements enough event targeting to get the wm_flow demo working correctly.
6 years, 1 month ago (2014-11-13 23:28:23 UTC) #2
sky
https://codereview.chromium.org/724973003/diff/20001/mojo/services/window_manager/view_target.cc File mojo/services/window_manager/view_target.cc (right): https://codereview.chromium.org/724973003/diff/20001/mojo/services/window_manager/view_target.cc#newcode21 mojo/services/window_manager/view_target.cc:21: static base::LazyInstance<std::map<View*, ViewTarget*>> g_target_map = We may use the ...
6 years, 1 month ago (2014-11-14 01:43:57 UTC) #3
Elliot Glaysher
https://codereview.chromium.org/724973003/diff/20001/mojo/services/window_manager/view_target.cc File mojo/services/window_manager/view_target.cc (right): https://codereview.chromium.org/724973003/diff/20001/mojo/services/window_manager/view_target.cc#newcode21 mojo/services/window_manager/view_target.cc:21: static base::LazyInstance<std::map<View*, ViewTarget*>> g_target_map = On 2014/11/14 01:43:57, sky ...
6 years, 1 month ago (2014-11-14 21:04:30 UTC) #4
sky
I only looked at the view changes. In fact how about separating those out into ...
6 years, 1 month ago (2014-11-14 23:11:27 UTC) #5
Elliot Glaysher
I've now rebased on top of https://codereview.chromium.org/732223002 .
6 years, 1 month ago (2014-11-17 21:55:40 UTC) #6
sky
https://codereview.chromium.org/724973003/diff/60001/mojo/services/window_manager/view_target.cc File mojo/services/window_manager/view_target.cc (right): https://codereview.chromium.org/724973003/diff/60001/mojo/services/window_manager/view_target.cc#newcode29 mojo/services/window_manager/view_target.cc:29: view_->SetLocalProperty(kViewTargetKey, this); DCHECK GetLocalProperty(kViewTargetKey, this) == null)? https://codereview.chromium.org/724973003/diff/60001/mojo/services/window_manager/view_target.cc#newcode34 mojo/services/window_manager/view_target.cc:34: ...
6 years, 1 month ago (2014-11-17 22:39:28 UTC) #7
Elliot Glaysher
https://codereview.chromium.org/724973003/diff/60001/mojo/services/window_manager/view_target.cc File mojo/services/window_manager/view_target.cc (right): https://codereview.chromium.org/724973003/diff/60001/mojo/services/window_manager/view_target.cc#newcode79 mojo/services/window_manager/view_target.cc:79: const ViewTarget* root = nullptr; On 2014/11/17 22:39:27, sky ...
6 years, 1 month ago (2014-11-17 23:33:02 UTC) #8
sky
LGTM
6 years, 1 month ago (2014-11-18 00:29:58 UTC) #9
Elliot Glaysher
6 years, 1 month ago (2014-11-18 00:45:09 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
c89cc3b5229ffebab3050389d6be7b234097cafa (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698