Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Move Atlas too

svn path=/trunk/olive/; revision=64839
  • Loading branch information...
commit 000e0c5de5b960625c2c5e481a20573d0c5ac3d5 1 parent 3205687
Miguel de Icaza migueldeicaza authored

Showing 92 changed files with 9,417 additions and 0 deletions. Show diff stats Hide diff stats

  1. +44 0 class/Microsoft.Web.Atlas/Assembly/AssemblyInfo.cs
  2. +391 0 class/Microsoft.Web.Atlas/ChangeLog
  3. +26 0 class/Microsoft.Web.Atlas/Makefile
  4. +60 0 class/Microsoft.Web.Atlas/Microsoft.Web.Atlas.dll.sources
  5. +25 0 class/Microsoft.Web.Atlas/Microsoft.Web.Atlas_test.dll.sources
  6. +83 0 class/Microsoft.Web.Atlas/Microsoft.Web.Services.Converters/DateTimeConverter.cs
  7. +96 0 class/Microsoft.Web.Atlas/Microsoft.Web.Services/JavaScriptConverter.cs
  8. +56 0 class/Microsoft.Web.Atlas/Microsoft.Web.Services/JavaScriptObjectDeserializer.cs
  9. +112 0 class/Microsoft.Web.Atlas/Microsoft.Web.Services/ScriptHandlerFactory.cs
  10. +56 0 class/Microsoft.Web.Atlas/Microsoft.Web.Services/ScriptModule.cs
  11. +42 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/ActivationType.cs
  12. +88 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/Button.cs
  13. +68 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/ClickBehavior.cs
  14. +110 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/DataSourceDropTarget.cs
  15. +135 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/DragDropList.cs
  16. +41 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/DragMode.cs
  17. +81 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/DraggableListItem.cs
  18. +45 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/Filter.cs
  19. +77 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/FloatingBehavior.cs
  20. +113 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/HoverBehavior.cs
  21. +94 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/Label.cs
  22. +169 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/ListView.cs
  23. +42 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/MapStyle.cs
  24. +82 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/Option.cs
  25. +45 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/PositioningMode.cs
  26. +89 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/PropertyFilter.cs
  27. +80 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/Script.cs
  28. +151 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/ScriptManager.cs
  29. +180 0 class/Microsoft.Web.Atlas/Microsoft.Web.UI/TextBox.cs
  30. +88 0 class/Microsoft.Web.Atlas/Microsoft.Web/Action.cs
  31. +97 0 class/Microsoft.Web.Atlas/Microsoft.Web/ActionCollection.cs
  32. +56 0 class/Microsoft.Web.Atlas/Microsoft.Web/ActionMemberConverter.cs
  33. +42 0 class/Microsoft.Web.Atlas/Microsoft.Web/ActionSequence.cs
  34. +42 0 class/Microsoft.Web.Atlas/Microsoft.Web/ActionTargetConverter.cs
  35. +59 0 class/Microsoft.Web.Atlas/Microsoft.Web/Behavior.cs
  36. +91 0 class/Microsoft.Web.Atlas/Microsoft.Web/BehaviorCollection.cs
  37. +204 0 class/Microsoft.Web.Atlas/Microsoft.Web/Binding.cs
  38. +111 0 class/Microsoft.Web.Atlas/Microsoft.Web/BindingCollection.cs
  39. +42 0 class/Microsoft.Web.Atlas/Microsoft.Web/BindingDirection.cs
  40. +112 0 class/Microsoft.Web.Atlas/Microsoft.Web/GenericScriptComponent.cs
  41. +61 0 class/Microsoft.Web.Atlas/Microsoft.Web/IDConverter.cs
  42. +42 0 class/Microsoft.Web.Atlas/Microsoft.Web/IScriptComponent.cs
  43. +44 0 class/Microsoft.Web.Atlas/Microsoft.Web/IScriptComponentContainer.cs
  44. +44 0 class/Microsoft.Web.Atlas/Microsoft.Web/IScriptObject.cs
  45. +75 0 class/Microsoft.Web.Atlas/Microsoft.Web/InvokeMethodAction.cs
  46. +171 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptComponent.cs
  47. +164 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptComponentBase.cs
  48. +42 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptComponentCollection.cs
  49. +141 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptControl.cs
  50. +100 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptEvent.cs
  51. +95 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptEventCollection.cs
  52. +75 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptEventDescriptor.cs
  53. +55 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptMemberDescriptor.cs
  54. +67 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptMethodDescriptor.cs
  55. +93 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptPropertyDescriptor.cs
  56. +47 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptTextWriter.cs
  57. +45 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptType.cs
  58. +105 0 class/Microsoft.Web.Atlas/Microsoft.Web/ScriptTypeDescriptor.cs
  59. +104 0 class/Microsoft.Web.Atlas/Microsoft.Web/SetPropertyAction.cs
  60. +43 0 class/Microsoft.Web.Atlas/Microsoft.Web/TransformScriptEvent.cs
  61. +40 0 class/Microsoft.Web.Atlas/Microsoft.Web/VisibilityMode.cs
  62. +132 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.Services.Converters/DateTimeConverterTest.cs
  63. +75 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.Services/JavaScriptConverterTest.cs
  64. +119 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/ClickBehaviorTest.cs
  65. +170 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/DataSourceDropTargetTest.cs
  66. +182 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/DragDropListTest.cs
  67. +157 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/DraggableListItemTest.cs
  68. +142 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/FloatingBehaviorTest.cs
  69. +161 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/HoverBehaviorTest.cs
  70. +145 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/LabelTest.cs
  71. +196 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/ListViewTest.cs
  72. +89 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/OptionTest.cs
  73. +161 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/PropertyFilterTest.cs
  74. +170 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web.UI/TextBoxTest.cs
  75. +251 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/ActionTest.cs
  76. +247 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/BindingTest.cs
  77. +109 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/GenericScriptComponentTest.cs
  78. +173 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/InvokeMethodActionTest.cs
  79. +126 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/ScriptComponentBaseTest.cs
  80. +71 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/ScriptControlTest.cs
  81. +80 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/ScriptEventDescriptorTest.cs
  82. +163 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/ScriptEventTest.cs
  83. +88 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/ScriptMethodDescriptorTest.cs
  84. +105 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/ScriptPropertyDescriptorTest.cs
  85. +109 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/ScriptTypeDescriptorTest.cs
  86. +197 0 class/Microsoft.Web.Atlas/Test/Microsoft.Web/SetPropertyActionTest.cs
  87. +26 0 class/Microsoft.Web.Atlas/Test/standalone/HelloWorld/HelloWorld.aspx
  88. +27 0 class/Microsoft.Web.Atlas/Test/standalone/HelloWorld/HelloWorldService.asmx
  89. +69 0 class/Microsoft.Web.Atlas/Test/standalone/script_samples/inheritance.html
  90. +101 0 class/Microsoft.Web.Atlas/Test/standalone/script_samples/interfaces.html
  91. +39 0 class/Microsoft.Web.Atlas/resources/AtlasControls.js
  92. +259 0 class/Microsoft.Web.Atlas/resources/AtlasCore.js
