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

Issue 1488713002: mus: Introduce AcceleratorRegistrar and AcceleratorHandler. (Closed)

Created:
5 years ago by sadrul
Modified:
5 years ago
CC:
chromium-reviews, rjkroege, sadrul, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, kalyank, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mus: Introduce AcceleratorRegistrar and AcceleratorHandler. . An app can request an AcceleratorRegistrar from the window manager, and install some accelerators. The app must install an AcceleratorHandler to process these accelerators. . The AcceleratorRegistrar implementation in the window manager makes sure that the accelerator ids from different apps do not conflict with each other. . When an AcceleratorHandler is disconnected, the accelerators its supposed to handle are automatically unregistered from mus. BUG=548363 Committed: https://crrev.com/669040467ae91e1bc48cd24ae6afd64860e8d47a Cr-Commit-Position: refs/heads/master@{#362915}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 2

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 4

Patch Set 6 : . #

Patch Set 7 : . #

Total comments: 4

Patch Set 8 : . #

Total comments: 2

Patch Set 9 : tot.merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -3 lines) Patch
M components/mus/public/interfaces/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A components/mus/public/interfaces/accelerator_registrar.mojom View 1 2 3 4 5 1 chunk +22 lines, -0 lines 0 comments Download
M mash/wm/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
A mash/wm/accelerator_registrar_impl.h View 1 2 3 4 5 1 chunk +69 lines, -0 lines 0 comments Download
A mash/wm/accelerator_registrar_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +110 lines, -0 lines 0 comments Download
M mash/wm/window_manager_application.h View 1 2 3 4 5 6 7 8 6 chunks +14 lines, -1 line 0 comments Download
M mash/wm/window_manager_application.cc View 1 2 3 4 5 6 7 8 5 chunks +32 lines, -2 lines 0 comments Download

Messages

