| 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 #ifndef UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_ | 5 #ifndef UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_ |
| 6 #define UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_ | 6 #define UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_ |
| 7 | 7 |
| 8 #include "ui/base/ime/linux/linux_input_method_context_factory.h" | 8 #include "ui/base/ime/linux/linux_input_method_context_factory.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| 11 | 11 |
| 12 // An implementation of LinuxInputMethodContextFactory, which creates and | 12 // An implementation of LinuxInputMethodContextFactory, which creates and |
| 13 // returns FakeInputMethodContext's. | 13 // returns FakeInputMethodContext's. |
| 14 class FakeInputMethodContextFactory : public LinuxInputMethodContextFactory { | 14 class FakeInputMethodContextFactory : public LinuxInputMethodContextFactory { |
| 15 public: | 15 public: |
| 16 FakeInputMethodContextFactory(); | 16 FakeInputMethodContextFactory(); |
| 17 | 17 |
| 18 // Overriden from ui::LinuxInputMethodContextFactory | 18 // Overriden from ui::LinuxInputMethodContextFactory |
| 19 virtual scoped_ptr<LinuxInputMethodContext> CreateInputMethodContext( | 19 virtual scoped_ptr<LinuxInputMethodContext> CreateInputMethodContext( |
| 20 LinuxInputMethodContextDelegate* delegate) const OVERRIDE; | 20 LinuxInputMethodContextDelegate* delegate) const override; |
| 21 | 21 |
| 22 private: | 22 private: |
| 23 DISALLOW_COPY_AND_ASSIGN(FakeInputMethodContextFactory); | 23 DISALLOW_COPY_AND_ASSIGN(FakeInputMethodContextFactory); |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 } // namespace ui | 26 } // namespace ui |
| 27 | 27 |
| 28 #endif // UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_ | 28 #endif // UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_FACTORY_H_ |
| OLD | NEW |