| 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 29 matching lines...) Expand all Loading... |
| 40 return; | 40 return; |
| 41 } | 41 } |
| 42 | 42 |
| 43 scoped_ptr<extensions::Event> event( | 43 scoped_ptr<extensions::Event> event( |
| 44 new extensions::Event(histogram_value, event_name, std::move(args))); | 44 new extensions::Event(histogram_value, event_name, std::move(args))); |
| 45 event->restrict_to_browser_context = profile_; | 45 event->restrict_to_browser_context = profile_; |
| 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 std::string GetCurrentScreenType() override { |
| 51 return "normal"; |
| 52 } |
| 53 |
| 50 DISALLOW_COPY_AND_ASSIGN(ImeObserverNonChromeOS); | 54 DISALLOW_COPY_AND_ASSIGN(ImeObserverNonChromeOS); |
| 51 }; | 55 }; |
| 52 | 56 |
| 53 } // namespace | 57 } // namespace |
| 54 | 58 |
| 55 namespace extensions { | 59 namespace extensions { |
| 56 | 60 |
| 57 bool InputImeEventRouter::RegisterImeExtension( | 61 bool InputImeEventRouter::RegisterImeExtension( |
| 58 const std::string& extension_id, | 62 const std::string& extension_id, |
| 59 const std::vector<extensions::InputComponentInfo>& input_components) { | 63 const std::vector<extensions::InputComponentInfo>& input_components) { |
| 60 return false; | 64 return false; |
| 61 } | 65 } |
| 62 | 66 |
| 63 void InputImeEventRouter::UnregisterAllImes(const std::string& extension_id) {} | 67 void InputImeEventRouter::UnregisterAllImes(const std::string& extension_id) {} |
| 64 | 68 |
| 65 } // namespace extensions | 69 } // namespace extensions |
| OLD | NEW |