On Windows 8 when a metro app is snapped, all desktop applications receive a resize notification as the work area is reduced. In Chrome the tabstrip paint would fail as the WM_GETTITLEBARINFOEX message fails to return the correct minimize offset.
On Windows 8 when a metro app is snapped, all desktop applications receive a resize notification as the work area
is reduced. In Chrome the tabstrip paint would fail as the WM_GETTITLEBARINFOEX message fails to return the correct
minimize offset.

A fix went in to address this by caching the delta of the minimize button which is then applied to the corresponding
client edge. This only addressed the case when the minimize button offset was returned as 0 from the WM_GETTITLEBARINFOEX 
message. At times this offset is negative. 

Fix is to check whether the minimize button offset is > 0 before applying the cached delta.

BUG=135304
R=sky
Review URL: https://chromiumcodereview.appspot.com/10783027

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

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