]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merge remote-tracking branch 'origin/6.8'
authorArtur Signell <artur@vaadin.com>
Tue, 20 Dec 2011 10:46:57 +0000 (12:46 +0200)
committerArtur Signell <artur@vaadin.com>
Tue, 20 Dec 2011 10:46:57 +0000 (12:46 +0200)
1  2 
src/com/vaadin/terminal/gwt/DefaultWidgetSet.gwt.xml
src/com/vaadin/terminal/gwt/client/ApplicationConfiguration.java
src/com/vaadin/terminal/gwt/client/ui/VTextField.java
src/com/vaadin/terminal/gwt/client/ui/VWindow.java
src/com/vaadin/terminal/gwt/server/WebBrowser.java
src/com/vaadin/ui/AbstractTextField.java

index a3245830f9fd266d03268d06e6e93d37daef0dec,7844ccecf1cfb7e2a50a937ef8a16ff4fd0caa20..9bc05dee2eaabe1e19b6631af53966a622ee35ba
        <replace-with class="com.vaadin.terminal.gwt.client.VSchedulerImpl">
                <when-type-is class="com.google.gwt.core.client.impl.SchedulerImpl" />
        </replace-with>
+       
+       <replace-with class="com.vaadin.terminal.gwt.client.VDebugConsole">
+               <when-type-is class="com.vaadin.terminal.gwt.client.Console" />
+       </replace-with>
  
 -      <!-- Use our own history impl for IE to workaround #2931. -->
 -      <replace-with class="com.vaadin.terminal.gwt.client.HistoryImplIEVaadin">
 -              <when-type-is class="com.google.gwt.user.client.impl.HistoryImpl" />
 -              <when-property-is name="user.agent" value="ie6" />
 -      </replace-with>
 -
        <generate-with
 -              class="com.vaadin.terminal.gwt.widgetsetutils.EagerWidgetMapGenerator">
 +              class="com.vaadin.terminal.gwt.widgetsetutils.WidgetMapGenerator">
                <when-type-is class="com.vaadin.terminal.gwt.client.WidgetMap" />
        </generate-with>
  
index 51a620cf278319390e7d245626a2dbd321d392b8,fce5b4206c671e57d37f264aa31fd1cd573be7bb..f4f3643169871cf34df9b2a8fbd2d4d42c8813e9
@@@ -523,14 -438,18 +523,14 @@@ public class ApplicationConfiguration i
              return communicationFree < FREE_LIMIT;
          }
      }
 -    
 +
      private static DeferredWidgetLoader deferredWidgetLoader;
 -   
 +
      public void onModuleLoad() {
  
 -        // Enable IE6 Background image caching
 -        if (BrowserInfo.get().isIE6()) {
 -            enableIE6BackgroundImageCache();
 -        }
          // Prepare VConsole for debugging
          if (isDebugMode()) {
-             VDebugConsole console = GWT.create(VDebugConsole.class);
+             Console console = GWT.create(Console.class);
              console.setQuietMode(isQuietDebugMode());
              console.init();
              VConsole.setImplementation(console);
index 8257bfae87edccdbe82e570f2dfaa4517fb82d74,cb83d93a72afc124907311e50e04fc021878a4a2..0a743fcf96882ae014a430dfe02a7160a30fd87f
@@@ -394,35 -430,6 +426,36 @@@ public class WebBrowser implements Term
              browserDetails = new VBrowserDetails(agent);
          }
  
-                     request.getParameter("sh"), request.getParameter("tzo"),
 +        if (request.getParameter("sw") != null) {
 +            updateClientSideDetails(request.getParameter("sw"),
++                    request.getParameter("sh"), request.getParameter("cw"),
++                    request.getParameter("ch"), request.getParameter("tzo"),
 +                    request.getParameter("rtzo"), request.getParameter("dstd"),
 +                    request.getParameter("dston"),
 +                    request.getParameter("curdate"),
 +                    request.getParameter("td") != null);
 +        }
 +    }
 +
 +    /**
 +     * Checks if the browser is so old that it simply won't work with a Vaadin
 +     * application. Can be used to redirect to an alternative page, show
 +     * alternative content or similar.
 +     * 
 +     * When this method returns true chances are very high that the browser
 +     * won't work and it does not make sense to direct the user to the Vaadin
 +     * application.
 +     * 
 +     * @return true if the browser won't work, false if not the browser is
 +     *         supported or might work
 +     */
 +    public boolean isTooOldToFunctionProperly() {
 +        if (browserDetails == null) {
 +            // Don't know, so assume it will work
 +            return false;
 +        }
 +
 +        return browserDetails.isTooOldToFunctionProperly();
      }
  
  }