예제 #1
0
 public void windowForwardAnalytics(EBrowserWindow curWind, EBrowserWindow nextWind) {
   if (!EBrowserActivity.analytics) {
     return;
   }
   String beEndUrl = curWind.getRelativeUrl();
   String beShowUrl = nextWind.getRelativeUrl();
   Map<String, EBrowserView> showPopTable = nextWind.getAllPopOver();
   int showSize = showPopTable.size();
   String[] beShowPopupUrls = new String[showSize];
   if (showSize > 0) {
     Set<Entry<String, EBrowserView>> set = showPopTable.entrySet();
     int counter = 0;
     for (Map.Entry<String, EBrowserView> enry : set) {
       EBrowserView temp = enry.getValue();
       String url = temp.getRelativeUrl();
       beShowPopupUrls[counter] = url;
       counter++;
     }
   }
   Map<String, EBrowserView> endPopTable = curWind.getAllPopOver();
   int endSize = endPopTable.size();
   String[] beEndPopupUrls = new String[endSize];
   if (endSize > 0) {
     Set<Entry<String, EBrowserView>> set = endPopTable.entrySet();
     int counter = 0;
     for (Map.Entry<String, EBrowserView> enry : set) {
       EBrowserView temp = enry.getValue();
       String url = temp.getRelativeUrl();
       beEndPopupUrls[counter] = url;
       counter++;
     }
   }
   mApp.disPatchWindowForward(beEndUrl, beShowUrl, beEndPopupUrls, beShowPopupUrls);
 }
예제 #2
0
 public void onAppPauseAnalytics(String beEndUrl, Map<String, EBrowserView> beEndPops) {
   if (!EBrowserActivity.analytics) {
     return;
   }
   int endSize = beEndPops.size();
   String[] beEndPopupUrls = new String[endSize];
   Set<Entry<String, EBrowserView>> set = beEndPops.entrySet();
   int counter = 0;
   for (Map.Entry<String, EBrowserView> enry : set) {
     EBrowserView temp = enry.getValue();
     String url = temp.getRelativeUrl();
     beEndPopupUrls[counter] = url;
     counter++;
   }
   mApp.disPatchAppPause(beEndUrl, null, beEndPopupUrls);
 }
예제 #3
0
 public void windowOpenAnalytics(EBrowserWindow preWind, EBrwViewEntry entry) {
   if (!EBrowserActivity.analytics) {
     return;
   }
   String beEndUrl = preWind.getRelativeUrl();
   String beShowUrl = entry.mRelativeUrl;
   Map<String, EBrowserView> endPopTable = preWind.getAllPopOver();
   int size = endPopTable.size();
   String[] beEndPopupUrls = new String[size];
   if (size > 0) {
     Set<Entry<String, EBrowserView>> set = endPopTable.entrySet();
     int counter = 0;
     for (Map.Entry<String, EBrowserView> enry : set) {
       EBrowserView temp = enry.getValue();
       String url = temp.getRelativeUrl();
       beEndPopupUrls[counter] = url;
       counter++;
     }
   }
   mApp.disPatchWindowOpen(beEndUrl, beShowUrl, beEndPopupUrls);
 }