//////////////////////////////////////////////////////////////////////////////// // // Licensed to the Apache Software Foundation (ASF) under one or more // contributor license agreements. See the NOTICE file distributed with // this work for additional information regarding copyright ownership. // The ASF licenses this file to You under the Apache License, Version 2.0 // (the "License"); you may not use this file except in compliance with // the License. You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // //////////////////////////////////////////////////////////////////////////////// package flashx.textLayout.container { import flash.events.Event; /** Interface to support TLF content in a sub-application. When an application is loaded in an untrusted context, * mouse events that occur outside of the untrusted application's bounds are not delivered. Clients can handle this * by implementing ISandboxSupport. * * @playerversion Flash 10 * @playerversion AIR 1.5 * @langversion 3.0 * * @see flashx.textLayout.container.ContainerController * @see flashx.textLayout.container.TextContainerManager * @see flashx.textLayout.edit.SelectionManager * @see flash.system.SecurityDomain */ public interface ISandboxSupport { /** * Called to request clients to begin the forwarding of mouseup and mousemove events from outside a security sandbox. * * @playerversion Flash 10 * @playerversion AIR 1.5 * @langversion 3.0 * */ function beginMouseCapture():void; /** * Called to inform clients that the the forwarding of mouseup and mousemove events from outside a security sandbox is no longer needed. * * @playerversion Flash 10 * @playerversion AIR 1.5 * @langversion 3.0 * */ function endMouseCapture():void; /** Client call to forward a mouseUp event from outside a security sandbox. Coordinates of the mouse up are not needed. * * @playerversion Flash 10 * @playerversion AIR 1.5 * @langversion 3.0 * */ function mouseUpSomewhere(event:Event):void; /** Client call to forward a mouseMove event from outside a security sandbox. Coordinates of the mouse move are not needed. * * @playerversion Flash 10 * @playerversion AIR 1.5 * @langversion 3.0 * */ function mouseMoveSomewhere(event:Event):void; } }