2001-09-25 22:53:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00: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-27 23:11:08 +00:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
#include "domstubs.idl"
|
|
|
|
|
2011-11-27 11:51:53 +00: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-27 23:11:08 +00:00
|
|
|
|
|
|
|
interface nsIEditorIMESupport : nsISupports
|
|
|
|
{
|
|
|
|
/**
|
2005-02-01 19:24:59 +00:00
|
|
|
* forceCompositionEnd() force the composition end
|
2001-03-27 23:11:08 +00:00
|
|
|
*/
|
2001-11-29 10:05:36 +00:00
|
|
|
|
2005-02-01 19:24:59 +00:00
|
|
|
void forceCompositionEnd();
|
2001-11-29 10:05:36 +00:00
|
|
|
|
2005-11-14 23:55:24 +00:00
|
|
|
/**
|
|
|
|
* Get preferred IME status of current widget.
|
|
|
|
*/
|
|
|
|
|
2011-11-27 11:51:53 +00:00
|
|
|
[noscript] IMEState getPreferredIMEState();
|
2008-02-20 07:18:53 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* whether this editor has active IME transaction
|
|
|
|
*/
|
|
|
|
readonly attribute boolean composing;
|
2001-03-27 23:11:08 +00:00
|
|
|
};
|
|
|
|
|