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

Issue 698543005: Make a pure mojo::View version of the aura::Window FocusController. (Closed)

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

Description

Remove aura and make a pure mojo::View version of the aura::Window FocusController. This patch is only half done, however the main driver (removing aura) is needed by other teams for them to make progress. Input handling is regressed in this patch; while FocusController is rebuilt to the point where it should theoretically work, all of the details about ui::EventTargeter don't work correctly. There is an empty subclass ViewTargeter which will need to be filled out before Thankfully, this should only regress people who are using the wm_flow demo, and this should unblock the android guys who don't have aura support on their platform. BUG=431047 R=eseidel@chromium.org, sky@chromium.org Committed: https://chromium.googlesource.com/external/mojo/+/bb29e4293b6e60ee721b5be17f9fa9f4989a1981

Patch Set 1 #

Patch Set 2 : checkpoint #

Patch Set 3 : Clean things up quickly for commit. #

Total comments: 4

Patch Set 4 : Restore things lost from a deleted use_aura block in BUILD.gn files. #

Total comments: 17

Patch Set 5 : Rebase to ToT #

Patch Set 6 : sky comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1165 lines, -471 lines) Patch
M examples/window_manager/window_manager.cc View 1 2 3 4 5 5 chunks +14 lines, -67 lines 0 comments Download
M examples/wm_flow/wm/frame_controller.h View 3 chunks +1 line, -8 lines 0 comments Download
M examples/wm_flow/wm/frame_controller.cc View 3 chunks +1 line, -4 lines 0 comments Download
M examples/wm_flow/wm/wm.cc View 1 2 3 4 5 3 chunks +5 lines, -70 lines 0 comments Download
M mojo/services/public/cpp/view_manager/BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/services/public/cpp/view_manager/lib/view.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A mojo/services/public/cpp/view_manager/view_tracker.h View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A mojo/services/public/cpp/view_manager/view_tracker.cc View 1 chunk +41 lines, -0 lines 0 comments Download
M mojo/services/window_manager/BUILD.gn View 1 2 5 chunks +12 lines, -9 lines 0 comments Download
A mojo/services/window_manager/basic_focus_rules.h View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A mojo/services/window_manager/basic_focus_rules.cc View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
A mojo/services/window_manager/focus_controller.h View 1 2 3 4 5 1 chunk +100 lines, -0 lines 0 comments Download
A mojo/services/window_manager/focus_controller.cc View 1 2 3 4 5 1 chunk +303 lines, -0 lines 0 comments Download
A mojo/services/window_manager/focus_controller_observer.h View 1 2 3 4 5 1 chunk +36 lines, -0 lines 0 comments Download
A mojo/services/window_manager/focus_rules.h View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
M mojo/services/window_manager/native_viewport_event_dispatcher_impl.h View 1 2 1 chunk +6 lines, -1 line 0 comments Download
M mojo/services/window_manager/native_viewport_event_dispatcher_impl.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download
A mojo/services/window_manager/view_event_dispatcher.h View 1 2 1 chunk +46 lines, -0 lines 0 comments Download
A mojo/services/window_manager/view_event_dispatcher.cc View 1 2 3 4 5 1 chunk +57 lines, -0 lines 0 comments Download
A mojo/services/window_manager/view_target.h View 1 2 3 4 5 1 chunk +64 lines, -0 lines 0 comments Download
A mojo/services/window_manager/view_target.cc View 1 2 1 chunk +93 lines, -0 lines 0 comments Download
A mojo/services/window_manager/view_targeter.h View 1 2 3 1 chunk +23 lines, -0 lines 0 comments Download
A + mojo/services/window_manager/view_targeter.cc View 1 2 1 chunk +4 lines, -3 lines 0 comments Download
M mojo/services/window_manager/window_manager_app.h View 1 2 3 4 5 8 chunks +38 lines, -56 lines 0 comments Download
M mojo/services/window_manager/window_manager_app.cc View 1 2 3 4 5 12 chunks +80 lines, -139 lines 0 comments Download
M sky/BUILD.gn View 1 2 3 1 chunk +2 lines, -6 lines 0 comments Download
M sky/tools/debugger/BUILD.gn View 2 chunks +0 lines, -4 lines 0 comments Download
M sky/tools/debugger/debugger.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M sky/tools/debugger/debugger.cc View 1 2 3 4 5 2 chunks +4 lines, -2 lines 0 comments Download
D sky/tools/debugger/focus_rules.h View 1 chunk +0 lines, -39 lines 0 comments Download
D sky/tools/debugger/focus_rules.cc View 1 chunk +0 lines, -61 lines 0 comments Download

Messages

Total messages: 13 (4 generated)
Elliot Glaysher
This patch is in a weird state to be sent out for review. It does ...
6 years, 1 month ago (2014-11-06 21:29:55 UTC) #4
eseidel
sky parts lgtm once you add back the debugger/tester bits to BUILD.gn https://codereview.chromium.org/698543005/diff/40001/sky/BUILD.gn File sky/BUILD.gn ...
6 years, 1 month ago (2014-11-06 21:33:14 UTC) #5
Elliot Glaysher
https://codereview.chromium.org/698543005/diff/40001/sky/BUILD.gn File sky/BUILD.gn (left): https://codereview.chromium.org/698543005/diff/40001/sky/BUILD.gn#oldcode21 sky/BUILD.gn:21: "//sky/tools/debugger", On 2014/11/06 21:33:14, eseidel wrote: > I think ...
6 years, 1 month ago (2014-11-06 21:36:43 UTC) #6
eseidel
sky/* lgtm
6 years, 1 month ago (2014-11-06 21:43:56 UTC) #7
Elliot Glaysher
redirecting review from ben to sky. sky: For context, this patch actually regresses the wm_flow ...
6 years, 1 month ago (2014-11-10 20:16:00 UTC) #9
sky
https://codereview.chromium.org/698543005/diff/60001/mojo/services/public/cpp/view_manager/lib/view.cc File mojo/services/public/cpp/view_manager/lib/view.cc (right): https://codereview.chromium.org/698543005/diff/60001/mojo/services/public/cpp/view_manager/lib/view.cc#newcode314 mojo/services/public/cpp/view_manager/lib/view.cc:314: if (!child) Usually null means something is wrong. Seems ...
6 years, 1 month ago (2014-11-10 20:45:31 UTC) #10
Elliot Glaysher
ptal https://codereview.chromium.org/698543005/diff/60001/mojo/services/public/cpp/view_manager/lib/view.cc File mojo/services/public/cpp/view_manager/lib/view.cc (right): https://codereview.chromium.org/698543005/diff/60001/mojo/services/public/cpp/view_manager/lib/view.cc#newcode314 mojo/services/public/cpp/view_manager/lib/view.cc:314: if (!child) On 2014/11/10 20:45:30, sky wrote: > ...
6 years, 1 month ago (2014-11-10 22:18:50 UTC) #11
sky
LGTM
6 years, 1 month ago (2014-11-10 23:29:16 UTC) #12
Elliot Glaysher
6 years, 1 month ago (2014-11-10 23:42:40 UTC) #13
Message was sent while issue was closed.
Committed patchset #6 (id:100001) manually as
bb29e4293b6e60ee721b5be17f9fa9f4989a1981 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698