OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/extensions/api/input_ime/input_ime_api.h" | 5 #include "chrome/browser/extensions/api/input_ime/input_ime_api.h" |
6 | 6 |
7 #include "base/strings/string_number_conversions.h" | 7 #include "base/strings/string_number_conversions.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/chrome_notification_types.h" | 9 #include "chrome/browser/chrome_notification_types.h" |
10 #include "chrome/browser/chromeos/input_method/input_method_engine.h" | 10 #include "chrome/browser/chromeos/input_method/input_method_engine.h" |
11 #include "chrome/browser/extensions/extension_function_registry.h" | 11 #include "chrome/browser/extensions/extension_function_registry.h" |
12 #include "chrome/browser/extensions/extension_system.h" | |
13 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/common/extensions/api/input_ime.h" | 13 #include "chrome/common/extensions/api/input_ime.h" |
15 #include "chrome/common/extensions/api/input_ime/input_components_handler.h" | 14 #include "chrome/common/extensions/api/input_ime/input_components_handler.h" |
16 #include "content/public/browser/notification_details.h" | 15 #include "content/public/browser/notification_details.h" |
17 #include "content/public/browser/notification_source.h" | 16 #include "content/public/browser/notification_source.h" |
18 #include "extensions/browser/event_router.h" | 17 #include "extensions/browser/event_router.h" |
| 18 #include "extensions/browser/extension_system.h" |
19 | 19 |
20 namespace input_ime = extensions::api::input_ime; | 20 namespace input_ime = extensions::api::input_ime; |
21 namespace KeyEventHandled = extensions::api::input_ime::KeyEventHandled; | 21 namespace KeyEventHandled = extensions::api::input_ime::KeyEventHandled; |
22 namespace DeleteSurroundingText = | 22 namespace DeleteSurroundingText = |
23 extensions::api::input_ime::DeleteSurroundingText; | 23 extensions::api::input_ime::DeleteSurroundingText; |
24 namespace UpdateMenuItems = extensions::api::input_ime::UpdateMenuItems; | 24 namespace UpdateMenuItems = extensions::api::input_ime::UpdateMenuItems; |
25 namespace SendKeyEvents = extensions::api::input_ime::SendKeyEvents; | 25 namespace SendKeyEvents = extensions::api::input_ime::SendKeyEvents; |
26 namespace HideInputView = extensions::api::input_ime::HideInputView; | 26 namespace HideInputView = extensions::api::input_ime::HideInputView; |
27 namespace SetMenuItems = extensions::api::input_ime::SetMenuItems; | 27 namespace SetMenuItems = extensions::api::input_ime::SetMenuItems; |
28 namespace SetCursorPosition = extensions::api::input_ime::SetCursorPosition; | 28 namespace SetCursorPosition = extensions::api::input_ime::SetCursorPosition; |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
807 if (input_components->size() > 0) | 807 if (input_components->size() > 0) |
808 input_ime_event_router()->UnregisterAllImes(profile_, extension->id()); | 808 input_ime_event_router()->UnregisterAllImes(profile_, extension->id()); |
809 } | 809 } |
810 } | 810 } |
811 | 811 |
812 InputImeEventRouter* InputImeAPI::input_ime_event_router() { | 812 InputImeEventRouter* InputImeAPI::input_ime_event_router() { |
813 return InputImeEventRouter::GetInstance(); | 813 return InputImeEventRouter::GetInstance(); |
814 } | 814 } |
815 | 815 |
816 } // namespace extensions | 816 } // namespace extensions |
OLD | NEW |