<commit_before>////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2008 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package mx.events
{

import flash.events.Event;
import flash.events.IEventDispatcher;

/**
 *  This is an event sent between sandboxes.
 *  The event lets objects in other sandboxes know
 *  what is going on in this sandbox.
 *  The events are informational in nature as opposed to SWFBridgeRequests,
 *  which request an object do something on its behalf.
 */
public class SWFBridgeEvent extends Event
{
	include "../core/Version.as";

    //--------------------------------------------------------------------------
    //
    //  Class constants
    //
    //--------------------------------------------------------------------------

	/**
	 *	Dispatched to a parent bridge or sandbox root to notify it that
	 *  another application has been activated.
	 */
    public static const NOTIFY_APPLICATION_ACTIVATED:String =
        "notifyApplicationActivate";

    /**
     *  Sent via bridge to a child application's systemManager to notify it
	 *  that the SWF is about to be unloaded.  The systemManager marshals and
	 *  re-dispatches the event so that application code can remove references
	 *  that would prevent the SWF from unloading
     */  
    public static const NOTIFY_BEFORE_UNLOAD:String = "notifyBeforeUnload";

	/**
	 *  Dispatched via bridges to all other FocusManagers to notify them
	 *  that another focus manager is now active.
	 */
	public static const NOTIFY_FOCUS_MANAGER_ACTIVATED:String =
        "notifyFocusManagerActivated";

	/**
	 *  Dispatched via parent bridge to its SWFLoader to notify it
	 *  that a new system manager has been initialized. 
	 */
	public static const NOTIFY_NEW_BRIDGED_APPLICATION:String =
        "notifyNewBridgedApplication";

	/**
	 *	Dispatched to a parent bridge or sandbox root to notify it that
	 *  a window was activated.
	 * 
	 *  For a compatible application, the <code>data</code> property
     *  is set to the system manager proxy that was activated.
	 *  For an untrusted application, the <code>data</code> property
     *  is set to a string id of the window.
	 */
    public static const NOTIFY_WINDOW_ACTIVATED:String = "notifyWindowActivated";

	/**
	 *	Dispatched to a parent bridge or sandbox root to notify it that
	 *	the proxy system manager was deactivated.
	 * 
	 *  For a compatible application, the <code>data</code> property
     *  is set to the system manager proxy that was activated.
	 *  For an untrusted application, the <code>data</code> property
     *  is set to a string id of the window.
     *
	 */
    public static const NOTIFY_WINDOW_DEACTIVATED:String = "notifyWindowDeactivated";

	//--------------------------------------------------------------------------
	//
	//  Constructor
	//<commit_msg>Transferred from the Adobe Open Source Subversion Repository<commit_after>////////////////////////////////////////////////////////////////////////////////
//
//  ADOBE SYSTEMS INCORPORATED
//  Copyright 2008 Adobe Systems Incorporated
//  All Rights Reserved.
//
//  NOTICE: Adobe permits you to use, modify, and distribute this file
//  in accordance with the terms of the license agreement accompanying it.
//
////////////////////////////////////////////////////////////////////////////////

package mx.events
{

import flash.events.Event;
import flash.events.IEventDispatcher;

/**
 *  This is an event sent between sandboxes.
 *  The event lets objects in other sandboxes know
 *  what is going on in this sandbox.
 *  The events are informational in nature as opposed to SWFBridgeRequests,
 *  which request an object do something on its behalf.
 */
public class SWFBridgeEvent extends Event
{
	include "../core/Version.as";

    //--------------------------------------------------------------------------
    //
    //  Class constants
    //
    //--------------------------------------------------------------------------

	/**
	 *	Dispatched to a parent bridge or sandbox root to notify it that
	 *  another application has been activated.
	 */
    public static const BRIDGE_APPLICATION_ACTIVATE:String =
        "bridgeApplicationActivate";

    /**
     *  Sent via bridge to a child application's systemManager to notify it
	 *  that the SWF is about to be unloaded.  The systemManager marshals and
	 *  re-dispatches the event so that application code can remove references
	 *  that would prevent the SWF from unloading
     */  
    public static const BRIDGE_APPLICATION_UNLOADING:String = "bridgeApplicationUnloading";

	/**
	 *  Dispatched via bridges to all other FocusManagers to notify them
	 *  that another focus manager is now active.
	 */
	public static const BRIDGE_FOCUS_MANAGER_ACTIVATE:String =
        "bridgeFocusManagerActivate";

	/**
	 *  Dispatched via parent bridge to its SWFLoader to notify it
	 *  that a new system manager has been initialized. 
	 */
	public static const BRIDGE_NEW_APPLICATION:String =
        "bridgeNewApplication";

	/**
	 *	Dispatched to a parent bridge or sandbox root to notify it that
	 *  a window was activated.
	 * 
	 *  For a compatible application, the <code>data</code> property
     *  is set to the system manager proxy that was activated.
	 *  For an untrusted application, the <code>data</code> property
     *  is set to a string id of the window.
	 */
    public static const BRIDGE_WINDOW_ACTIVATE:String = "bridgeWindowActivate";

	/**
	 *	Dispatched to a parent bridge or sandbox root to notify it that
	 *	the proxy system manager was deactivated.
	 * 
	 *  For a compatible application, the <code>data</code> property
     *  is set to the system manager proxy that was activated.
	 *  For an untrusted application, the <code>data</code> property
     *  is set to a string id of the window.
     *
	 */
    public static const BRIDGE_WINDOW_DEACTIVATE:String = "brdigeWindowDeactivate";

	//--------------------------------------------------------------------------
	//
	//  Constructor
	//
{'fraction_non_alphanumeric': 0.1825962910128388, 'fraction_numerical': 0.0012680297987002695, 'mean_word_length': 1.9820415879017013, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4891336', 'n_tokens_mistral': 1651, 'n_tokens_neox': 1535, 'n_words': 633}