| 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 "input_method_event_router.h" | 5 #include "input_method_event_router.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/json/json_writer.h" | 9 #include "base/json/json_writer.h" |
| 10 #include "base/values.h" | 10 #include "base/values.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 } | 55 } |
| 56 | 56 |
| 57 void ExtensionInputMethodEventRouter::ActiveInputMethodsChanged( | 57 void ExtensionInputMethodEventRouter::ActiveInputMethodsChanged( |
| 58 input_method::InputMethodManager *manager, | 58 input_method::InputMethodManager *manager, |
| 59 const input_method::InputMethodDescriptor & current_input_method, | 59 const input_method::InputMethodDescriptor & current_input_method, |
| 60 size_t num_active_input_methods) { | 60 size_t num_active_input_methods) { |
| 61 } | 61 } |
| 62 | 62 |
| 63 void ExtensionInputMethodEventRouter::PropertyListChanged( | 63 void ExtensionInputMethodEventRouter::PropertyListChanged( |
| 64 input_method::InputMethodManager *manager, | 64 input_method::InputMethodManager *manager, |
| 65 const input_method::ImePropertyList & current_ime_properties) { | 65 const input_method::InputMethodPropertyList & current_ime_properties) { |
| 66 } | 66 } |
| 67 | 67 |
| 68 std::string ExtensionInputMethodEventRouter::GetInputMethodForXkb( | 68 std::string ExtensionInputMethodEventRouter::GetInputMethodForXkb( |
| 69 const std::string& xkb_id) { | 69 const std::string& xkb_id) { |
| 70 size_t prefix_length = std::string(kXkbPrefix).length(); | 70 size_t prefix_length = std::string(kXkbPrefix).length(); |
| 71 DCHECK(xkb_id.substr(0, prefix_length) == kXkbPrefix); | 71 DCHECK(xkb_id.substr(0, prefix_length) == kXkbPrefix); |
| 72 return xkb_id.substr(prefix_length); | 72 return xkb_id.substr(prefix_length); |
| 73 } | 73 } |
| 74 | 74 |
| 75 } // namespace chromeos | 75 } // namespace chromeos |
| OLD | NEW |