<module>
    <!-- This GWT module defines the browser specific overrides used by Vaadin -->

    <!-- Hint for WidgetSetBuilder not to automatically update the file -->
    <!-- WS Compiler: manually edited -->

    <!-- Fall through to this rule for everything but IE -->
    <replace-with
        class="com.vaadin.client.ui.upload.UploadIFrameOnloadStrategy">
        <when-type-is
            class="com.vaadin.client.ui.upload.UploadIFrameOnloadStrategy" />
    </replace-with>

    <replace-with
        class="com.vaadin.client.ui.upload.UploadIFrameOnloadStrategyIE">
        <when-type-is
            class="com.vaadin.client.ui.upload.UploadIFrameOnloadStrategy" />
        <any>
            <when-property-is name="user.agent" value="ie8" />
        </any>
    </replace-with>

    <!-- Fall through to this rule for everything but IE -->
    <replace-with class="com.vaadin.client.ui.VDragAndDropWrapper">
        <when-type-is class="com.vaadin.client.ui.VDragAndDropWrapper" />
    </replace-with>

    <replace-with class="com.vaadin.client.ui.VDragAndDropWrapperIE">
        <when-type-is class="com.vaadin.client.ui.VDragAndDropWrapper" />
        <any>
            <when-property-is name="user.agent" value="ie8" />
        </any>
    </replace-with>

    <!-- Fall through to this rule for everything but IE -->
    <replace-with class="com.vaadin.client.LayoutManager">
        <when-type-is class="com.vaadin.client.LayoutManager" />
    </replace-with>

    <replace-with class="com.vaadin.client.LayoutManagerIE8">
        <when-type-is class="com.vaadin.client.LayoutManager" />
        <any>
            <when-property-is name="user.agent" value="ie8" />
        </any>
    </replace-with>

    <replace-with class="com.vaadin.client.ui.VPopupImpl">
        <when-type-is
            class="com.google.gwt.user.client.ui.impl.PopupImplMozilla" />
        <when-property-is name="user.agent" value="gecko1_8" />
    </replace-with>

    <replace-with class="com.vaadin.client.ui.VPopupImpl">
        <when-type-is class="com.google.gwt.user.client.ui.impl.PopupImpl" />
    </replace-with>

</module>
