mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 04:05:32 +00:00
954a8896f5
To test eQueryCharRectArray, I would like to add it to nsIDOMWindowUtils. Also this require unit test and will require external keyboard support on Android Masayiki asks me more review to smaug this due IDL change. MozReview-Commit-ID: 24lvQxXBnRX --HG-- extra : rebase_source : 30788f550a465dc1ee058bf71d56656a89e364c2 extra : histedit_source : 2d2a2d4309b1fde6416408fe0e0d6b0f313898fb
35 lines
1.2 KiB
Plaintext
35 lines
1.2 KiB
Plaintext
/* -*- Mode: IDL; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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/. */
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
/**
|
|
* The result of query content events. succeeded propery can be used always.
|
|
* Whether other properties can be used or not depends on the event.
|
|
* See nsIDOMWindowUtils.idl, which properites can be used was documented.
|
|
*/
|
|
|
|
[scriptable, uuid(e2c39e0e-345f-451a-a7b2-e0230d555847)]
|
|
interface nsIQueryContentEventResult : nsISupports
|
|
{
|
|
readonly attribute unsigned long offset;
|
|
readonly attribute unsigned long tentativeCaretOffset;
|
|
readonly attribute boolean reversed;
|
|
|
|
readonly attribute long left;
|
|
readonly attribute long top;
|
|
readonly attribute long width;
|
|
readonly attribute long height;
|
|
readonly attribute AString text;
|
|
|
|
void getCharacterRect(in long offset,
|
|
out long left, out long top,
|
|
out long width, out long height);
|
|
|
|
readonly attribute boolean succeeded;
|
|
readonly attribute boolean notFound;
|
|
readonly attribute boolean tentativeCaretOffsetNotFound;
|
|
};
|