blob: 4f02b3403efeac5cc5d1ce6daec6f5074fc5506b [file] [log] [blame]
<!-- -->
<!-- Copyright 2012 Google Inc. -->
<!-- Licensed under the Apache License, Version 2.0 (the "License"); you -->
<!-- may not use this file except in compliance with the License. You may -->
<!-- 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. License for the specific language governing permissions and -->
<!-- limitations under the License. -->
<!-- Support for typed arrays. -->
<module>
<inherits name="com.google.gwt.core.Core" />
<inherits name="com.google.gwt.useragent.UserAgent"/>
<source path="client" />
<source path="shared" />
<super-source path="super" />
<public path="public" />
<!-- IE10+ will support typed arrays, but not before then -->
<replace-with class="com.google.gwt.typedarrays.client.NoSupportImpl">
<when-type-is class="com.google.gwt.typedarrays.client.NativeImpl"/>
<any>
<when-property-is name="user.agent" value="ie6"/>
<when-property-is name="user.agent" value="ie8"/>
<when-property-is name="user.agent" value="ie9"/>
<when-property-is name="user.agent" value="ie10"/>
</any>
</replace-with>
<!-- WebKit support DataView but not Uint8ClampedArray -->
<replace-with class="com.google.gwt.typedarrays.client.NativeImplEmulClamped">
<when-type-is class="com.google.gwt.typedarrays.client.NativeImpl"/>
<any>
<when-property-is name="user.agent" value="safari"/>
</any>
</replace-with>
<!-- FireFox supports Uint8ClampedArray but not DataView -->
<replace-with class="com.google.gwt.typedarrays.client.NativeImplEmulDataView">
<when-type-is class="com.google.gwt.typedarrays.client.NativeImpl"/>
<any>
<when-property-is name="user.agent" value="gecko1_8"/>
</any>
</replace-with>
<!-- IE10 or future FF/WebKit may go here -->
<replace-with class="com.google.gwt.typedarrays.client.NativeImplFull">
<when-type-is class="com.google.gwt.typedarrays.client.NativeImpl"/>
<any>
</any>
</replace-with>
<!-- TODO: other optimized versions? -->
</module>