nsIEditorIMESupport.idl 912 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* This Source Code Form is subject to the terms of the Mozilla Public
  3. * License, v. 2.0. If a copy of the MPL was not distributed with this
  4. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  5. #include "nsISupports.idl"
  6. #include "domstubs.idl"
  7. %{C++
  8. namespace mozilla {
  9. namespace widget {
  10. struct IMEState;
  11. } // namespace widget
  12. } // namespace mozilla
  13. %}
  14. native IMEState(mozilla::widget::IMEState);
  15. [scriptable, uuid(0ba7f490-afb8-46dd-87fc-bc6137fbc899)]
  16. interface nsIEditorIMESupport : nsISupports
  17. {
  18. /**
  19. * forceCompositionEnd() force the composition end
  20. */
  21. void forceCompositionEnd();
  22. /**
  23. * Get preferred IME status of current widget.
  24. */
  25. [noscript] IMEState getPreferredIMEState();
  26. /**
  27. * whether this editor has active IME transaction
  28. */
  29. readonly attribute boolean composing;
  30. };