| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef UI_OZONE_IME_INPUT_METHOD_CONTEXT_FACTORY_OZONE_H_ | |
| 6 #define UI_OZONE_IME_INPUT_METHOD_CONTEXT_FACTORY_OZONE_H_ | |
| 7 | |
| 8 #include "ui/base/ime/linux/linux_input_method_context_factory.h" | |
| 9 #include "ui/ozone/ozone_export.h" | |
| 10 | |
| 11 namespace ui { | |
| 12 // TODO(kalyan): Move this class to ui/ime, once ui/base/ime is moved to ui/ime. | |
| 13 // An interface that lets different Ozone platforms override the | |
| 14 // CreateInputMethodContext function declared here to return native input method | |
| 15 // contexts. | |
| 16 class OZONE_EXPORT InputMethodContextFactoryOzone : | |
| 17 public LinuxInputMethodContextFactory { | |
| 18 public: | |
| 19 InputMethodContextFactoryOzone(); | |
| 20 virtual ~InputMethodContextFactoryOzone(); | |
| 21 | |
| 22 // By default this returns a minimal input method context. | |
| 23 virtual scoped_ptr<LinuxInputMethodContext> CreateInputMethodContext( | |
| 24 LinuxInputMethodContextDelegate* delegate) const OVERRIDE; | |
| 25 }; | |
| 26 | |
| 27 } // namespace ui | |
| 28 | |
| 29 #endif // UI_OZONE_IME_INPUT_METHOD_CONTEXT_FACTORY_OZONE_H_ | |
| OLD | NEW |