Total messages: 24 (9 generated)
sadrul
This introduces AcceleratorRegistrar and AcceleratorHandler inside mus. However, mus itself doesn't do anything with these. ...
5 years ago (2015-12-01 00:12:21 UTC) #3
sadrul
Updated the CL description to briefly explain how this works.
5 years ago (2015-12-01 00:29:52 UTC) #5
Ben Goodger (Google)
https://codereview.chromium.org/1488713002/diff/40001/components/mus/public/interfaces/accelerator_registrar.mojom File components/mus/public/interfaces/accelerator_registrar.mojom (right): https://codereview.chromium.org/1488713002/diff/40001/components/mus/public/interfaces/accelerator_registrar.mojom#newcode14 components/mus/public/interfaces/accelerator_registrar.mojom:14: interface AcceleratorRegistrar { While it's clever to control the ...
5 years ago (2015-12-01 03:47:33 UTC) #6
sadrul
https://codereview.chromium.org/1488713002/diff/40001/components/mus/public/interfaces/accelerator_registrar.mojom File components/mus/public/interfaces/accelerator_registrar.mojom (right): https://codereview.chromium.org/1488713002/diff/40001/components/mus/public/interfaces/accelerator_registrar.mojom#newcode14 components/mus/public/interfaces/accelerator_registrar.mojom:14: interface AcceleratorRegistrar { On 2015/12/01 03:47:32, Ben Goodger (Google) ...
5 years ago (2015-12-01 15:17:24 UTC) #8
Ben Goodger (Google)
https://codereview.chromium.org/1488713002/diff/80001/mash/wm/accelerator_registrar_impl.cc File mash/wm/accelerator_registrar_impl.cc (right): https://codereview.chromium.org/1488713002/diff/80001/mash/wm/accelerator_registrar_impl.cc#newcode53 mash/wm/accelerator_registrar_impl.cc:53: binding_.Unbind(); is this necessary? https://codereview.chromium.org/1488713002/diff/80001/mash/wm/accelerator_registrar_impl.cc#newcode67 mash/wm/accelerator_registrar_impl.cc:67: mus::mojom::AcceleratorHandlerPtr handler, just ...
5 years ago (2015-12-01 16:01:46 UTC) #9
sadrul
https://codereview.chromium.org/1488713002/diff/80001/mash/wm/accelerator_registrar_impl.cc File mash/wm/accelerator_registrar_impl.cc (right): https://codereview.chromium.org/1488713002/diff/80001/mash/wm/accelerator_registrar_impl.cc#newcode53 mash/wm/accelerator_registrar_impl.cc:53: binding_.Unbind(); On 2015/12/01 16:01:45, Ben Goodger (Google) wrote: > ...
5 years ago (2015-12-01 19:18:05 UTC) #10
Ben Goodger (Google)
lgtm https://codereview.chromium.org/1488713002/diff/120001/mash/wm/accelerator_registrar_impl.cc File mash/wm/accelerator_registrar_impl.cc (right): https://codereview.chromium.org/1488713002/diff/120001/mash/wm/accelerator_registrar_impl.cc#newcode64 mash/wm/accelerator_registrar_impl.cc:64: // handler and install new accelerators). On 2015/12/01 ...
5 years ago (2015-12-01 19:25:05 UTC) #12
Ben Goodger (Google)
On 2015/12/01 19:25:05, Ben Goodger (Google) wrote: > lgtm > > https://codereview.chromium.org/1488713002/diff/120001/mash/wm/accelerator_registrar_impl.cc > File mash/wm/accelerator_registrar_impl.cc ...
5 years ago (2015-12-01 20:32:59 UTC) #13
sadrul
https://codereview.chromium.org/1488713002/diff/120001/mash/wm/window_manager_application.cc File mash/wm/window_manager_application.cc (right): https://codereview.chromium.org/1488713002/diff/120001/mash/wm/window_manager_application.cc#newcode135 mash/wm/window_manager_application.cc:135: window_tree_host_.get(), ++accelerator_registrar_count, request.Pass(), On 2015/12/01 19:25:04, Ben Goodger (Google) ...
5 years ago (2015-12-02 00:57:42 UTC) #14
Ben Goodger (Google)
https://codereview.chromium.org/1488713002/diff/140001/mash/wm/window_manager_application.cc File mash/wm/window_manager_application.cc (right): https://codereview.chromium.org/1488713002/diff/140001/mash/wm/window_manager_application.cc#newcode139 mash/wm/window_manager_application.cc:139: // install accelerators. how is this enforced? you don't ...
5 years ago (2015-12-02 00:59:45 UTC) #15
sadrul
https://codereview.chromium.org/1488713002/diff/140001/mash/wm/window_manager_application.cc File mash/wm/window_manager_application.cc (right): https://codereview.chromium.org/1488713002/diff/140001/mash/wm/window_manager_application.cc#newcode139 mash/wm/window_manager_application.cc:139: // install accelerators. On 2015/12/02 00:59:45, Ben Goodger (Google) ...
5 years ago (2015-12-02 19:14:26 UTC) #16
Ben Goodger (Google)
On 2015/12/02 19:14:26, sadrul wrote: > https://codereview.chromium.org/1488713002/diff/140001/mash/wm/window_manager_application.cc > File mash/wm/window_manager_application.cc (right): > > https://codereview.chromium.org/1488713002/diff/140001/mash/wm/window_manager_application.cc#newcode139 > ...
5 years ago (2015-12-02 20:07:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1488713002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1488713002/160001
5 years ago (2015-12-03 04:50:11 UTC) #20
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years ago (2015-12-03 05:25:11 UTC) #22
commit-bot: I haz the power
5 years ago (2015-12-03 05:25:50 UTC) #24
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/669040467ae91e1bc48cd24ae6afd64860e8d47a
Cr-Commit-Position: refs/heads/master@{#362915}

Powered by Google App Engine
This is Rietveld 408576698