| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "ui/base/ime/chromeos/component_extension_ime_manager.h" | 5 #include "ui/base/ime/chromeos/component_extension_ime_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 bool InputMethodCompare(const input_method::InputMethodDescriptor& im1, | 86 bool InputMethodCompare(const input_method::InputMethodDescriptor& im1, |
| 87 const input_method::InputMethodDescriptor& im2) { | 87 const input_method::InputMethodDescriptor& im2) { |
| 88 return GetInputMethodCategory(im1.id()) < GetInputMethodCategory(im2.id()); | 88 return GetInputMethodCategory(im1.id()) < GetInputMethodCategory(im2.id()); |
| 89 } | 89 } |
| 90 | 90 |
| 91 } // namespace | 91 } // namespace |
| 92 | 92 |
| 93 ComponentExtensionEngine::ComponentExtensionEngine() { | 93 ComponentExtensionEngine::ComponentExtensionEngine() { |
| 94 } | 94 } |
| 95 | 95 |
| 96 ComponentExtensionEngine::ComponentExtensionEngine( |
| 97 const ComponentExtensionEngine& other) = default; |
| 98 |
| 96 ComponentExtensionEngine::~ComponentExtensionEngine() { | 99 ComponentExtensionEngine::~ComponentExtensionEngine() { |
| 97 } | 100 } |
| 98 | 101 |
| 99 ComponentExtensionIME::ComponentExtensionIME() { | 102 ComponentExtensionIME::ComponentExtensionIME() { |
| 100 } | 103 } |
| 101 | 104 |
| 105 ComponentExtensionIME::ComponentExtensionIME( |
| 106 const ComponentExtensionIME& other) = default; |
| 107 |
| 102 ComponentExtensionIME::~ComponentExtensionIME() { | 108 ComponentExtensionIME::~ComponentExtensionIME() { |
| 103 } | 109 } |
| 104 | 110 |
| 105 ComponentExtensionIMEManagerDelegate::ComponentExtensionIMEManagerDelegate() { | 111 ComponentExtensionIMEManagerDelegate::ComponentExtensionIMEManagerDelegate() { |
| 106 } | 112 } |
| 107 | 113 |
| 108 ComponentExtensionIMEManagerDelegate::~ComponentExtensionIMEManagerDelegate() { | 114 ComponentExtensionIMEManagerDelegate::~ComponentExtensionIMEManagerDelegate() { |
| 109 } | 115 } |
| 110 | 116 |
| 111 ComponentExtensionIMEManager::ComponentExtensionIMEManager() { | 117 ComponentExtensionIMEManager::ComponentExtensionIMEManager() { |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 bool ComponentExtensionIMEManager::IsInLoginLayoutWhitelist( | 246 bool ComponentExtensionIMEManager::IsInLoginLayoutWhitelist( |
| 241 const std::vector<std::string>& layouts) { | 247 const std::vector<std::string>& layouts) { |
| 242 for (size_t i = 0; i < layouts.size(); ++i) { | 248 for (size_t i = 0; i < layouts.size(); ++i) { |
| 243 if (login_layout_set_.find(layouts[i]) != login_layout_set_.end()) | 249 if (login_layout_set_.find(layouts[i]) != login_layout_set_.end()) |
| 244 return true; | 250 return true; |
| 245 } | 251 } |
| 246 return false; | 252 return false; |
| 247 } | 253 } |
| 248 | 254 |
| 249 } // namespace chromeos | 255 } // namespace chromeos |
| OLD | NEW |