| 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/ibus_controller.h" | 5 #include "chrome/browser/chromeos/input_method/ibus_controller.h" |
| 6 | 6 |
| 7 #if defined(HAVE_IBUS) | 7 #if defined(HAVE_IBUS) |
| 8 #include "chrome/browser/chromeos/input_method/ibus_controller_impl.h" | 8 #include "chrome/browser/chromeos/input_method/ibus_controller_impl.h" |
| 9 #else | 9 #else |
| 10 #include "chrome/browser/chromeos/input_method/mock_ibus_controller.h" | 10 #include "chrome/browser/chromeos/input_method/mock_ibus_controller.h" |
| 11 #endif | 11 #endif |
| 12 | 12 |
| 13 namespace chromeos { | 13 namespace chromeos { |
| 14 namespace input_method { | 14 namespace input_method { |
| 15 | 15 |
| 16 IBusController::~IBusController() { | 16 IBusController::~IBusController() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 // static | 19 // static |
| 20 IBusController* IBusController::Create( | 20 IBusController* IBusController::Create() { |
| 21 const scoped_refptr<base::SequencedTaskRunner>& default_task_runner, | |
| 22 const scoped_refptr<base::SequencedTaskRunner>& worker_task_runner) { | |
| 23 #if defined(HAVE_IBUS) | 21 #if defined(HAVE_IBUS) |
| 24 return new IBusControllerImpl(default_task_runner, worker_task_runner); | 22 return new IBusControllerImpl; |
| 25 #else | 23 #else |
| 26 return new MockIBusController; | 24 return new MockIBusController; |
| 27 #endif | 25 #endif |
| 28 } | 26 } |
| 29 | 27 |
| 30 } // namespace input_method | 28 } // namespace input_method |
| 31 } // namespace chromeos | 29 } // namespace chromeos |
| OLD | NEW |