[win] Fix flickery title bars in packaged apps.
[win] Fix flickery title bars in packaged apps.

This patch works around a "feature" of WM_NCCALCSIZE where if you specify that
the client rect should be equal to the window rect, it changes into what is
presumably some sort of backwards compatability mode and decides that it will
be flickering your window content between opaque and transparent now.
Sometimes.

This patch tells Windows the client rect is actually 1px taller than the
window, then lies to user code above it about what the client rect is so that
the bottom 1px of the content doesn't get cut off.

BUG=132948
R=msw@chromium.org,sky@chromium.org,ben@chromium.org


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

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

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