Handle close button in SkOSWindow_Unix.
Handle close button in SkOSWindow_Unix.

Currently X with most Window managers calls 'exit' when the close button
is used. This can cause issues as the Window is not properly destroyed.
With this change we can handle this window message and properly exit.

R=reed@google.com

Author: bungeman@google.com

Review URL: https://codereview.chromium.org/377733002

shahrzadmn/skia,VRToxin-AOSP/android_external_skia,AOSPB/external_skia,DARKPOP/external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,UBERMALLOW/external_skia,Igalia/skia,w3nd1go/android_external_skia,google/skia,OptiPop/external_chromium_org_third_party_skia,Igalia/skia,VRToxin-AOSP/android_external_skia,MonkeyZZZZ/platform_external_skia,aosp-mirror/platform_external_skia,FusionSP/external_chromium_org_third_party_skia,w3nd1go/android_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,MyAOSP/external_chromium_org_third_party_skia,google/skia,chenlian2015/skia_from_google,TeamExodus/external_skia,OptiPop/external_chromium_org_third_party_skia,TeamTwisted/external_skia,mydongistiny/external_chromium_org_third_party_skia,w3nd1go/android_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,boulzordev/android_external_skia,aosp-mirror/platform_external_skia,scroggo/skia,Omegaphora/external_chromium_org_third_party_skia,TeamTwisted/external_skia,HalCanary/skia-hc,qrealka/skia-hc,DiamondLovesYou/skia-sys,jtg-gg/skia,PAC-ROM/android_external_skia,nfxosp/platform_external_skia,MonkeyZZZZ/platform_external_skia,todotodoo/skia,YUPlayGodDev/platform_external_skia,MyAOSP/external_chromium_org_third_party_skia,boulzordev/android_external_skia,ench0/external_chromium_org_third_party_skia,invisiblek/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,BrokenROM/external_skia,aosp-mirror/platform_external_skia,MinimalOS/external_chromium_org_third_party_skia,samuelig/skia,OneRom/external_skia,Fusion-Rom/external_chromium_org_third_party_skia,OneRom/external_skia,VRToxin-AOSP/android_external_skia,HalCanary/skia-hc,Jichao/skia,ominux/skia,rubenvb/skia,google/skia,DARKPOP/external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,Omegaphora/external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,geekboxzone/mmallow_external_skia,BrokenROM/external_skia,TeamExodus/external_skia,aosp-mirror/platform_external_skia,android-ia/platform_external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,FusionSP/external_chromium_org_third_party_skia,rubenvb/skia,todotodoo/skia,YUPlayGodDev/platform_external_skia,MinimalOS/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,UBERMALLOW/external_skia,Infinitive-OS/platform_external_skia,DARKPOP/external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,timduru/platform-external-skia,FusionSP/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,Jichao/skia,OptiPop/external_chromium_org_third_party_skia,pcwalton/skia,Fusion-Rom/external_chromium_org_third_party_skia,ominux/skia,qrealka/skia-hc,FusionSP/external_chromium_org_third_party_skia,PAC-ROM/android_external_skia,UBERMALLOW/external_skia,jtg-gg/skia,tmpvar/skia.cc,jtg-gg/skia,noselhq/skia,TeamTwisted/external_skia,Igalia/skia,MarshedOut/android_external_skia,noselhq/skia,w3nd1go/android_external_skia,jtg-gg/skia,invisiblek/android_external_skia,invisiblek/android_external_skia,Jichao/skia,MIPS/external-chromium_org-third_party-skia,TeamEOS/external_chromium_org_third_party_skia,jtg-gg/skia,tmpvar/skia.cc,pcwalton/skia,amyvmiwei/skia,todotodoo/skia,geekboxzone/mmallow_external_skia,amyvmiwei/skia,spezi77/android_external_skia,noselhq/skia,android-ia/platform_external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,FusionSP/external_chromium_org_third_party_skia,aosp-mirror/platform_external_skia,AOSP-YU/platform_external_skia,chenlian2015/skia_from_google,vanish87/skia,samuelig/skia,MonkeyZZZZ/platform_external_skia,MinimalOS/external_chromium_org_third_party_skia,google/skia,mydongistiny/external_chromium_org_third_party_skia,MinimalOS/android_external_chromium_org_third_party_skia,mydongistiny/external_chromium_org_third_party_skia,BrokenROM/external_skia,invisiblek/android_external_skia,BrokenROM/external_skia,google/skia,DARKPOP/external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,MonkeyZZZZ/platform_external_skia,chenlian2015/skia_from_google,geekboxzone/lollipop_external_chromium_org_third_party_skia,ench0/external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,OptiPop/external_chromium_org_third_party_skia,scroggo/skia,HalCanary/skia-hc,BrokenROM/external_skia,OptiPop/external_chromium_org_third_party_skia,TeamExodus/external_skia,MarshedOut/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,todotodoo/skia,mydongistiny/external_chromium_org_third_party_skia,DiamondLovesYou/skia-sys,geekboxzone/lollipop_external_chromium_org_third_party_skia,scroggo/skia,TeamEOS/external_chromium_org_third_party_skia,amyvmiwei/skia,AOSPB/external_skia,Omegaphora/external_chromium_org_third_party_skia,tmpvar/skia.cc,Infinitive-OS/platform_external_skia,mydongistiny/external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,android-ia/platform_external_chromium_org_third_party_skia,geekboxzone/mmallow_external_skia,TeamExodus/external_skia,ominux/skia,Infinitive-OS/platform_external_skia,MinimalOS/external_chromium_org_third_party_skia,todotodoo/skia,boulzordev/android_external_skia,HalCanary/skia-hc,geekboxzone/mmallow_external_skia,MarshedOut/android_external_skia,invisiblek/android_external_skia,tmpvar/skia.cc,MonkeyZZZZ/platform_external_skia,MarshedOut/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,timduru/platform-external-skia,vanish87/skia,nvoron23/skia,AOSPB/external_skia,Infinitive-OS/platform_external_skia,pcwalton/skia,rubenvb/skia,aosp-mirror/platform_external_skia,MarshedOut/android_external_skia,qrealka/skia-hc,mydongistiny/external_chromium_org_third_party_skia,UBERMALLOW/external_skia,Igalia/skia,pcwalton/skia,w3nd1go/android_external_skia,scroggo/skia,Hikari-no-Tenshi/android_external_skia,spezi77/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,todotodoo/skia,boulzordev/android_external_skia,geekboxzone/mmallow_external_skia,Omegaphora/external_chromium_org_third_party_skia,UBERMALLOW/external_skia,MinimalOS/android_external_chromium_org_third_party_skia,Jichao/skia,PAC-ROM/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,scroggo/skia,MinimalOS/external_chromium_org_third_party_skia,samuelig/skia,YUPlayGodDev/platform_external_skia,nvoron23/skia,Omegaphora/external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,HalCanary/skia-hc,MinimalOS-AOSP/platform_external_skia,pcwalton/skia,MyAOSP/external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,OneRom/external_skia,PAC-ROM/android_external_skia,nfxosp/platform_external_skia,samuelig/skia,tmpvar/skia.cc,amyvmiwei/skia,qrealka/skia-hc,HalCanary/skia-hc,amyvmiwei/skia,MIPS/external-chromium_org-third_party-skia,MyAOSP/external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,mydongistiny/external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,YUPlayGodDev/platform_external_skia,MyAOSP/external_chromium_org_third_party_skia,spezi77/android_external_skia,pcwalton/skia,nvoron23/skia,shahrzadmn/skia,todotodoo/skia,MinimalOS/android_external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,nfxosp/platform_external_skia,qrealka/skia-hc,MarshedOut/android_external_skia,vanish87/skia,DARKPOP/external_chromium_org_third_party_skia,qrealka/skia-hc,MonkeyZZZZ/platform_external_skia,TeamEOS/external_chromium_org_third_party_skia,OneRom/external_skia,aosp-mirror/platform_external_skia,MinimalOS/external_chromium_org_third_party_skia,TeamEOS/external_chromium_org_third_party_skia,Infinitive-OS/platform_external_skia,VRToxin-AOSP/android_external_skia,scroggo/skia,vanish87/skia,geekboxzone/mmallow_external_skia,BrokenROM/external_skia,BrokenROM/external_skia,VRToxin-AOSP/android_external_skia,nvoron23/skia,google/skia,boulzordev/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,rubenvb/skia,AOSPB/external_skia,Fusion-Rom/external_chromium_org_third_party_skia,TeamTwisted/external_skia,MIPS/external-chromium_org-third_party-skia,google/skia,ench0/external_chromium_org_third_party_skia,AOSPB/external_skia,tmpvar/skia.cc,MarshedOut/android_external_skia,MinimalOS-AOSP/platform_external_skia,vanish87/skia,noselhq/skia,timduru/platform-external-skia,OneRom/external_skia,chenlian2015/skia_from_google,Igalia/skia,TeamExodus/external_skia,FusionSP/external_chromium_org_third_party_skia,Jichao/skia,samuelig/skia,Fusion-Rom/external_chromium_org_third_party_skia,jtg-gg/skia,invisiblek/android_external_skia,w3nd1go/android_external_skia,samuelig/skia,amyvmiwei/skia,ench0/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,TeamExodus/external_skia,xin3liang/platform_external_chromium_org_third_party_skia,DARKPOP/external_chromium_org_third_party_skia,AOSPB/external_skia,MinimalOS-AOSP/platform_external_skia,DiamondLovesYou/skia-sys,shahrzadmn/skia,Jichao/skia,vanish87/skia,DiamondLovesYou/skia-sys,TeamEOS/external_chromium_org_third_party_skia,TeamTwisted/external_skia,scroggo/skia,timduru/platform-external-skia,OneRom/external_skia,MinimalOS/external_chromium_org_third_party_skia,shahrzadmn/skia,MinimalOS-AOSP/platform_external_skia,Fusion-Rom/external_chromium_org_third_party_skia,VRToxin-AOSP/android_external_skia,shahrzadmn/skia,MyAOSP/external_chromium_org_third_party_skia,MinimalOS/android_external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,BrokenROM/external_skia,Hikari-no-Tenshi/android_external_skia,HalCanary/skia-hc,FusionSP/external_chromium_org_third_party_skia,vanish87/skia,DiamondLovesYou/skia-sys,MinimalOS/external_chromium_org_third_party_skia,android-ia/platform_external_chromium_org_third_party_skia,Fusion-Rom/external_chromium_org_third_party_skia,google/skia,xin3liang/platform_external_chromium_org_third_party_skia,DiamondLovesYou/skia-sys,geekboxzone/mmallow_external_skia,VRToxin-AOSP/android_external_skia,HalCanary/skia-hc,scroggo/skia,chenlian2015/skia_from_google,jtg-gg/skia,ench0/external_chromium_org_third_party_skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,Igalia/skia,spezi77/android_external_skia,google/skia,Infinitive-OS/platform_external_skia,DiamondLovesYou/skia-sys,PAC-ROM/android_external_skia,UBERMALLOW/external_skia,Omegaphora/external_chromium_org_third_party_skia,HalCanary/skia-hc,UBERMALLOW/external_skia,chenlian2015/skia_from_google,vanish87/skia,qrealka/skia-hc,pcwalton/skia,Hikari-no-Tenshi/android_external_skia,TeamEOS/external_chromium_org_third_party_skia,Jichao/skia,MarshedOut/android_external_skia,ominux/skia,MinimalOS/android_external_chromium_org_third_party_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,noselhq/skia,MarshedOut/android_external_skia,android-ia/platform_external_chromium_org_third_party_skia,pcwalton/skia,w3nd1go/android_external_skia,DARKPOP/external_chromium_org_third_party_skia,noselhq/skia,boulzordev/android_external_skia,FusionSP/external_chromium_org_third_party_skia,AOSPB/external_skia,Hikari-no-Tenshi/android_external_skia,rubenvb/skia,MinimalOS-AOSP/platform_external_skia,samuelig/skia,qrealka/skia-hc,AOSP-YU/platform_external_skia,MinimalOS/android_external_chromium_org_third_party_skia,OptiPop/external_chromium_org_third_party_skia,MIPS/external-chromium_org-third_party-skia,geekboxzone/mmallow_external_skia,YUPlayGodDev/platform_external_skia,shahrzadmn/skia,geekboxzone/mmallow_external_skia,aosp-mirror/platform_external_skia,TeamTwisted/external_skia,shahrzadmn/skia,PAC-ROM/android_external_skia,boulzordev/android_external_skia,rubenvb/skia,AOSPB/external_skia,xin3liang/platform_external_chromium_org_third_party_skia,ench0/external_chromium_org_third_party_skia,AOSP-YU/platform_external_skia,YUPlayGodDev/platform_external_skia,OneRom/external_skia,nfxosp/platform_external_skia,Infinitive-OS/platform_external_skia,TeamTwisted/external_skia,noselhq/skia,MIPS/external-chromium_org-third_party-skia,nvoron23/skia,pcwalton/skia,ench0/external_chromium_org_third_party_skia,ominux/skia,UBERMALLOW/external_skia,OneRom/external_skia,android-ia/platform_external_chromium_org_third_party_skia,rubenvb/skia,w3nd1go/android_external_skia,xin3liang/platform_external_chromium_org_third_party_skia,MyAOSP/external_chromium_org_third_party_skia,spezi77/android_external_skia,ominux/skia,amyvmiwei/skia,Igalia/skia,tmpvar/skia.cc,timduru/platform-external-skia,Infinitive-OS/platform_external_skia,nfxosp/platform_external_skia,invisiblek/android_external_skia,samuelig/skia,todotodoo/skia,TeamExodus/external_skia,invisiblek/android_external_skia,AOSP-YU/platform_external_skia,MinimalOS-AOSP/platform_external_skia,boulzordev/android_external_skia,AOSP-YU/platform_external_skia,PAC-ROM/android_external_skia,PAC-ROM/android_external_skia,ominux/skia,TeamExodus/external_skia,mydongistiny/external_chromium_org_third_party_skia,timduru/platform-external-skia,nfxosp/platform_external_skia,MyAOSP/external_chromium_org_third_party_skia,timduru/platform-external-skia,UBERMALLOW/external_skia,YUPlayGodDev/platform_external_skia,Infinitive-OS/platform_external_skia,TeamExodus/external_skia,MonkeyZZZZ/platform_external_skia,MinimalOS-AOSP/platform_external_skia,nvoron23/skia,rubenvb/skia,spezi77/android_external_skia,aosp-mirror/platform_external_skia,geekboxzone/lollipop_external_chromium_org_third_party_skia,ominux/skia,TeamTwisted/external_skia,xin3liang/platform_external_chromium_org_third_party_skia,vanish87/skia,MonkeyZZZZ/platform_external_skia,boulzordev/android_external_skia,Omegaphora/external_chromium_org_third_party_skia,Igalia/skia,rubenvb/skia,MIPS/external-chromium_org-third_party-skia,shahrzadmn/skia,Jichao/skia,ominux/skia,ench0/external_chromium_org_third_party_skia,MinimalOS-AOSP/platform_external_skia,Jichao/skia,HalCanary/skia-hc,nvoron23/skia,amyvmiwei/skia,Hikari-no-Tenshi/android_external_skia,w3nd1go/android_external_skia,nvoron23/skia,AOSPB/external_skia,TeamTwisted/external_skia,noselhq/skia,MIPS/external-chromium_org-third_party-skia,shahrzadmn/skia,noselhq/skia,nvoron23/skia,MonkeyZZZZ/platform_external_skia,tmpvar/skia.cc,google/skia,nfxosp/platform_external_skia,nfxosp/platform_external_skia,todotodoo/skia,Fusion-Rom/external_chromium_org_third_party_skia,PAC-ROM/android_external_skia,tmpvar/skia.cc,OneRom/external_skia,chenlian2015/skia_from_google,MinimalOS/android_external_chromium_org_third_party_skia