44 class/Microsoft.Web.Atlas/Assembly/AssemblyInfo.cs
... ... @@ -0,0 +1,44 @@
  1 +//
  2 +// AssemblyInfo.cs
  3 +//
  4 +// Author:
  5 +// Chris Toshok (toshok@ximian.com)
  6 +//
  7 +// (C) 2005 Novell, Inc. http://www.novell.com
  8 +//
  9 +
  10 +using System;
  11 +using System.Reflection;
  12 +using System.Resources;
  13 +using System.Security;
  14 +using System.Runtime.CompilerServices;
  15 +using System.Runtime.InteropServices;
  16 +using System.Web.UI;
  17 +
  18 +// General Information about the System.Web assembly
  19 +
  20 +[assembly: AssemblyVersion (Consts.FxVersion)]
  21 +[assembly: SatelliteContractVersion (Consts.FxVersion)]
  22 +
  23 +[assembly: AssemblyTitle("Microsoft.Web.Atlas.dll")]
  24 +[assembly: AssemblyDescription("Microsoft.Web.Atlas.dll")]
  25 +[assembly: AssemblyConfiguration("Development version")]
  26 +[assembly: AssemblyCompany("MONO development team")]
  27 +[assembly: AssemblyProduct("MONO CLI")]
  28 +[assembly: AssemblyCopyright("(c) 2005 Various Authors")]
  29 +[assembly: AssemblyTrademark("")]
  30 +#if TARGET_JVM
  31 +[assembly: CLSCompliant(false)]
  32 +#else
  33 +[assembly: CLSCompliant(true)]
  34 +#endif
  35 +
  36 +[assembly: ComVisible(false)]
  37 +[assembly: AssemblyDefaultAlias("Microsoft.Web.Atlas.dll")]
  38 +[assembly: AssemblyInformationalVersion("0.0.0.1")]
  39 +[assembly: NeutralResourcesLanguage("en-US")]
  40 +
  41 +#if !TARGET_JVM
  42 +//[assembly: AssemblyDelaySign(true)]
  43 +//[assembly: AssemblyKeyFile("../msfinal.pub")]
  44 +#endif
