Bug 1669129 - [devtools] Enable devtools.overflow.debugging.enabled. r=jdescottes
[gecko.git] / editor / nsIHTMLObjectResizer.idl
blob6b50f0d609fbfefc11890b46970c68b9dea14dba
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/. */
6 #include "nsISupports.idl"
7 #include "domstubs.idl"
9 webidl Element;
11 [scriptable, builtinclass, uuid(8b396020-69d3-451f-80c1-1a96a7da25a9)]
12 interface nsIHTMLObjectResizer : nsISupports
14 %{C++
15 typedef short EResizerLocation;
17 const short eTopLeft = 0;
18 const short eTop = 1;
19 const short eTopRight = 2;
20 const short eLeft = 3;
21 const short eRight = 4;
22 const short eBottomLeft = 5;
23 const short eBottom = 6;
24 const short eBottomRight = 7;
26 /**
27 * a boolean indicating if object resizing is enabled in the editor
29 [can_run_script] // Setter only.
30 attribute boolean objectResizingEnabled;
32 /**
33 * Hide resizers if they are visible. If this is called while there is no
34 * visible resizers, this does not throw exception, just does nothing.
36 void hideResizers();
38 /**
39 * Refresh positions of resizers. If you change size of target of resizers,
40 * you need to refresh position of resizers with calling this.
41 * FYI: Current user in script is only BlueGriffon.
43 [can_run_script]
44 void refreshResizers();