| 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/chromeos/input_method/mock_input_method_delegate.h" | 5 #include "chrome/browser/chromeos/input_method/mock_input_method_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | |
| 8 #include "base/sequenced_task_runner.h" | |
| 9 | |
| 10 namespace chromeos { | 7 namespace chromeos { |
| 11 namespace input_method { | 8 namespace input_method { |
| 12 | 9 |
| 13 MockInputMethodDelegate::MockInputMethodDelegate() | 10 MockInputMethodDelegate::MockInputMethodDelegate() |
| 14 : active_locale_("en") { | 11 : active_locale_("en") { |
| 15 } | 12 } |
| 16 | 13 |
| 17 MockInputMethodDelegate::~MockInputMethodDelegate() { | 14 MockInputMethodDelegate::~MockInputMethodDelegate() { |
| 18 } | 15 } |
| 19 | 16 |
| 20 std::string MockInputMethodDelegate::GetHardwareKeyboardLayout() const { | 17 std::string MockInputMethodDelegate::GetHardwareKeyboardLayout() const { |
| 21 return hardware_keyboard_layout_; | 18 return hardware_keyboard_layout_; |
| 22 } | 19 } |
| 23 | 20 |
| 24 std::string MockInputMethodDelegate::GetActiveLocale() const { | 21 std::string MockInputMethodDelegate::GetActiveLocale() const { |
| 25 return active_locale_; | 22 return active_locale_; |
| 26 } | 23 } |
| 27 | 24 |
| 28 scoped_refptr<base::SequencedTaskRunner> | |
| 29 MockInputMethodDelegate::GetDefaultTaskRunner() const { | |
| 30 NOTREACHED(); | |
| 31 return NULL; | |
| 32 } | |
| 33 | |
| 34 scoped_refptr<base::SequencedTaskRunner> | |
| 35 MockInputMethodDelegate::GetWorkerTaskRunner() const { | |
| 36 NOTREACHED(); | |
| 37 return NULL; | |
| 38 } | |
| 39 | |
| 40 } // namespace input_method | 25 } // namespace input_method |
| 41 } // namespace chromeos | 26 } // namespace chromeos |
| OLD | NEW |