391 class/Microsoft.Web.Atlas/ChangeLog
... ... @@ -0,0 +1,391 @@
  1 +2005-09-27 Chris Toshok <toshok@ximian.com>
  2 +
  3 + * Assembly/AssemblyInfo.cs: comment out the signing stuff, as MS's
  4 + assembly isn't signed.
  5 +
  6 +2005-09-27 Chris Toshok <toshok@ximian.com>
  7 +
  8 + * Microsoft.Web.Atlas_test.dll.sources: add the new classes.
  9 +
  10 + * Test/Microsoft.Web.UI/TextBoxTest.cs: subclass from
  11 + ScriptControlTest, and nuke the local copies of
  12 + DoEvent/Method/Property.
  13 +
  14 + * Test/Microsoft.Web.UI/PropertyFilterTest.cs: same.
  15 +
  16 + * Test/Microsoft.Web.UI/ListViewTest.cs: same.
  17 +
  18 + * Test/Microsoft.Web.UI/DataSourceDropTargetTest.cs: same.
  19 +
  20 + * Test/Microsoft.Web.UI/ClickBehaviorTest.cs: same.
  21 +
  22 + * Test/Microsoft.Web.UI/DraggableListItemTest.cs: same.
  23 +
  24 + * Test/Microsoft.Web.UI/HoverBehaviorTest.cs: same.
  25 +
  26 + * Test/Microsoft.Web.UI/FloatingBehaviorTest.cs: same.
  27 +
  28 + * Test/Microsoft.Web.UI/LabelTest.cs: same.
  29 +
  30 + * Test/Microsoft.Web.UI/DragDropListTest.cs: same.
  31 +
  32 + * Test/Microsoft.Web.Services.Converters/DateTimeConverterTest.cs:
  33 + new tests.
  34 +
  35 + * Test/Microsoft.Web.Services/JavaScriptConverterTest.cs: new
  36 + tests.
  37 +
  38 + * Test/Microsoft.Web/GenericScriptComponentTest.cs: new tests.
  39 +
  40 + * Test/Microsoft.Web/ScriptEventTest.cs (RenderActions): replace
  41 + \r\n with \n so we pass both on windows and mono.
  42 +
  43 + * Test/Microsoft.Web/ScriptControlTest.cs: new utility class that
  44 + contains definitions for DoEvent, DoMethod, and DoProperty for
  45 + use testing GetTypeDescriptor.
  46 +
  47 +2005-09-27 Chris Toshok <toshok@ximian.com>
  48 +
  49 + * Makefile (LIB_MCS_FLAGS): add -define:API_SUGGESTIONS.
  50 +
  51 + * Microsoft.Web.Atlas.dll.sources: add in all the new files.
  52 +
  53 +2005-09-27 Chris Toshok <toshok@ximian.com>
  54 +
  55 + * Microsoft.Web.Services/JavaScriptObjectDeserializer.cs: new
  56 + file.
  57 +
  58 + * Microsoft.Web.Services/JavaScriptConverter.cs: new file.
  59 +
  60 + * Microsoft.Web.Services.Converters/DateTimeConverter.cs: new
  61 + file.
  62 +
  63 +2005-09-27 Chris Toshok <toshok@ximian.com>
  64 +
  65 + * Microsoft.Web/ScriptEvent.cs (RenderActions): remove the
  66 + WriteWhitespace calls - the writer takes care of formatting for
  67 + us.
  68 +
  69 + * Microsoft.Web/ScriptControl.cs (AddAttributesToElement): add
  70 + cssClass and targetElement.
  71 + (InitializeTypeDescriptor): flesh out the type descriptor.
  72 + (RenderScriptTagContents): call the base class method, then render
  73 + our behaviors.
  74 + (Behaviors): implement.
  75 + (CssClass): implement.
  76 +
  77 + * Microsoft.Web/Behavior.cs (RenderBehavior): new.
  78 + (RenderScript): new.
  79 +
  80 + * Microsoft.Web/ScriptComponent.cs (AddAttributesToRender): write
  81 + the ID.
  82 + (InitializeTypeDescriptor): implement.
  83 + (OnInit): register ourselves with the script manager.
  84 + (RenderScriptTagContents): render our bindings.
  85 + (Bindings): implement.
  86 + (PropertyChanged): implement.
  87 + (IScriptOwner.Owner): return null instead of NIE.
  88 +
  89 + * Microsoft.Web/ScriptComponentBase.cs (RenderScript): add new
  90 + non-iface virtual method, and have the explicit interface impl
  91 + call it.
  92 + (RenderScriptTagContents): write out the bindings.
  93 +
  94 + * Microsoft.Web/ScriptTextWriter.cs (.ctor): set Formatting to
  95 + Formatting.Indented.
  96 +
  97 + * Microsoft.Web/IScriptComponentContainer.cs: new interface.
  98 +
  99 + * Microsoft.Web/ScriptComponentCollection.cs: new implementation.
  100 +
  101 + * Microsoft.Web/GenericScriptComponent.cs: new implementation.
  102 +
  103 +2005-09-27 Chris Toshok <toshok@ximian.com>
  104 +
  105 + * Microsoft.Web.UI/ScriptManager.cs: implement things such that
  106 + things kinda work.
  107 +
  108 + * Microsoft.Web.UI/Button.cs (AddAttributesToElement): call base
  109 + class method.
  110 + (InitializeTypeDescriptor): same.
  111 + (OnPreRender): same.
  112 +
  113 + * Microsoft.Web.UI/Label.cs: new implementation.
  114 +
  115 + * Microsoft.Web.UI/TextBox.cs: new implementation.
  116 +
  117 + * Microsoft.Web.UI/ListView.cs: new implementation.
  118 +
  119 +2005-09-16 Chris Toshok <toshok@ximian.com>
  120 +
  121 + * Test/Microsoft.Web.UI/LabelTest.cs: new test.
  122 +
  123 + * Test/Microsoft.Web.UI/ListViewTest.cs: new test.
  124 +
  125 + * Test/Microsoft.Web.UI/TextBoxTest.cs: new test.
  126 +
  127 +2005-09-15 Chris Toshok <toshok@ximian.com>
  128 +
  129 + * Makefile (LIB_MCS_FLAGS): fix this up.
  130 +
  131 + * Microsoft.Web.Services/ScriptHandlerFactory.cs
  132 + (ScriptHandlerFactory.GetHandler): implement by returning a
  133 + JSProxyGenerator if PathInfo == "/js", otherwise we fallback to
  134 + using WebServiceHandlerFactory.
  135 + (JSProxyGenerator): brain dead and simple proxy generator that
  136 + uses S.R. to emit the JS.
  137 +
  138 + * Microsoft.Web.UI/Script.cs: always render the <script> tags for
  139 + the time being - eventually we'll compare Page.Browser and
  140 + Script.Browser.
  141 +
  142 + * resources/AtlasCore.js: include portions of prototype.js to get
  143 + the Ajax stuff working. Their stuff is MIT, and why reinvent the
  144 + wheel?
  145 + (Web.Net.ServiceMethodRequest): implement this in terms of
  146 + Ajax.Request from prototype.js.
  147 +
  148 +2005-09-15 Chris Toshok <toshok@ximian.com>
  149 +
  150 + * Microsoft.Web.Services/ScriptHandlerFactory.cs: new (stub) file.
  151 +
  152 + * Microsoft.Web.Services/ScriptModule.cs: same.
  153 +
  154 +2005-09-15 Chris Toshok <toshok@ximian.com>
  155 +
  156 + * Assembly/AssemblyInfo.cs: new file.
  157 +
  158 + * Microsoft.Web.Atlas.dll.sources: add the assemblyinfo stuff.
  159 +
  160 +2005-09-15 Chris Toshok <toshok@ximian.com>
  161 +
  162 + * resources/AtlasControls.js: new file.
  163 +
  164 + * resources/AtlasCore.js: new file.
  165 +
  166 +2005-09-14 Chris Toshok <toshok@ximian.com>
  167 +
  168 + * Microsoft.Web.UI/Option.cs: new implementation.
  169 +
  170 + * Test/Microsoft.Web.UI/OptionTest.cs: new test.
  171 +
  172 + * Microsoft.Web.Atlas_test.dll.sources: add OptionTest.cs
  173 +
  174 + * Microsoft.Web.Atlas.dll.sources: add Option.cs
  175 +
  176 +2005-09-14 Chris Toshok <toshok@ximian.com>
  177 +
  178 + * Microsoft.Web.UI/PropertyFilter.cs: new implementation.
  179 +
  180 + * Microsoft.Web.UI/Filter.cs: new implementation.
  181 +
  182 + * Test/Microsoft.Web.UI/PropertyFilterTest.cs: new test.
  183 +
  184 + * Microsoft.Web.Atlas_test.dll.sources: add PropertyFilterTest.cs
  185 +
  186 + * Microsoft.Web.Atlas.dll.sources: add PropertyFilter.cs
  187 +
  188 +2005-09-14 Chris Toshok <toshok@ximian.com>
  189 +
  190 + * Microsoft.Web.Atlas.dll.sources: add DraggableListItem.cs
  191 +
  192 + * Microsoft.Web.UI/HoverBehavior.cs (AddAttributesToElement): add
  193 + comment about how MS NRE's here in our tests.
  194 + (InitializeTypeDescriptor): fix the ServerPropertyName for
  195 + "hoverElement".
  196 +
  197 + * Microsoft.Web.UI/DraggableListItem.cs (AddAttributesToElement):
  198 + add comment about how MS NRE's here in our tests.
  199 +
  200 + * Microsoft.Web.UI/DataSourceDropTarget.cs
  201 + (AddAttributesToElement): add comment about how MS NRE's here in
  202 + our tests.
  203 +
  204 + * Microsoft.Web.UI/FloatingBehavior.cs (AddAttributesToElement):
  205 + add comment about how MS NRE's here in our tests.
  206 +
  207 + * Microsoft.Web/Binding.cs: new implementation.
  208 +
  209 + * Microsoft.Web/BindingDirection.cs: fix ordering on enum.
  210 +
  211 +2005-09-14 Chris Toshok <toshok@ximian.com>
  212 +
  213 + * Microsoft.Web.Atlas_test.dll.sources: add BindingTest and
  214 + DraggableListItemTest.
  215 +
  216 + * Test/Microsoft.Web/*: lots of new test work.
  217 +
  218 + * Test/Microsoft.Web.UI/*: lots of new test work.
  219 +
  220 +2005-09-14 Chris Toshok <toshok@ximian.com>
  221 +
  222 + * Microsoft.Web.Atlas_test.dll.sources: add DragDropListTest.cs
  223 +
  224 + * Microsoft.Web.Atlas.dll.sources: add DragDropList.cs
  225 +
  226 + * Microsoft.Web.UI/DragDropList.cs: new implementation.
  227 +
  228 + * Test/Microsoft.Web.UI/DragDropListTest.cs: new tests.
  229 +
  230 +2005-09-14 Chris Toshok <toshok@ximian.com>
  231 +
  232 + * Test/Microsoft.Web.UI/DataSourceDropTargetTest.cs: expand the
  233 + property tests.
  234 +
  235 + * Microsoft.Web.UI/DataSourceDropTarget.cs: fix up the default
  236 + values and behavior of properties.
  237 +
  238 +2005-09-14 Chris Toshok <toshok@ximian.com>
  239 +
  240 + * Microsoft.Web.Atlas_test.dll.sources: add DataSourceDropTargetTest.cs
  241 +
  242 + * Microsoft.Web.Atlas.dll.sources: add DataSourceDropTarget.cs
  243 +
  244 + * Microsoft.Web.UI/DataSourceDropTarget.cs: new implementation.
  245 +
  246 + * Test/Microsoft.Web.UI/DataSourceDropTargetTest.cs: new tests.
  247 +
  248 +2005-09-14 Chris Toshok <toshok@ximian.com>
  249 +
  250 + * Microsoft.Web.Atlas_test.dll.sources: add HoverBehaviorTest.cs
  251 +
  252 + * Microsoft.Web.Atlas.dll.sources: add HoverBehavior.cs
  253 +
  254 + * Microsoft.Web.UI/HoverBehavior.cs: new implementation.
  255 +
  256 + * Test/Microsoft.Web.UI/HoverBehaviorTest.cs: new tests.
  257 +
  258 +2005-09-14 Chris Toshok <toshok@ximian.com>
  259 +
  260 + * Microsoft.Web.UI/ClickBehavior.cs: fix a nullref in kind of a
  261 + stupid way.. leave an XXX.
  262 +
  263 + * Microsoft.Web.Atlas_test.dll.sources: add FloatingBehaviorTest.cs
  264 +
  265 + * Microsoft.Web.Atlas.dll.sources: add FloatingBehavior.cs
  266 +
  267 + * Microsoft.Web.UI/FloatingBehavior.cs: new implementation.
  268 +
  269 + * Test/Microsoft.Web.UI/FloatingBehaviorTest.cs: new tests.
  270 +
  271 +2005-09-14 Chris Toshok <toshok@ximian.com>
  272 +
  273 + * Microsoft.Web.Atlas.dll_sources: add implementations.
  274 +
  275 + * Microsoft.Web.Atlas_test.dll_sources: add tests.
  276 +
  277 + * Microsoft.Web/Behavior.cs: this class is pretty much empty.
  278 +
  279 + * Microsoft.Web/ActionCollection.cs: make the readonly stuff work.
  280 + someone with more experience with this crap should tell me whether
  281 + i did it right..
  282 +
  283 + * Microsoft.Web/ScriptMemberDescriptor.cs: cleanup.
  284 +
  285 + * Microsoft.Web/ScriptComponent.cs: cleanup.
  286 +
  287 + * Microsoft.Web/ScriptTypeDescriptor.cs (.ctor): cleanup.
  288 +
  289 + * Microsoft.Web/ScriptComponentBase.cs (RenderScript): make this
  290 + an explicit interface implementation.
  291 +
  292 + * Microsoft.Web/Action.cs (InitializeTypeDescriptor): move some of
  293 + the propertydescriptors from ScriptComponentBase to here, as they
  294 + don't show up when we get type descriptors for Behaviors.
  295 +
  296 + * Microsoft.Web/BehaviorCollection.cs: this class should be
  297 + public.
  298 +
  299 + * Microsoft.Web/ScriptControl.cs: stubs.
  300 +
  301 + * Microsoft.Web.UI/Button.cs: stubs.
  302 +
  303 + * Test/Microsoft.Web.UI/ClickBehavior.cs: new tests.
  304 +
  305 + * Microsoft.Web.UI/ClickBehavior: new implementation.
  306 +
  307 + * Test/Microsoft.Web/ScriptEventTest.cs: new tests.
  308 +
  309 + * Microsoft.Web/ScriptEvent.cs: round out implementation.
  310 +
  311 +2005-09-14 Chris Toshok <toshok@ximian.com>
  312 +
  313 + * Test/Microsoft.Web/ActionTest.cs,
  314 + Microsoft.Web/BehaviorCollection.cs,
  315 + Microsoft.Web/ScriptComponentBase.cs,
  316 + Microsoft.Web/BindingCollection.cs,
  317 + Microsoft.Web/ActionCollection.cs, Microsoft.Web/Behavior.cs,
  318 + Microsoft.Web/IScriptObject.cs, Microsoft.Web/Binding.cs: fix a
  319 + missing method in IScriptObject.
  320 +
  321 +2005-09-14 Chris Toshok <toshok@ximian.com>
  322 +
  323 + * Test/Microsoft.Web/SetPropertyActionTest.cs,
  324 + Test/Microsoft.Web/InvokeMethodActionTest.cs: new tests.
  325 +
  326 + * Microsoft.Web/SetPropertyAction.cs,
  327 + Microsoft.Web/InvokeMethodAction.cs: new implementations.
  328 +
  329 + * Microsoft.Web.Atlas.dll_sources: add implementations.
  330 +
  331 + * Microsoft.Web.Atlas_test.dll_sources: add tests.
  332 +
  333 +2005-09-14 Chris Toshok <toshok@ximian.com>
  334 +
  335 + * Microsoft.Web.Atlas_test.dll.sources: add
  336 + ScriptComponentBaseTest.
  337 +
  338 + * Test/Microsoft.Web/ScriptComponentBaseTest.cs: new tests.
  339 +
  340 + * Microsoft.Web/ScriptEventCollection.cs: naive, untested,
  341 + implementation to get the other tests running.
  342 +
  343 + * Microsoft.Web/ScriptEvent.cs: same.
  344 +
  345 + * Microsoft.Web/BindingCollection.cs: same.
  346 +
  347 + * Microsoft.Web/ActionCollection.cs: same.
  348 +
  349 + * Microsoft.Web/ScriptComponentBase.cs: round out implementation.
  350 +
  351 +2005-09-14 Chris Toshok <toshok@ximian.com>
  352 +
  353 + * Microsoft.Web/ScriptComponentBase.cs (InitializeTypeDescriptor):
  354 + implement.
  355 +
  356 + * Microsoft.Web/ScriptType.cs: fix enum.
  357 +
  358 + * Microsoft.Web/Action.cs: round out implementation.
  359 +
  360 + * Test/Microsoft.Web/ActionTest.cs: more tests.
  361 +
  362 +2005-09-14 Chris Toshok <toshok@ximian.com>
  363 +
  364 + * Microsoft.Web/ScriptMemberDescriptor.cs: new implementation.
  365 +
  366 + * Microsoft.Web/ScriptTypeDescriptor.cs: new implementation.
  367 +
  368 + * Microsoft.Web/ScriptMethodDescriptor.cs: new implementation.
  369 +
  370 + * Microsoft.Web/ScriptEventDescriptor.cs: new implementation.
  371 +
  372 + * Microsoft.Web/ScriptPropertyDescriptor.cs: new implementation.
  373 +
  374 +2005-09-14 Chris Toshok <toshok@ximian.com>
  375 +
  376 + * Test/Microsoft.Web/ScriptEventDescriptorTest.cs,
  377 + Test/Microsoft.Web/ScriptMethodDescriptorTest.cs,
  378 + Test/Microsoft.Web/ScriptPropertyDescriptorTest.cs: new tests.
  379 +
  380 + * Microsoft.Web.Atlas_test.dll.sources: add the descriptor tests.
  381 +
  382 +2005-09-14 Chris Toshok <toshok@ximian.com>
  383 +
  384 + * Microsoft.Web.Atlas_test.dll.sources: add
  385 + ScriptTypeDescriptorTest
  386 +
  387 + * Test/Microsoft.Web/ScriptTypeDescriptorTest.cs: new test.
  388 +
  389 +2005-09-13 Chris Toshok <toshok@ximian.com>
  390 +
  391 + * *: Initial import.. I was bored so I got started.
26 class/Microsoft.Web.Atlas/Makefile
... ... @@ -0,0 +1,26 @@
  1 +thisdir = class/Microsoft.Web.Atlas
  2 +include ../../build/rules.make
  3 +
  4 +#RESOURCE_FILES = \
  5 +# ...
  6 +
  7 +LIBRARY = Microsoft.Web.Atlas.dll
  8 +LIB_MCS_FLAGS = \
  9 + -define:API_SUGGESTIONS \
  10 + -r:$(corlib) \
  11 + -r:System.dll \
  12 + -r:System.Configuration.dll \
  13 + -r:System.Drawing.dll \
  14 + -r:System.Data.dll \
  15 + -r:System.Web.dll \
  16 + -r:System.Web.Services.dll \
  17 + -r:System.Xml.dll \
  18 + -r:System.EnterpriseServices.dll \
  19 + -r:System.Design.dll \
  20 + $(RESOURCE_FILES:%=/resource:%)
  21 +
  22 +TEST_MCS_FLAGS = $(LIB_MCS_FLAGS) -nowarn:219 -nowarn:169
  23 +
  24 +EXTRA_DISTFILES = $(RESOURCE_FILES)
  25 +
  26 +include ../../build/library.make
60 class/Microsoft.Web.Atlas/Microsoft.Web.Atlas.dll.sources
... ... @@ -0,0 +1,60 @@
  1 +Assembly/AssemblyInfo.cs
  2 +../../build/common/Consts.cs
  3 +../../build/common/Locale.cs
  4 +../../build/common/MonoTODOAttribute.cs
  5 +Microsoft.Web/ActionCollection.cs
  6 +Microsoft.Web/Action.cs
  7 +Microsoft.Web/ActionMemberConverter.cs
  8 +Microsoft.Web/ActionSequence.cs
  9 +Microsoft.Web/ActionTargetConverter.cs
  10 +Microsoft.Web/BehaviorCollection.cs
  11 +Microsoft.Web/Behavior.cs
  12 +Microsoft.Web/BindingCollection.cs
  13 +Microsoft.Web/Binding.cs
  14 +Microsoft.Web/BindingDirection.cs
  15 +Microsoft.Web/GenericScriptComponent.cs
  16 +Microsoft.Web/IDConverter.cs
  17 +Microsoft.Web/InvokeMethodAction.cs
  18 +Microsoft.Web/IScriptComponent.cs
  19 +Microsoft.Web/IScriptComponentContainer.cs
  20 +Microsoft.Web/IScriptObject.cs
  21 +Microsoft.Web/ScriptComponentBase.cs
  22 +Microsoft.Web/ScriptComponent.cs
  23 +Microsoft.Web/ScriptComponentCollection.cs
  24 +Microsoft.Web/ScriptControl.cs
  25 +Microsoft.Web/ScriptEventCollection.cs
  26 +Microsoft.Web/ScriptEvent.cs
  27 +Microsoft.Web/ScriptEventDescriptor.cs
  28 +Microsoft.Web/ScriptMemberDescriptor.cs
  29 +Microsoft.Web/ScriptMethodDescriptor.cs
  30 +Microsoft.Web/ScriptPropertyDescriptor.cs
  31 +Microsoft.Web/ScriptTextWriter.cs
  32 +Microsoft.Web/ScriptType.cs
  33 +Microsoft.Web/ScriptTypeDescriptor.cs
  34 +Microsoft.Web/SetPropertyAction.cs
  35 +Microsoft.Web/TransformScriptEvent.cs
  36 +Microsoft.Web/VisibilityMode.cs
  37 +Microsoft.Web.Services/JavaScriptConverter.cs
  38 +Microsoft.Web.Services/JavaScriptObjectDeserializer.cs
  39 +Microsoft.Web.Services/ScriptHandlerFactory.cs
  40 +Microsoft.Web.Services/ScriptModule.cs
  41 +Microsoft.Web.Services.Converters/DateTimeConverter.cs
  42 +Microsoft.Web.UI/ActivationType.cs
  43 +Microsoft.Web.UI/Button.cs
  44 +Microsoft.Web.UI/ClickBehavior.cs
  45 +Microsoft.Web.UI/DataSourceDropTarget.cs
  46 +Microsoft.Web.UI/DragDropList.cs
  47 +Microsoft.Web.UI/DraggableListItem.cs
  48 +Microsoft.Web.UI/DragMode.cs
  49 +Microsoft.Web.UI/Filter.cs
  50 +Microsoft.Web.UI/FloatingBehavior.cs
  51 +Microsoft.Web.UI/HoverBehavior.cs
  52 +Microsoft.Web.UI/Label.cs
  53 +Microsoft.Web.UI/ListView.cs
  54 +Microsoft.Web.UI/MapStyle.cs
  55 +Microsoft.Web.UI/Option.cs
  56 +Microsoft.Web.UI/PositioningMode.cs
  57 +Microsoft.Web.UI/PropertyFilter.cs
  58 +Microsoft.Web.UI/Script.cs
  59 +Microsoft.Web.UI/ScriptManager.cs
  60 +Microsoft.Web.UI/TextBox.cs
25 class/Microsoft.Web.Atlas/Microsoft.Web.Atlas_test.dll.sources
... ... @@ -0,0 +1,25 @@
  1 +Microsoft.Web/ActionTest.cs
  2 +Microsoft.Web/BindingTest.cs
  3 +Microsoft.Web/GenericScriptComponentTest.cs
  4 +Microsoft.Web/InvokeMethodActionTest.cs
  5 +Microsoft.Web/SetPropertyActionTest.cs
  6 +Microsoft.Web/ScriptComponentBaseTest.cs
  7 +Microsoft.Web/ScriptControlTest.cs
  8 +Microsoft.Web/ScriptEventDescriptorTest.cs
  9 +Microsoft.Web/ScriptEventTest.cs
  10 +Microsoft.Web/ScriptMethodDescriptorTest.cs
  11 +Microsoft.Web/ScriptPropertyDescriptorTest.cs
  12 +Microsoft.Web/ScriptTypeDescriptorTest.cs
  13 +Microsoft.Web.Services/JavaScriptConverterTest.cs
  14 +Microsoft.Web.Services.Converters/DateTimeConverterTest.cs
  15 +Microsoft.Web.UI/ClickBehaviorTest.cs
  16 +Microsoft.Web.UI/DragDropListTest.cs
  17 +Microsoft.Web.UI/DraggableListItemTest.cs
  18 +Microsoft.Web.UI/DataSourceDropTargetTest.cs
  19 +Microsoft.Web.UI/FloatingBehaviorTest.cs
  20 +Microsoft.Web.UI/HoverBehaviorTest.cs
  21 +Microsoft.Web.UI/LabelTest.cs
  22 +Microsoft.Web.UI/ListViewTest.cs
  23 +Microsoft.Web.UI/OptionTest.cs
  24 +Microsoft.Web.UI/PropertyFilterTest.cs
  25 +Microsoft.Web.UI/TextBoxTest.cs
83 class/Microsoft.Web.Atlas/Microsoft.Web.Services.Converters/DateTimeConverter.cs
... ... @@ -0,0 +1,83 @@
  1 +//
  2 +// Microsoft.Web.Services.Converters.DateTimeConverter
  3 +//
  4 +// Author:
  5 +// Chris Toshok (toshok@ximian.com)
  6 +//
  7 +//
  8 +// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
  9 +//
  10 +// Permission is hereby granted, free of charge, to any person obtaining
  11 +// a copy of this software and associated documentation files (the
  12 +// "Software"), to deal in the Software without restriction, including
  13 +// without limitation the rights to use, copy, modify, merge, publish,
  14 +// distribute, sublicense, and/or sell copies of the Software, and to
  15 +// permit persons to whom the Software is furnished to do so, subject to
  16 +// the following conditions:
  17 +//
  18 +// The above copyright notice and this permission notice shall be
  19 +// included in all copies or substantial portions of the Software.
  20 +//
  21 +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22 +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23 +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24 +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25 +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26 +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27 +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28 +//
  29 +
  30 +#if NET_2_0
  31 +
  32 +using System;
  33 +using System.Web;
  34 +using Microsoft.Web.Services;
  35 +
  36 +namespace Microsoft.Web.Services.Converters
  37 +{
  38 + public class DateTimeConverter : JavaScriptConverter
  39 + {
  40 + public DateTimeConverter ()
  41 + {
  42 + }
  43 +
  44 + public override object Deserialize (string s, Type t)
  45 + {
  46 + return JavaScriptObjectDeserializer.Deserialize (s, t);
  47 + }
  48 +
  49 + protected override string GetClientTypeName (Type serverType)
  50 + {
  51 + return "Date";
  52 + }
  53 +
  54 + protected override void Initialize ()
  55 + {
  56 + }
  57 +
  58 + public override string Serialize (object o)
  59 + {
  60 + if (o == null || o.GetType () != typeof (DateTime))
  61 + throw new ArgumentException ("Value does not fall within the expected range.");
  62 +
  63 + DateTime dt = (DateTime)o;
  64 +
  65 + return String.Format ("new Date({0},{1},{2},{3},{4},{5})",
  66 + dt.Year, dt.Month - 1, dt.Day, dt.Hour, dt.Minute, dt.Second);
  67 + }
  68 +
  69 + Type[] supportedTypes;
  70 + protected override Type[] SupportedTypes {
  71 + get {
  72 + if (supportedTypes == null) {
  73 + supportedTypes = new Type[1];
  74 + supportedTypes[0] = typeof (DateTime);
  75 + }
  76 +
  77 + return supportedTypes;
  78 + }
  79 + }
  80 + }
  81 +}
  82 +
  83 +#endif
96 class/Microsoft.Web.Atlas/Microsoft.Web.Services/JavaScriptConverter.cs
... ... @@ -0,0 +1,96 @@
  1 +//
  2 +// Microsoft.Web.Services.JavaScriptConverter
  3 +//
  4 +// Author:
  5 +// Chris Toshok (toshok@ximian.com)
  6 +//
  7 +//
  8 +// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
  9 +//
  10 +// Permission is hereby granted, free of charge, to any person obtaining
  11 +// a copy of this software and associated documentation files (the
  12 +// "Software"), to deal in the Software without restriction, including
  13 +// without limitation the rights to use, copy, modify, merge, publish,
  14 +// distribute, sublicense, and/or sell copies of the Software, and to
  15 +// permit persons to whom the Software is furnished to do so, subject to
  16 +// the following conditions:
  17 +//
  18 +// The above copyright notice and this permission notice shall be
  19 +// included in all copies or substantial portions of the Software.
  20 +//
  21 +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22 +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23 +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24 +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25 +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26 +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27 +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28 +//
  29 +
  30 +#if NET_2_0
  31 +
  32 +using System;
  33 +using System.Web;
  34 +
  35 +namespace Microsoft.Web.Services
  36 +{
  37 + public abstract class JavaScriptConverter
  38 + {
  39 + protected JavaScriptConverter ()
  40 + {
  41 + }
  42 +
  43 + public virtual object Deserialize (string s, Type t)
  44 + {
  45 + return null;
  46 + }
  47 +
  48 + public object Deserialize (string s)
  49 + {
  50 + return Deserialize (s, null);
  51 + }
  52 +
  53 + protected virtual string GetClientTypeName (Type serverType)
  54 + {
  55 + return null;
  56 + }
  57 +
  58 + internal static JavaScriptConverter GetConverter (Type t)
  59 + {
  60 + return null;
  61 + }
  62 +
  63 + public static string GetConverterScript (Type t)
  64 + {
  65 + return null;
  66 + }
  67 +
  68 + protected virtual void Initialize ()
  69 + {
  70 + }
  71 +
  72 + protected void RegisterJavaScript (string javascript)
  73 + {
  74 + }
  75 +
  76 + public virtual string Serialize (object o)
  77 + {
  78 + return null;
  79 + }
  80 +
  81 + public string JavaScript {
  82 + get {
  83 + return null;
  84 + }
  85 +
  86 + }
  87 +
  88 + protected virtual Type[] SupportedTypes {
  89 + get {
  90 + return null;
  91 + }
  92 + }
  93 + }
  94 +}
  95 +
  96 +#endif
56 class/Microsoft.Web.Atlas/Microsoft.Web.Services/JavaScriptObjectDeserializer.cs
... ... @@ -0,0 +1,56 @@
  1 +//
  2 +// Microsoft.Web.Services.JavaScriptObjectDeserializer
  3 +//
  4 +// Author:
  5 +// Chris Toshok (toshok@ximian.com)
  6 +//
  7 +//
  8 +// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
  9 +//
  10 +// Permission is hereby granted, free of charge, to any person obtaining
  11 +// a copy of this software and associated documentation files (the
  12 +// "Software"), to deal in the Software without restriction, including
  13 +// without limitation the rights to use, copy, modify, merge, publish,
  14 +// distribute, sublicense, and/or sell copies of the Software, and to
  15 +// permit persons to whom the Software is furnished to do so, subject to
  16 +// the following conditions:
  17 +//
  18 +// The above copyright notice and this permission notice shall be
  19 +// included in all copies or substantial portions of the Software.
  20 +//
  21 +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22 +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23 +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24 +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25 +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26 +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27 +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28 +//
  29 +
  30 +#if NET_2_0
  31 +
  32 +using System;
  33 +using System.Web;
  34 +
  35 +namespace Microsoft.Web.Services
  36 +{
  37 + public class JavaScriptObjectDeserializer
  38 + {
  39 + public static object Deserialize (string input, Type t)
  40 + {
  41 + return null;
  42 + }
  43 +
  44 + public static object Deserialize (string input)
  45 + {
  46 + return null;
  47 + }
  48 +
  49 + public static bool IsClientInstantiatableType (Type t)
  50 + {
  51 + return false;
  52 + }
  53 + }
  54 +}
  55 +
  56 +#endif
112 class/Microsoft.Web.Atlas/Microsoft.Web.Services/ScriptHandlerFactory.cs
... ... @@ -0,0 +1,112 @@
  1 +//
  2 +// Microsoft.Web.Services.ScriptHandlerFactory
  3 +//
  4 +// Author:
  5 +// Chris Toshok (toshok@ximian.com)
  6 +//
  7 +//
  8 +// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
  9 +//
  10 +// Permission is hereby granted, free of charge, to any person obtaining
  11 +// a copy of this software and associated documentation files (the
  12 +// "Software"), to deal in the Software without restriction, including
  13 +// without limitation the rights to use, copy, modify, merge, publish,
  14 +// distribute, sublicense, and/or sell copies of the Software, and to
  15 +// permit persons to whom the Software is furnished to do so, subject to
  16 +// the following conditions:
  17 +//
  18 +// The above copyright notice and this permission notice shall be
  19 +// included in all copies or substantial portions of the Software.
  20 +//
  21 +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22 +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23 +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24 +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25 +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26 +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27 +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28 +//
  29 +
  30 +#if NET_2_0
  31 +
  32 +using System;
  33 +using System.IO;
  34 +using System.Web;
  35 +using System.Web.UI;
  36 +using System.Reflection;
  37 +using System.Web.Services;
  38 +using System.Web.Services.Protocols;
  39 +
  40 +namespace Microsoft.Web.Services
  41 +{
  42 + class JSProxyGenerator : IHttpHandler
  43 + {
  44 + Type type;
  45 + string virtualPath;
  46 +
  47 + public JSProxyGenerator (Type type, string virtualPath)
  48 + {
  49 + this.type = type;
  50 + this.virtualPath = virtualPath;
  51 + }
  52 +
  53 + public bool IsReusable {
  54 + get {
  55 + return false;
  56 + }
  57 + }
  58 +
  59 + public void ProcessRequest (HttpContext context)
  60 + {
  61 + TextWriter output = context.Response.Output;
  62 +
  63 + output.Write (String.Format ("Type.registerNamespace('{0}'); ", type.Namespace));
  64 + output.Write (String.Format (@"{0} = {{ path: ""{1}""", type.FullName, virtualPath));
  65 +
  66 + foreach (MethodInfo m in type.GetMethods()) {
  67 + object[] attrs = m.GetCustomAttributes (typeof (WebMethodAttribute), false);
  68 + if (m.IsPublic && attrs != null && attrs.Length > 0) {
  69 + /* it's a webmethod, output it */
  70 + output.Write (", {0}:function (", m.Name);
  71 + foreach (ParameterInfo p in m.GetParameters()) {
  72 + output.Write (p.Name + ",");
  73 + }
  74 + output.Write (String.Format (" onMethodComplete, onMethodTimeout) {{ return Web.Net.ServiceMethodRequest.callMethod(this.path, \"{0}\", {{", m.Name));
  75 + foreach (ParameterInfo p in m.GetParameters()) {
  76 + output.Write ("{0}:{0}", p.Name);
  77 + }
  78 + output.Write ("}, onMethodComplete,onMethodTimeout); } }");
  79 + }
  80 + }
  81 + }
  82 + }
  83 +
  84 + public class ScriptHandlerFactory : IHttpHandlerFactory
  85 + {
  86 + WebServiceHandlerFactory fallback;
  87 +
  88 + public ScriptHandlerFactory ()
  89 + {
  90 + fallback = new WebServiceHandlerFactory();
  91 + }
  92 +
  93 + public virtual IHttpHandler GetHandler (HttpContext context, string requestType, string virtualPath, string path)
  94 + {
  95 + if (context.Request.PathInfo == "/js") {
  96 + Type type = WebServiceParser.GetCompiledType (path, context);
  97 +
  98 + return new JSProxyGenerator (type, virtualPath);
  99 + }
  100 + else {
  101 + return fallback.GetHandler (context, requestType, virtualPath, path);
  102 + }
  103 +
  104 + }
  105 +
  106 + public virtual void ReleaseHandler (IHttpHandler handler)
  107 + {
  108 + }
  109 + }
  110 +}
  111 +
  112 +#endif
