michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: #include "domstubs.idl" michael@0: michael@0: %{C++ michael@0: namespace mozilla { michael@0: namespace widget { michael@0: struct IMEState; michael@0: } // namespace widget michael@0: } // namespace mozilla michael@0: %} michael@0: michael@0: native IMEState(mozilla::widget::IMEState); michael@0: michael@0: [scriptable, uuid(0ba7f490-afb8-46dd-87fc-bc6137fbc899)] michael@0: michael@0: interface nsIEditorIMESupport : nsISupports michael@0: { michael@0: /** michael@0: * forceCompositionEnd() force the composition end michael@0: */ michael@0: michael@0: void forceCompositionEnd(); michael@0: michael@0: /** michael@0: * Get preferred IME status of current widget. michael@0: */ michael@0: michael@0: [noscript] IMEState getPreferredIMEState(); michael@0: michael@0: /** michael@0: * whether this editor has active IME transaction michael@0: */ michael@0: readonly attribute boolean composing; michael@0: }; michael@0: