| <!-- --> |
| <!-- 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" /> |
| |
| <!-- IE8, IE9 do not support typed arrays --> |
| <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="ie8"/> |
| <when-property-is name="user.agent" value="ie9"/> |
| </any> |
| </replace-with> |
| |
| <!-- Older versions of WebKit, IE10 support DataView but not Uint8ClampedArray --> |
| <!-- TODO: Safari 5.1 does not support Float64Array --> |
| <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"/> |
| <when-property-is name="user.agent" value="ie10"/> |
| </any> |
| </replace-with> |
| |
| <!-- IE11 and Firefox support typed arrays --> |
| <!-- TODO: Chrome 27+, Safari 5.1+, Android 4.0+ have full support --> |
| <replace-with class="com.google.gwt.typedarrays.client.NativeImplFull"> |
| <when-type-is class="com.google.gwt.typedarrays.client.NativeImpl"/> |
| </replace-with> |
| </module> |
| |