Fix the issue Browser freeze when dragging the page and rotate the phone at the same times

When drag event is cancelled, the tab removing isn't needed. Or if it is the last one, browser will be closed and windows manager may be ANR.

Change-Id: Ia786d98727cecbe303cf9d153a471fd4a165b797
Author: Weiwei Ji <weiweix.ji@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 30621
Tombstone in com.android.browser at /system/libhwui.so

remove the Subwindow container first.

Change-Id: Ie561a1640661ab59213facc5afc3ea98fa96846d
Author: Yijun Zhu <yijunx.zhu@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 42566
Browser hang when playing video in popup window

The function "onShowCustomView" in WebChromeClient of subwebview is
not implemented, and makes the fullscreen layout can't be set. Here
we call main webview's onShowCustomView.

Change-Id: I576e017be61bca0775b5cc897f35092a63c6dca7
Author: weiweix.ji <weiweix.ji@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 51736
Browser freezes when adding new incognito tab after removing it

When do layout, the position of new tab may be changed since other tab
closed, we need to get the position again at the time.

Change-Id: Ia5bcc15a0074678f401d6b3e93026e5ef5d2af7d
Author: weiweix.ji <weiweix.ji@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 66643
Fix Biggest Memory leaks on Browser application

Working on Issue 31125 (http://code.google.com/p/android/issues/detail?id=31125):
* Enhance bitmap management (add recycle() functions when necessary)
* Enhance mTabViews management on NavScreen class (add remove() function
  when necessary).

Change-Id: I544620484f4ad52e02e4d3f4336a1f007bbdc8fb
Author: Sebastien MICHEL <sebastien.michel@intel.com
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 56189
TOMBSTONE in com.android.browser (- android_atomic_inc+11)

there are race condition in save history webpage, at the same time,
browser destory the tab and webview, so we synchronized the tab to
resolve conflict.

Change-Id: Ib30a1215023542440e39251e8e0cd587db0ee11e
Author: binx.xu <binx.xu@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 62273
Connection to RTSP is failing.

Add a new feature to support rtsp type

Change-Id: Ib44b1974ee0d14aeafcfe49ea72b04f713bf0320
Author: bxu10X <bxu10X@intel.com>
Signed-off-by: Xiaokang Qin <xiaokang.qin@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 18856
Update Spanish translation - by Core720