PageRenderTime 25ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/public/lib/extjs/air/samples/tasks/adobe/AIRAliases.js

http://vmaki.googlecode.com/
JavaScript | 204 lines | 125 code | 31 blank | 48 comment | 2 complexity | a03cae1247a892344b69d7b5b93401bf MD5 | raw file
Possible License(s): LGPL-2.1
  1. /*
  2. * Ext JS Library 0.30
  3. * Copyright(c) 2006-2009, Ext JS, LLC.
  4. * licensing@extjs.com
  5. *
  6. * http://extjs.com/license
  7. */
  8. /* AIRAliases.js - Revision: 0.15 */
  9. // Copyright (c) 2007. Adobe Systems Incorporated.
  10. // All rights reserved.
  11. //
  12. // Redistribution and use in source and binary forms, with or without
  13. // modification, are permitted provided that the following conditions are met:
  14. //
  15. // * Redistributions of source code must retain the above copyright notice,
  16. // this list of conditions and the following disclaimer.
  17. // * Redistributions in binary form must reproduce the above copyright notice,
  18. // this list of conditions and the following disclaimer in the documentation
  19. // and/or other materials provided with the distribution.
  20. // * Neither the name of Adobe Systems Incorporated nor the names of its
  21. // contributors may be used to endorse or promote products derived from this
  22. // software without specific prior written permission.
  23. //
  24. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
  25. // AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  26. // IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  27. // ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
  28. // LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
  29. // CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
  30. // SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
  31. // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
  32. // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  33. // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  34. // POSSIBILITY OF SUCH DAMAGE.
  35. var air;
  36. if (window.runtime)
  37. {
  38. if (!air) air = {};
  39. // functions
  40. air.trace = window.runtime.trace;
  41. air.navigateToURL = window.runtime.flash.net.navigateToURL;
  42. air.sendToURL = window.runtime.flash.net.sendToURL;
  43. // file
  44. air.File = window.runtime.flash.filesystem.File;
  45. air.FileStream = window.runtime.flash.filesystem.FileStream;
  46. air.FileMode = window.runtime.flash.filesystem.FileMode;
  47. // events
  48. air.AsyncErrorEvent = window.runtime.flash.events.AsyncErrorEvent;
  49. air.DataEvent = window.runtime.flash.events.DataEvent;
  50. air.DRMAuthenticateEvent = window.runtime.flash.events.DRMAuthenticateEvent;
  51. air.DRMStatusEvent = window.runtime.flash.events.DRMStatusEvent;
  52. air.Event = window.runtime.flash.events.Event;
  53. air.EventDispatcher = window.runtime.flash.events.EventDispatcher;
  54. air.FileListEvent = window.runtime.flash.events.FileListEvent;
  55. air.HTTPStatusEvent = window.runtime.flash.events.HTTPStatusEvent;
  56. air.IOErrorEvent = window.runtime.flash.events.IOErrorEvent;
  57. air.InvokeEvent = window.runtime.flash.events.InvokeEvent;
  58. air.NetStatusEvent = window.runtime.flash.events.NetStatusEvent;
  59. air.OutputProgressEvent = window.runtime.flash.events.OutputProgressEvent;
  60. air.ProgressEvent = window.runtime.flash.events.ProgressEvent;
  61. air.SecurityErrorEvent = window.runtime.flash.events.SecurityErrorEvent;
  62. air.StatusEvent = window.runtime.flash.events.StatusEvent;
  63. air.TimerEvent = window.runtime.flash.events.TimerEvent;
  64. air.NativeDragEvent = window.runtime.flash.events.NativeDragEvent;
  65. air.ActivityEvent = window.runtime.flash.events.ActivityEvent;
  66. air.KeyboardEvent = window.runtime.flash.events.KeyboardEvent;
  67. air.MouseEvent = window.runtime.flash.events.MouseEvent;
  68. // native window
  69. air.NativeWindow = window.runtime.flash.display.NativeWindow;
  70. air.NativeWindowDisplayState = window.runtime.flash.display.NativeWindowDisplayState;
  71. air.NativeWindowInitOptions = window.runtime.flash.display.NativeWindowInitOptions;
  72. air.NativeWindowSystemChrome = window.runtime.flash.display.NativeWindowSystemChrome;
  73. air.NativeWindowResize = window.runtime.flash.display.NativeWindowResize;
  74. air.NativeWindowType = window.runtime.flash.display.NativeWindowType;
  75. air.NativeWindowBoundsEvent = window.runtime.flash.events.NativeWindowBoundsEvent;
  76. air.NativeWindowDisplayStateEvent = window.runtime.flash.events.NativeWindowDisplayStateEvent;
  77. // geom
  78. air.Point = window.runtime.flash.geom.Point;
  79. air.Rectangle = window.runtime.flash.geom.Rectangle;
  80. air.Matrix = window.runtime.flash.geom.Matrix;
  81. // net
  82. air.FileFilter = window.runtime.flash.net.FileFilter;
  83. air.LocalConnection = window.runtime.flash.net.LocalConnection;
  84. air.NetConnection = window.runtime.flash.net.NetConnection;
  85. air.URLLoader = window.runtime.flash.net.URLLoader;
  86. air.URLLoaderDataFormat = window.runtime.flash.net.URLLoaderDataFormat;
  87. air.URLRequest = window.runtime.flash.net.URLRequest;
  88. air.URLRequestDefaults = window.runtime.flash.net.URLRequestDefaults;
  89. air.URLRequestHeader = window.runtime.flash.net.URLRequestHeader;
  90. air.URLRequestMethod = window.runtime.flash.net.URLRequestMethod;
  91. air.URLStream = window.runtime.flash.net.URLStream;
  92. air.URLVariables = window.runtime.flash.net.URLVariables;
  93. air.Socket = window.runtime.flash.net.Socket;
  94. air.XMLSocket = window.runtime.flash.net.XMLSocket;
  95. air.Responder = window.runtime.flash.net.Responder;
  96. air.ObjectEncoding = window.runtime.flash.net.ObjectEncoding;
  97. air.NetStream = window.runtime.flash.net.NetStream;
  98. air.SharedObject = window.runtime.flash.net.SharedObject;
  99. air.SharedObjectFlushStatus = window.runtime.flash.net.SharedObjectFlushStatus;
  100. // system
  101. air.Capabilities = window.runtime.flash.system.Capabilities;
  102. air.System = window.runtime.flash.system.System;
  103. air.Security = window.runtime.flash.system.Security;
  104. air.Updater = window.runtime.flash.desktop.Updater;
  105. air.LoaderContext = window.runtime.flash.system.LoaderContext;
  106. air.ApplicationDomain = window.runtime.flash.system.ApplicationDomain;
  107. // desktop
  108. air.Clipboard = window.runtime.flash.desktop.Clipboard;
  109. air.ClipboardFormats = window.runtime.flash.desktop.ClipboardFormats;
  110. air.ClipboardTransferMode = window.runtime.flash.desktop.ClipboardTransferMode;
  111. air.NativeDragManager = window.runtime.flash.desktop.NativeDragManager;
  112. air.NativeDragOptions = window.runtime.flash.desktop.NativeDragOptions;
  113. air.NativeDragActions = window.runtime.flash.desktop.NativeDragActions;
  114. air.Icon = window.runtime.flash.desktop.Icon;
  115. air.DockIcon = window.runtime.flash.desktop.DockIcon;
  116. air.InteractiveIcon = window.runtime.flash.desktop.InteractiveIcon;
  117. air.NotificationType = window.runtime.flash.desktop.NotificationType;
  118. air.SystemTrayIcon = window.runtime.flash.desktop.SystemTrayIcon;
  119. air.NativeApplication = window.runtime.flash.desktop.NativeApplication;
  120. // display
  121. air.NativeMenu = window.runtime.flash.display.NativeMenu;
  122. air.NativeMenuItem = window.runtime.flash.display.NativeMenuItem;
  123. air.Screen = window.runtime.flash.display.Screen;
  124. air.Loader = window.runtime.flash.display.Loader;
  125. air.Bitmap = window.runtime.flash.display.Bitmap;
  126. air.BitmapData = window.runtime.flash.display.BitmapData;
  127. // ui
  128. air.Keyboard = window.runtime.flash.ui.Keyboard;
  129. air.KeyEquivalent = window.runtime.flash.ui.KeyEquivalent;
  130. air.Mouse = window.runtime.flash.ui.Mouse;
  131. // utils
  132. air.ByteArray = window.runtime.flash.utils.ByteArray;
  133. air.CompressionAlgorithm = window.runtime.flash.utils.CompressionAlgorithm;
  134. air.Endian = window.runtime.flash.utils.Endian;
  135. air.Timer = window.runtime.flash.utils.Timer;
  136. air.XMLSignatureValidator = window.runtime.flash.security.XMLSignatureValidator;
  137. air.HTMLLoader = window.runtime.flash.html.HTMLLoader;
  138. // media
  139. air.ID3Info = window.runtime.flash.media.ID3Info;
  140. air.Sound = window.runtime.flash.media.Sound;
  141. air.SoundChannel = window.runtime.flash.media.SoundChannel;
  142. air.SoundLoaderContext = window.runtime.flash.media.SoundLoaderContext;
  143. air.SoundMixer = window.runtime.flash.media.SoundMixer;
  144. air.SoundTransform = window.runtime.flash.media.SoundTransform;
  145. air.Microphone = window.runtime.flash.media.Microphone;
  146. air.Video = window.runtime.flash.media.Video;
  147. air.Camera = window.runtime.flash.media.Camera;
  148. // data
  149. air.EncryptedLocalStore = window.runtime.flash.data.EncryptedLocalStore;
  150. air.SQLCollationType = window.runtime.flash.data.SQLCollationType;
  151. air.SQLColumnNameStyle = window.runtime.flash.data.SQLColumnNameStyle;
  152. air.SQLColumnSchema = window.runtime.flash.data.SQLColumnSchema;
  153. air.SQLConnection = window.runtime.flash.data.SQLConnection;
  154. air.SQLError = window.runtime.flash.errors.SQLError;
  155. air.SQLErrorEvent = window.runtime.flash.events.SQLErrorEvent;
  156. air.SQLErrorOperation = window.runtime.flash.errors.SQLErrorOperation;
  157. air.SQLEvent = window.runtime.flash.events.SQLEvent;
  158. air.SQLIndexSchema = window.runtime.flash.data.SQLIndexSchema;
  159. air.SQLMode = window.runtime.flash.data.SQLMode;
  160. air.SQLResult = window.runtime.flash.data.SQLResult;
  161. air.SQLSchema = window.runtime.flash.data.SQLSchema;
  162. air.SQLSchemaResult = window.runtime.flash.data.SQLSchemaResult;
  163. air.SQLStatement = window.runtime.flash.data.SQLStatement;
  164. air.SQLTableSchema = window.runtime.flash.data.SQLTableSchema;
  165. air.SQLTransactionLockType = window.runtime.flash.data.SQLTransactionLockType;
  166. air.SQLTriggerSchema = window.runtime.flash.data.SQLTriggerSchema;
  167. air.SQLUpdateEvent = window.runtime.flash.events.SQLUpdateEvent;
  168. air.SQLViewSchema = window.runtime.flash.data.SQLViewSchema;
  169. // service monitoring framework
  170. air.__defineGetter__("ServiceMonitor", function() { return window.runtime.air.net.ServiceMonitor; })
  171. air.__defineGetter__("SocketMonitor", function() { return window.runtime.air.net.SocketMonitor; })
  172. air.__defineGetter__("URLMonitor", function() { return window.runtime.air.net.URLMonitor; })
  173. }