| 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_H_ | 5 #ifndef UI_OZONE_IME_FAKE_INPUT_METHOD_CONTEXT_OZONE_H_ |
| 6 #define UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_H_ | 6 #define UI_OZONE_IME_FAKE_INPUT_METHOD_CONTEXT_OZONE_H_ |
| 7 | 7 |
| 8 #include "ui/base/ime/linux/linux_input_method_context.h" | 8 #include "ui/base/ime/linux/linux_input_method_context.h" |
| 9 #include "ui/ozone/ozone_export.h" |
| 9 | 10 |
| 10 namespace ui { | 11 namespace ui { |
| 11 | 12 |
| 12 // A fake implementation of LinuxInputMethodContext, which does nothing. | 13 // A fake implementation of LinuxInputMethodContext, which does nothing. |
| 13 class FakeInputMethodContext : public LinuxInputMethodContext { | 14 class OZONE_EXPORT FakeInputMethodContextOzone : |
| 15 public LinuxInputMethodContext { |
| 14 public: | 16 public: |
| 15 FakeInputMethodContext(); | 17 FakeInputMethodContextOzone(); |
| 18 virtual ~FakeInputMethodContextOzone(); |
| 16 | 19 |
| 17 // Overriden from ui::LinuxInputMethodContext | 20 // Overriden from ui::LinuxInputMethodContext |
| 18 virtual bool DispatchKeyEvent(const ui::KeyEvent& key_event) OVERRIDE; | 21 virtual bool DispatchKeyEvent(const ui::KeyEvent& key_event) OVERRIDE; |
| 19 virtual void Reset() OVERRIDE; | 22 virtual void Reset() OVERRIDE; |
| 20 virtual base::i18n::TextDirection GetInputTextDirection() const OVERRIDE; | 23 virtual base::i18n::TextDirection GetInputTextDirection() const OVERRIDE; |
| 21 virtual void OnTextInputTypeChanged(ui::TextInputType text_input_type) | 24 virtual void OnTextInputTypeChanged(ui::TextInputType text_input_type) |
| 22 OVERRIDE; | 25 OVERRIDE; |
| 23 virtual void OnCaretBoundsChanged(const gfx::Rect& caret_bounds) OVERRIDE; | 26 virtual void OnCaretBoundsChanged(const gfx::Rect& caret_bounds) OVERRIDE; |
| 24 | 27 |
| 25 private: | 28 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(FakeInputMethodContext); | 29 DISALLOW_COPY_AND_ASSIGN(FakeInputMethodContextOzone); |
| 27 }; | 30 }; |
| 28 | 31 |
| 29 } // namespace ui | 32 } // namespace ui |
| 30 | 33 |
| 31 #endif // UI_BASE_IME_LINUX_FAKE_INPUT_METHOD_CONTEXT_H_ | 34 #endif // UI_OZONE_IME_FAKE_INPUT_METHOD_CONTEXT_OZONE_H_ |
| OLD | NEW |