summaryrefslogtreecommitdiffstats
path: root/ui/base/ime/ibus_client.cc
blob: e5631c14f1f77ba6c6231da1ac16f0cefca2237b (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
// Copyright (c) 2012 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/ibus_client.h"

#include "chromeos/dbus/dbus_thread_manager.h"
#include "chromeos/dbus/ibus/ibus_input_context_client.h"
#include "ui/gfx/rect.h"

namespace ui {
namespace internal {

IBusClient::IBusClient() {
}

IBusClient::~IBusClient() {
}

IBusClient::InputMethodType IBusClient::GetInputMethodType() {
  // This object cannot know the type of the current IME, hence return NORMAL.
  return INPUT_METHOD_NORMAL;
}

void IBusClient::SetCursorLocation(const gfx::Rect& cursor_location,
                                   const gfx::Rect& composition_head) {
  // Do nothing, because this function will be overridden with
  // IBusChromeOSClientImpl.
}

}  // namespace internal
}  // namespace ui