Index: chrome/browser/ui/ash/chrome_keyboard_ui.cc |
diff --git a/chrome/browser/ui/ash/chrome_keyboard_ui.cc b/chrome/browser/ui/ash/chrome_keyboard_ui.cc |
index 96b5e66f0b01d2533e2269f60d62944c9b68512d..9bc61f035274910183a0e03e5a5b1ea94ccee719 100644 |
--- a/chrome/browser/ui/ash/chrome_keyboard_ui.cc |
+++ b/chrome/browser/ui/ash/chrome_keyboard_ui.cc |
@@ -105,6 +105,22 @@ class AshKeyboardControllerObserver |
router->BroadcastEvent(std::move(event)); |
} |
+ void OnKeyboardClosed() override { |
+ extensions::EventRouter* router = extensions::EventRouter::Get(context_); |
+ |
+ if (!router->HasEventListener( |
+ virtual_keyboard_private::OnKeyboardClosed::kEventName)) { |
+ return; |
+ } |
+ |
+ std::unique_ptr<extensions::Event> event(new extensions::Event( |
+ extensions::events::VIRTUAL_KEYBOARD_PRIVATE_ON_KEYBOARD_CLOSED, |
+ virtual_keyboard_private::OnKeyboardClosed::kEventName, |
+ base::WrapUnique(new base::ListValue()))); |
+ event->restrict_to_browser_context = context_; |
+ router->BroadcastEvent(std::move(event)); |
+ } |
+ |
private: |
content::BrowserContext* context_; |