summaryrefslogtreecommitdiff
path: root/chromium/ui/base/ime/linux/fake_input_method_context.cc
blob: 434dcf67041bd3ef124e34804f057b9afc9e75b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/base/ime/linux/fake_input_method_context.h"

namespace ui {

FakeInputMethodContext::FakeInputMethodContext() {}

// Overriden from ui::LinuxInputMethodContext

bool FakeInputMethodContext::DispatchKeyEvent(
    const ui::KeyEvent& /* key_event */) {
  return false;
}

void FakeInputMethodContext::Reset() {
}

base::i18n::TextDirection FakeInputMethodContext::GetInputTextDirection()
    const {
  return base::i18n::UNKNOWN_DIRECTION;
}

void FakeInputMethodContext::OnTextInputTypeChanged(
    ui::TextInputType /* text_input_type */) {
}

void FakeInputMethodContext::OnCaretBoundsChanged(
    const gfx::Rect& /* caret_bounds */) {
}

}  // namespace ui