2001-09-26 02:53:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2001-03-28 03:11:08 +04:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "domstubs.idl"
|
|
|
|
|
2011-11-27 15:51:53 +04:00
|
|
|
%{C++
|
|
|
|
namespace mozilla {
|
|
|
|
namespace widget {
|
|
|
|
struct IMEState;
|
|
|
|
} // namespace widget
|
|
|
|
} // namespace mozilla
|
|
|
|
%}
|
|
|
|
|
|
|
|
native IMEState(mozilla::widget::IMEState);
|
|
|
|
|
|
|
|
[scriptable, uuid(0ba7f490-afb8-46dd-87fc-bc6137fbc899)]
|
2001-03-28 03:11:08 +04:00
|
|
|
|
|
|
|
interface nsIEditorIMESupport : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
2005-02-01 22:24:59 +03:00
|
|
|
* forceCompositionEnd() force the composition end
|
2001-03-28 03:11:08 +04:00
|
|
|
*/
|
2001-11-29 13:05:36 +03:00
|
|
|
|
2005-02-01 22:24:59 +03:00
|
|
|
void forceCompositionEnd();
|
2001-11-29 13:05:36 +03:00
|
|
|
|
2005-11-15 02:55:24 +03:00
|
|
|
/**
|
|
|
|
* Get preferred IME status of current widget.
|
|
|
|
*/
|
|
|
|
|
2011-11-27 15:51:53 +04:00
|
|
|
[noscript] IMEState getPreferredIMEState();
|
2008-02-20 10:18:53 +03:00
|
|
|
|
|
|
|
/**
|
|
|
|
* whether this editor has active IME transaction
|
|
|
|
*/
|
|
|
|
readonly attribute boolean composing;
|
2001-03-28 03:11:08 +04:00
|
|
|
};
|
|
|
|
|