class FocusDispatcher

Defined at line 29 of file ../../src/ui/bin/virtual_keyboard_manager/focus_dispatcher.h

Forwards the focus change messages from fuchsia.ui.focus.FocusChainListener to

fuchsia.ui.keyboard.focus.Controller.

When constructed via `FocusDispatcher::New()`, it registers itself as a handler

for `OnFocusChange` notifications from `fuchsia.ui.focus.FocusChainListener`.

When a focus change notification comes in, the information about the most precise

view reference is forwarded on to `fuchsia.ui.keyboard.focus.Controller.Notify`,

and to `local_focus_listener`.

Public Methods

void FocusDispatcher (const std::shared_ptr<sys::ServiceDirectory> & svc, fxl::WeakPtr<FocusListener> local_focus_listener)

Makes a new `FocusDispatcher`.

* `svc` is a directory into which to serve Controller.

* `local_focus_listener` is the local object which should receive focus updates

Defined at line 24 of file ../../src/ui/bin/virtual_keyboard_manager/focus_dispatcher.cc

void OnFocusChange (fuchsia::ui::focus::FocusChain new_focus_chain, fuchsia::ui::focus::FocusChainListener::OnFocusChangeCallback callback)

Implements `fuchsia.ui.focus.FocusChainListener`.

When an `OnFocusChange` message arrives, it is sent to `keyboard.focus.Controller.Notify`.

Defined at line 46 of file ../../src/ui/bin/virtual_keyboard_manager/focus_dispatcher.cc