56 class/Microsoft.Web.Atlas/Microsoft.Web.Services/ScriptModule.cs
... ... @@ -0,0 +1,56 @@
  1 +//
  2 +// Microsoft.Web.Services.ScriptModule
  3 +//
  4 +// Author:
  5 +// Chris Toshok (toshok@ximian.com)
  6 +//
  7 +//
  8 +// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
  9 +//
  10 +// Permission is hereby granted, free of charge, to any person obtaining
  11 +// a copy of this software and associated documentation files (the
  12 +// "Software"), to deal in the Software without restriction, including
  13 +// without limitation the rights to use, copy, modify, merge, publish,
  14 +// distribute, sublicense, and/or sell copies of the Software, and to
  15 +// permit persons to whom the Software is furnished to do so, subject to
  16 +// the following conditions:
  17 +//
  18 +// The above copyright notice and this permission notice shall be
  19 +// included in all copies or substantial portions of the Software.
  20 +//
  21 +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22 +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23 +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24 +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25 +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26 +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27 +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28 +//
  29 +
  30 +#if NET_2_0
  31 +
  32 +using System;
  33 +using System.Web;
  34 +
  35 +namespace Microsoft.Web.Services
  36 +{
  37 + public class ScriptModule : IHttpModule
  38 + {
  39 + public ScriptModule ()
  40 + {
  41 + Console.WriteLine ("in ScriptModule..ctor");
  42 + }
  43 +
  44 + void IHttpModule.Dispose()
  45 + {
  46 + Console.WriteLine ("in ScriptModule.Dispose");
  47 + }
  48 +
  49 + void IHttpModule.Init (HttpApplication context)
  50 + {
  51 + Console.WriteLine ("in ScriptModult.Init");
  52 + }
  53 + }
  54 +}
  55 +
  56 +#endif
