11e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved.
21e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be
31e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// found in the LICENSE file.
41e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
51e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)#include "ui/base/ime/linux/fake_input_method_context.h"
61e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
71e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)namespace ui {
81e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
91e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)FakeInputMethodContext::FakeInputMethodContext() {}
101e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
111e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)// Overriden from ui::LinuxInputMethodContext
121e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
131e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)bool FakeInputMethodContext::DispatchKeyEvent(
14a3f6a49ab37290eeeb8db0f41ec0f1cb74a68be7Torne (Richard Coles)    const ui::KeyEvent& /* key_event */) {
151e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  return false;
161e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)}
171e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
181e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)void FakeInputMethodContext::Reset() {
191e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)}
201e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
211e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)base::i18n::TextDirection FakeInputMethodContext::GetInputTextDirection()
221e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    const {
231e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)  return base::i18n::UNKNOWN_DIRECTION;
241e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)}
251e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
261e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)void FakeInputMethodContext::OnTextInputTypeChanged(
271e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    ui::TextInputType /* text_input_type */) {
281e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)}
291e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
301e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)void FakeInputMethodContext::OnCaretBoundsChanged(
311e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)    const gfx::Rect& /* caret_bounds */) {
321e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)}
331e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)
341e9bf3e0803691d0a228da41fc608347b6db4340Torne (Richard Coles)}  // namespace ui
35