nsIHTMLObjectResizer.idl (1206B)
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 6 #include "nsISupports.idl" 7 #include "domstubs.idl" 8 9 webidl Element; 10 11 [scriptable, builtinclass, uuid(8b396020-69d3-451f-80c1-1a96a7da25a9)] 12 interface nsIHTMLObjectResizer : nsISupports 13 { 14 %{C++ 15 typedef short EResizerLocation; 16 %} 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; 25 26 /** 27 * a boolean indicating if object resizing is enabled in the editor 28 */ 29 [setter_can_run_script] 30 attribute boolean objectResizingEnabled; 31 32 /** 33 * true if the object resizing UI is visible. 34 */ 35 [infallible] readonly attribute boolean isObjectResizingActive; 36 37 /** 38 * Hide resizers if they are visible. If this is called while there is no 39 * visible resizers, this does not throw exception, just does nothing. 40 */ 41 void hideResizers(); 42 };