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/extension_input_ime_api.h" | 5 #include "chrome/browser/extensions/extension_input_ime_api.h" |
6 | 6 |
7 #include "base/json/json_writer.h" | 7 #include "base/json/json_writer.h" |
8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
11 #include "chrome/browser/chromeos/input_method/input_method_engine.h" | 11 #include "chrome/browser/chromeos/input_method/input_method_engine.h" |
12 #include "chrome/browser/extensions/extension_event_router.h" | 12 #include "chrome/browser/extensions/event_router.h" |
13 #include "chrome/browser/extensions/extension_input_module_constants.h" | 13 #include "chrome/browser/extensions/extension_input_module_constants.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 | 15 |
16 namespace keys = extension_input_module_constants; | 16 namespace keys = extension_input_module_constants; |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 const char kStyleNone[] = "none"; | 20 const char kStyleNone[] = "none"; |
21 const char kStyleCheck[] = "check"; | 21 const char kStyleCheck[] = "check"; |
22 const char kStyleRadio[] = "radio"; | 22 const char kStyleRadio[] = "radio"; |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
828 | 828 |
829 bool handled = false; | 829 bool handled = false; |
830 EXTENSION_FUNCTION_VALIDATE(args_->GetBoolean(1, &handled)); | 830 EXTENSION_FUNCTION_VALIDATE(args_->GetBoolean(1, &handled)); |
831 | 831 |
832 ExtensionInputImeEventRouter::GetInstance()->OnEventHandled( | 832 ExtensionInputImeEventRouter::GetInstance()->OnEventHandled( |
833 extension_id(), request_id_str, handled); | 833 extension_id(), request_id_str, handled); |
834 | 834 |
835 return true; | 835 return true; |
836 } | 836 } |
837 #endif | 837 #endif |
OLD | NEW |