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 7 namespace ui { 8 9 InputMethodMac::InputMethodMac(internal::InputMethodDelegate* delegate) { 10 SetDelegate(delegate); 11 } 12 13 InputMethodMac::~InputMethodMac() { 14 } 15 16 bool InputMethodMac::OnUntranslatedIMEMessage(const base::NativeEvent& event, 17 NativeEventResult* result) { 18 return false; 19 } 20 21 bool 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 27 void InputMethodMac::OnCaretBoundsChanged(const TextInputClient* client) { 28 } 29 30 void InputMethodMac::CancelComposition(const TextInputClient* client) { 31 } 32 33 void InputMethodMac::OnInputLocaleChanged() { 34 } 35 36 std::string InputMethodMac::GetInputLocale() { 37 return ""; 38 } 39 40 bool InputMethodMac::IsActive() { 41 return true; 42 } 43 44 bool 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