You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Vaadin.gwt.xml 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 2.8.2//EN" "http://www.gwtproject.org/doctype/2.8.2/gwt-module.dtd">
  3. <module>
  4. <!-- This GWT module inherits all Vaadin client side functionality modules.
  5. This is the module you want to inherit in your client side project to be
  6. able to use com.vaadin.* classes. -->
  7. <!-- Hint for WidgetSetBuilder not to automatically update the file -->
  8. <!-- WS Compiler: manually edited -->
  9. <inherits name="com.google.gwt.user.User" />
  10. <inherits name="com.google.gwt.http.HTTP" />
  11. <inherits name="com.google.gwt.logging.Logging" />
  12. <set-property name="gwt.logging.enabled" value="TRUE" />
  13. <source path="client" />
  14. <source path="shared" />
  15. <!-- Use own Scheduler implementation to be able to track if commands
  16. are running -->
  17. <replace-with class="com.vaadin.client.VSchedulerImpl">
  18. <when-type-is class="com.google.gwt.core.client.impl.SchedulerImpl" />
  19. </replace-with>
  20. <replace-with
  21. class="com.vaadin.client.communication.AtmospherePushConnection">
  22. <when-type-is class="com.vaadin.client.communication.PushConnection" />
  23. </replace-with>
  24. <!-- Set vaadin.profiler to true to include profiling support in the
  25. module -->
  26. <define-property name="vaadin.profiler" values="true,false" />
  27. <set-property name="vaadin.profiler" value="false" />
  28. <replace-with class="com.vaadin.client.Profiler.EnabledProfiler">
  29. <when-type-is class="com.vaadin.client.Profiler" />
  30. <when-property-is name="vaadin.profiler" value="true" />
  31. </replace-with>
  32. <!-- Use the new cross site linker to get a nocache.js without document.write -->
  33. <add-linker name="xsiframe" />
  34. <set-property name="user.agent" value="gecko1_8,safari" />
  35. <!-- Pointer event support -->
  36. <define-property name="modernie" values="none,yes" />
  37. <property-provider name="modernie"><![CDATA[
  38. {
  39. var ua = $wnd.navigator.userAgent;
  40. if (ua.indexOf('MSIE') == -1 && ua.indexOf('Trident') != -1) { return 'yes'; }
  41. return 'none';
  42. }
  43. ]]></property-provider>
  44. <set-property name="modernie" value="none">
  45. <none>
  46. <when-property-is name="user.agent" value="gecko1_8" />
  47. </none>
  48. </set-property>
  49. <!-- If no proper user agent is found, at least try some, e.g. with crawlers -->
  50. <set-property-fallback name="user.agent" value="safari" />
  51. <!-- Fall through to this rule when the browser doesn't support pointer
  52. event -->
  53. <replace-with class="com.vaadin.client.event.PointerEventSupportImpl">
  54. <when-type-is class="com.vaadin.client.event.PointerEventSupportImpl" />
  55. </replace-with>
  56. <replace-with
  57. class="com.vaadin.client.event.PointerEventSupportImplModernIE">
  58. <when-type-is class="com.vaadin.client.event.PointerEventSupportImpl" />
  59. <none>
  60. <when-property-is value="none" name="modernie" />
  61. </none>
  62. </replace-with>
  63. <replace-with
  64. class="com.vaadin.client.communication.DefaultConnectionStateHandler">
  65. <when-type-is
  66. class="com.vaadin.client.communication.ConnectionStateHandler" />
  67. </replace-with>
  68. <!-- Make Sass linking available -->
  69. <define-linker name="sass"
  70. class="com.vaadin.sass.linker.SassLinker" />
  71. </module>