Ejemplo n.º 1
0
 private void handleLinkFavicon(final JSONObject message) throws JSONException {
   if (mContentDelegate != null) {
     int id = message.getInt("tabID");
     mContentDelegate.onReceivedFavicon(
         GeckoView.this, new Browser(id), message.getString("href"), message.getInt("size"));
   }
 }
Ejemplo n.º 2
0
 private void handleStateChange(final JSONObject message) throws JSONException {
   int state = message.getInt("state");
   if ((state & GeckoAppShell.WPL_STATE_IS_NETWORK) != 0) {
     if ((state & GeckoAppShell.WPL_STATE_START) != 0) {
       if (mContentDelegate != null) {
         int id = message.getInt("tabID");
         mContentDelegate.onPageStart(this, new Browser(id), message.getString("uri"));
       }
     } else if ((state & GeckoAppShell.WPL_STATE_STOP) != 0) {
       if (mContentDelegate != null) {
         int id = message.getInt("tabID");
         mContentDelegate.onPageStop(this, new Browser(id), message.getBoolean("success"));
       }
     }
   }
 }
Ejemplo n.º 3
0
 private void handleTitleChanged(final JSONObject message) throws JSONException {
   if (mContentDelegate != null) {
     int id = message.getInt("tabID");
     mContentDelegate.onReceivedTitle(GeckoView.this, new Browser(id), message.getString("title"));
   }
 }
Ejemplo n.º 4
0
 private void handlePageShow(final JSONObject message) throws JSONException {
   if (mContentDelegate != null) {
     int id = message.getInt("tabID");
     mContentDelegate.onPageShow(GeckoView.this, new Browser(id));
   }
 }