diff options
Diffstat (limited to 'chromium/ui/base/ime/input_method_mac.mm')
-rw-r--r-- | chromium/ui/base/ime/input_method_mac.mm | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/chromium/ui/base/ime/input_method_mac.mm b/chromium/ui/base/ime/input_method_mac.mm new file mode 100644 index 00000000000..c4b55c984d9 --- /dev/null +++ b/chromium/ui/base/ime/input_method_mac.mm @@ -0,0 +1,49 @@ +// Copyright 2014 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/input_method_mac.h" + +namespace ui { + +InputMethodMac::InputMethodMac(internal::InputMethodDelegate* delegate) { + SetDelegate(delegate); +} + +InputMethodMac::~InputMethodMac() { +} + +bool InputMethodMac::OnUntranslatedIMEMessage(const base::NativeEvent& event, + NativeEventResult* result) { + return false; +} + +bool InputMethodMac::DispatchKeyEvent(const ui::KeyEvent& event) { + // IME processing on the Mac does not go through this path. + NOTREACHED(); + return false; +} + +void InputMethodMac::OnCaretBoundsChanged(const TextInputClient* client) { +} + +void InputMethodMac::CancelComposition(const TextInputClient* client) { +} + +void InputMethodMac::OnInputLocaleChanged() { +} + +std::string InputMethodMac::GetInputLocale() { + return ""; +} + +bool InputMethodMac::IsActive() { + return true; +} + +bool InputMethodMac::IsCandidatePopupOpen() const { + // There seems to be no way to tell if a candidate window is open. + return false; +} + +} // namespace ui |