| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/ash/chrome_keyboard_ui.h" | 5 #include "chrome/browser/ui/ash/chrome_keyboard_ui.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "ash/common/shell_window_ids.h" | 9 #include "ash/common/shell_window_ids.h" |
| 10 #include "ash/root_window_controller.h" | 10 #include "ash/root_window_controller.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 event_args->Append(new_bounds.release()); | 98 event_args->Append(new_bounds.release()); |
| 99 | 99 |
| 100 std::unique_ptr<extensions::Event> event(new extensions::Event( | 100 std::unique_ptr<extensions::Event> event(new extensions::Event( |
| 101 extensions::events::VIRTUAL_KEYBOARD_PRIVATE_ON_BOUNDS_CHANGED, | 101 extensions::events::VIRTUAL_KEYBOARD_PRIVATE_ON_BOUNDS_CHANGED, |
| 102 virtual_keyboard_private::OnBoundsChanged::kEventName, | 102 virtual_keyboard_private::OnBoundsChanged::kEventName, |
| 103 std::move(event_args))); | 103 std::move(event_args))); |
| 104 event->restrict_to_browser_context = context_; | 104 event->restrict_to_browser_context = context_; |
| 105 router->BroadcastEvent(std::move(event)); | 105 router->BroadcastEvent(std::move(event)); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void OnKeyboardHidden() override {} |
| 109 |
| 108 private: | 110 private: |
| 109 content::BrowserContext* context_; | 111 content::BrowserContext* context_; |
| 110 | 112 |
| 111 DISALLOW_COPY_AND_ASSIGN(AshKeyboardControllerObserver); | 113 DISALLOW_COPY_AND_ASSIGN(AshKeyboardControllerObserver); |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 } // namespace | 116 } // namespace |
| 115 | 117 |
| 116 ChromeKeyboardUI::ChromeKeyboardUI(content::BrowserContext* context) | 118 ChromeKeyboardUI::ChromeKeyboardUI(content::BrowserContext* context) |
| 117 : keyboard::KeyboardUIContent(context) {} | 119 : keyboard::KeyboardUIContent(context) {} |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 event_args->Append(input_context.release()); | 222 event_args->Append(input_context.release()); |
| 221 | 223 |
| 222 std::unique_ptr<extensions::Event> event(new extensions::Event( | 224 std::unique_ptr<extensions::Event> event(new extensions::Event( |
| 223 extensions::events::VIRTUAL_KEYBOARD_PRIVATE_ON_TEXT_INPUT_BOX_FOCUSED, | 225 extensions::events::VIRTUAL_KEYBOARD_PRIVATE_ON_TEXT_INPUT_BOX_FOCUSED, |
| 224 virtual_keyboard_private::OnTextInputBoxFocused::kEventName, | 226 virtual_keyboard_private::OnTextInputBoxFocused::kEventName, |
| 225 std::move(event_args))); | 227 std::move(event_args))); |
| 226 event->restrict_to_browser_context = browser_context(); | 228 event->restrict_to_browser_context = browser_context(); |
| 227 router->DispatchEventToExtension(kVirtualKeyboardExtensionID, | 229 router->DispatchEventToExtension(kVirtualKeyboardExtensionID, |
| 228 std::move(event)); | 230 std::move(event)); |
| 229 } | 231 } |
| OLD | NEW |