| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This file is for non-chromeos (win & linux) functions, such as | 5 // This file is for non-chromeos (win & linux) functions, such as |
| 6 // chrome.input.ime.activate, chrome.input.ime.createWindow and | 6 // chrome.input.ime.activate, chrome.input.ime.createWindow and |
| 7 // chrome.input.ime.onSelectionChanged. | 7 // chrome.input.ime.onSelectionChanged. |
| 8 // TODO(azurewei): May refactor the code structure by using delegate or | 8 // TODO(azurewei): May refactor the code structure by using delegate or |
| 9 // redesign the API to remove this platform-specific file in the future. | 9 // redesign the API to remove this platform-specific file in the future. |
| 10 | 10 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 extensions::EventRouter::Get(profile_) | 46 extensions::EventRouter::Get(profile_) |
| 47 ->DispatchEventToExtension(extension_id_, std::move(event)); | 47 ->DispatchEventToExtension(extension_id_, std::move(event)); |
| 48 } | 48 } |
| 49 | 49 |
| 50 DISALLOW_COPY_AND_ASSIGN(ImeObserverNonChromeOS); | 50 DISALLOW_COPY_AND_ASSIGN(ImeObserverNonChromeOS); |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 } // namespace | 53 } // namespace |
| 54 | 54 |
| 55 namespace extensions { | 55 namespace extensions { |
| 56 void InputImeAPI::OnExtensionLoaded(content::BrowserContext* browser_context, |
| 57 const Extension* extension) {} |
| 56 | 58 |
| 57 bool InputImeEventRouter::RegisterImeExtension( | 59 void InputImeAPI::OnExtensionUnloaded(content::BrowserContext* browser_context, |
| 58 const std::string& extension_id, | 60 const Extension* extension, |
| 59 const std::vector<extensions::InputComponentInfo>& input_components) { | 61 UnloadedExtensionInfo::Reason reason) {} |
| 60 return false; | |
| 61 } | |
| 62 | 62 |
| 63 void InputImeEventRouter::UnregisterAllImes(const std::string& extension_id) {} | 63 void InputImeAPI::OnListenerAdded(const EventListenerInfo& details) {} |
| 64 | 64 |
| 65 } // namespace extensions | 65 } // namespace extensions |
| OLD | NEW |