42 class/Microsoft.Web.Atlas/Microsoft.Web.UI/ActivationType.cs
... ... @@ -0,0 +1,42 @@
  1 +//
  2 +// Microsoft.Web.UI.ActivationType
  3 +//
  4 +// Author:
  5 +// Chris Toshok (toshok@ximian.com)
  6 +//
  7 +//
  8 +// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
  9 +//
  10 +// Permission is hereby granted, free of charge, to any person obtaining
  11 +// a copy of this software and associated documentation files (the
  12 +// "Software"), to deal in the Software without restriction, including
  13 +// without limitation the rights to use, copy, modify, merge, publish,
  14 +// distribute, sublicense, and/or sell copies of the Software, and to
  15 +// permit persons to whom the Software is furnished to do so, subject to
  16 +// the following conditions:
  17 +//
  18 +// The above copyright notice and this permission notice shall be
  19 +// included in all copies or substantial portions of the Software.
  20 +//
  21 +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22 +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23 +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24 +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  25 +// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  26 +// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  27 +// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  28 +//
  29 +
  30 +#if NET_2_0
  31 +
  32 +namespace Microsoft.Web.UI
  33 +{
  34 + public enum ActivationType
  35 + {
  36 + Click,
  37 + Hover,
  38 + None
  39 + }
  40 +}
  41 +
  42 +#endif
88 class/Microsoft.Web.Atlas/Microsoft.Web.UI/Button.cs
... ... @@ -0,0 +1,88 @@
  1 +//
  2 +// Microsoft.Web.UI.Button
  3 +//
  4 +// Author:
  5 +// Chris Toshok (toshok@ximian.com)
  6 +//
  7 +//
  8 +// Copyright (C) 2005 Novell, Inc (http://www.novell.com)
  9 +//
  10 +// Permission is hereby granted, free of charge, to any person obtaining
  11 +// a copy of this software and associated documentation files (the
  12 +// "Software"), to deal in the Software without restriction, including
  13 +// without limitation the rights to use, copy, modify, merge, publish,
  14 +// distribute, sublicense, and/or sell copies of the Software, and to
  15 +// permit persons to whom the Software is furnished to do so, subject to
  16 +// the following conditions:
  17 +//
  18 +// The above copyright notice and this permission notice shall be
  19 +// included in all copies or substantial portions of the Software.
  20 +//
  21 +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  22 +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  23 +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  24 +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COP