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.
5 #include "ui/base/ime/input_method_mac.h"
9 InputMethodMac::InputMethodMac(internal::InputMethodDelegate* delegate) {
10 SetDelegate(delegate);
13 InputMethodMac::~InputMethodMac() {
16 bool InputMethodMac::OnUntranslatedIMEMessage(const base::NativeEvent& event,
17 NativeEventResult* result) {
21 bool InputMethodMac::DispatchKeyEvent(const ui::KeyEvent& event) {
22 // This is used on Mac only to dispatch events post-IME.
23 return DispatchKeyEventPostIME(event);
26 void InputMethodMac::OnCaretBoundsChanged(const TextInputClient* client) {
29 void InputMethodMac::CancelComposition(const TextInputClient* client) {
32 void InputMethodMac::OnInputLocaleChanged() {
35 std::string InputMethodMac::GetInputLocale() {
39 bool InputMethodMac::IsActive() {
43 bool InputMethodMac::IsCandidatePopupOpen() const {
44 // There seems to be no way to tell if a candidate window is open.