• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright 2014 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#include "ui/base/ime/input_method_mac.h"
6
7namespace ui {
8
9InputMethodMac::InputMethodMac(internal::InputMethodDelegate* delegate) {
10  SetDelegate(delegate);
11}
12
13InputMethodMac::~InputMethodMac() {
14}
15
16bool InputMethodMac::OnUntranslatedIMEMessage(const base::NativeEvent& event,
17                                              NativeEventResult* result) {
18  return false;
19}
20
21bool InputMethodMac::DispatchKeyEvent(const ui::KeyEvent& event) {
22  // IME processing on the Mac does not go through this path.
23  NOTREACHED();
24  return false;
25}
26
27void InputMethodMac::OnCaretBoundsChanged(const TextInputClient* client) {
28}
29
30void InputMethodMac::CancelComposition(const TextInputClient* client) {
31}
32
33void InputMethodMac::OnInputLocaleChanged() {
34}
35
36std::string InputMethodMac::GetInputLocale() {
37  return "";
38}
39
40bool InputMethodMac::IsActive() {
41  return true;
42}
43
44bool InputMethodMac::IsCandidatePopupOpen() const {
45  // There seems to be no way to tell if a candidate window is open.
46  return false;
47}
48
49}  // namespace ui
50