nsIQueryContentEventResult.idl (1254B)
1 /* -*- Mode: IDL; 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 6 #include "nsISupports.idl" 7 8 /** 9 * The result of query content events. succeeded propery can be used always. 10 * Whether other properties can be used or not depends on the event. 11 * See nsIDOMWindowUtils.idl, which properites can be used was documented. 12 */ 13 14 [scriptable, uuid(e2c39e0e-345f-451a-a7b2-e0230d555847)] 15 interface nsIQueryContentEventResult : nsISupports 16 { 17 readonly attribute unsigned long offset; 18 readonly attribute unsigned long tentativeCaretOffset; 19 readonly attribute boolean reversed; 20 21 readonly attribute long left; 22 readonly attribute long top; 23 readonly attribute long width; 24 readonly attribute long height; 25 readonly attribute AString text; 26 27 void getCharacterRect(in long offset, 28 out long left, out long top, 29 out long width, out long height); 30 31 readonly attribute boolean succeeded; 32 readonly attribute boolean notFound; 33 readonly attribute boolean tentativeCaretOffsetNotFound; 34 };