Attempt at fixing unexpected detach/move of tabs. Since the tab dragging code uses the cursor position rather than coordinates passed in the event it means if we get a little behind we can process at the wrong place. I suspect this is what is causing the unexpected detach/move folks are reporting.
Attempt at fixing unexpected detach/move of tabs. Since the tab
dragging code uses the cursor position rather than coordinates passed
in the event it means if we get a little behind we can process at the
wrong place. I suspect this is what is causing the unexpected
detach/move folks are reporting.

The change it to use the coordinates from the event. This proves a bit
tricky since coordinates are 16 bit and it's easy to trigger
overflow. I'm moving the position we move the window to from 0xffff to
0x3fff. This should still be off screen and hopefully not cause
overflow problems.

BUG=146925
TEST=see bug, but very tricky to reproduce.
R=ben@chromium.org


Review URL: https://chromiumcodereview.appspot.com/11442019

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@171610 0039d316-1c4b-4281-b951-d872f2087c98

crosswalk-project/chromium-crosswalk-efl,chuan9/chromium-crosswalk,Jonekee/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,bright-sparks/chromium-spacewalk,krieger-od/nwjs_chromium.src,TheTypoMaster/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Just-D/chromium-1,M4sse/chromium.src,littlstar/chromium.src,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,littlstar/chromium.src,jaruba/chromium.src,jaruba/chromium.src,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,zcbenz/cefode-chromium,ltilve/chromium,Chilledheart/chromium,dednal/chromium.src,chuan9/chromium-crosswalk,jaruba/chromium.src,mogoweb/chromium-crosswalk,hujiajie/pa-chromium,PeterWangIntel/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,fujunwei/chromium-crosswalk,Pluto-tv/chromium-crosswalk,patrickm/chromium.src,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,zcbenz/cefode-chromium,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,ltilve/chromium,mohamed--abdel-maksoud/chromium.src,axinging/chromium-crosswalk,bright-sparks/chromium-spacewalk,ltilve/chromium,markYoungH/chromium.src,hujiajie/pa-chromium,Pluto-tv/chromium-crosswalk,anirudhSK/chromium,markYoungH/chromium.src,markYoungH/chromium.src,Jonekee/chromium.src,bright-sparks/chromium-spacewalk,fujunwei/chromium-crosswalk,Fireblend/chromium-crosswalk,M4sse/chromium.src,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,krieger-od/nwjs_chromium.src,timopulkkinen/BubbleFish,axinging/chromium-crosswalk,pozdnyakov/chromium-crosswalk,ondra-novak/chromium.src,Just-D/chromium-1,M4sse/chromium.src,krieger-od/nwjs_chromium.src,ltilve/chromium,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,mogoweb/chromium-crosswalk,dushu1203/chromium.src,chuan9/chromium-crosswalk,jaruba/chromium.src,mogoweb/chromium-crosswalk,littlstar/chromium.src,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,Jonekee/chromium.src,markYoungH/chromium.src,crosswalk-project/chromium-crosswalk-efl,anirudhSK/chromium,Fireblend/chromium-crosswalk,mogoweb/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,ltilve/chromium,anirudhSK/chromium,ltilve/chromium,hgl888/chromium-crosswalk-efl,Just-D/chromium-1,fujunwei/chromium-crosswalk,dednal/chromium.src,hgl888/chromium-crosswalk,nacl-webkit/chrome_deps,bright-sparks/chromium-spacewalk,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,hujiajie/pa-chromium,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,dushu1203/chromium.src,jaruba/chromium.src,mogoweb/chromium-crosswalk,timopulkkinen/BubbleFish,timopulkkinen/BubbleFish,nacl-webkit/chrome_deps,jaruba/chromium.src,PeterWangIntel/chromium-crosswalk,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,ChromiumWebApps/chromium,Pluto-tv/chromium-crosswalk,mogoweb/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,Fireblend/chromium-crosswalk,zcbenz/cefode-chromium,chuan9/chromium-crosswalk,hujiajie/pa-chromium,Just-D/chromium-1,nacl-webkit/chrome_deps,krieger-od/nwjs_chromium.src,pozdnyakov/chromium-crosswalk,Jonekee/chromium.src,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk,anirudhSK/chromium,zcbenz/cefode-chromium,hgl888/chromium-crosswalk,M4sse/chromium.src,ChromiumWebApps/chromium,patrickm/chromium.src,bright-sparks/chromium-spacewalk,nacl-webkit/chrome_deps,Chilledheart/chromium,dednal/chromium.src,jaruba/chromium.src,anirudhSK/chromium,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,markYoungH/chromium.src,anirudhSK/chromium,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,dushu1203/chromium.src,Fireblend/chromium-crosswalk,hgl888/chromium-crosswalk-efl,bright-sparks/chromium-spacewalk,axinging/chromium-crosswalk,fujunwei/chromium-crosswalk,dushu1203/chromium.src,axinging/chromium-crosswalk,dushu1203/chromium.src,Fireblend/chromium-crosswalk,pozdnyakov/chromium-crosswalk,markYoungH/chromium.src,hgl888/chromium-crosswalk-efl,dednal/chromium.src,Jonekee/chromium.src,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,M4sse/chromium.src,axinging/chromium-crosswalk,Jonekee/chromium.src,littlstar/chromium.src,dednal/chromium.src,axinging/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,hgl888/chromium-crosswalk,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,ltilve/chromium,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,ltilve/chromium,anirudhSK/chromium,PeterWangIntel/chromium-crosswalk,zcbenz/cefode-chromium,Just-D/chromium-1,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,Chilledheart/chromium,pozdnyakov/chromium-crosswalk,Chilledheart/chromium,ChromiumWebApps/chromium,axinging/chromium-crosswalk,Chilledheart/chromium,dushu1203/chromium.src,bright-sparks/chromium-spacewalk,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,chuan9/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,hgl888/chromium-crosswalk,Pluto-tv/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,chuan9/chromium-crosswalk,littlstar/chromium.src,timopulkkinen/BubbleFish,ChromiumWebApps/chromium,Jonekee/chromium.src,dednal/chromium.src,markYoungH/chromium.src,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,axinging/chromium-crosswalk,krieger-od/nwjs_chromium.src,anirudhSK/chromium,patrickm/chromium.src,pozdnyakov/chromium-crosswalk,anirudhSK/chromium,patrickm/chromium.src,patrickm/chromium.src,chuan9/chromium-crosswalk,anirudhSK/chromium,Chilledheart/chromium,TheTypoMaster/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,mohamed--abdel-maksoud/chromium.src,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,crosswalk-project/chromium-crosswalk-efl,zcbenz/cefode-chromium,nacl-webkit/chrome_deps,PeterWangIntel/chromium-crosswalk,chuan9/chromium-crosswalk,markYoungH/chromium.src,nacl-webkit/chrome_deps,patrickm/chromium.src,hgl888/chromium-crosswalk,krieger-od/nwjs_chromium.src,jaruba/chromium.src,ChromiumWebApps/chromium,dednal/chromium.src,chuan9/chromium-crosswalk,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,ondra-novak/chromium.src,patrickm/chromium.src,Fireblend/chromium-crosswalk,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,Just-D/chromium-1,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,Just-D/chromium-1,littlstar/chromium.src,mogoweb/chromium-crosswalk,hgl888/chromium-crosswalk-efl,fujunwei/chromium-crosswalk,jaruba/chromium.src,patrickm/chromium.src,TheTypoMaster/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,dushu1203/chromium.src,littlstar/chromium.src,hgl888/chromium-crosswalk-efl,mohamed--abdel-maksoud/chromium.src,timopulkkinen/BubbleFish,Pluto-tv/chromium-crosswalk,littlstar/chromium.src,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,M4sse/chromium.src,M4sse/chromium.src,ltilve/chromium,Fireblend/chromium-crosswalk,dushu1203/chromium.src,krieger-od/nwjs_chromium.src,Just-D/chromium-1,Jonekee/chromium.src,dednal/chromium.src,hujiajie/pa-chromium,dednal/chromium.src,jaruba/chromium.src,dushu1203/chromium.src,fujunwei/chromium-crosswalk,mogoweb/chromium-crosswalk,axinging/chromium-crosswalk,zcbenz/cefode-chromium,dushu1203/chromium.src,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,ChromiumWebApps/chromium,bright-sparks/chromium-spacewalk,jaruba/chromium.src,dednal/chromium.src,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,Chilledheart/chromium,ChromiumWebApps/chromium,dushu1203/chromium.src,markYoungH/chromium.src,ChromiumWebApps/chromium,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,hujiajie/pa-chromium,ChromiumWebApps/chromium,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,crosswalk-project/chromium-crosswalk-efl,axinging/chromium-crosswalk,pozdnyakov/chromium-crosswalk,ChromiumWebApps/chromium,hgl888/chromium-crosswalk-efl