From dbcf290e9cb011cfcf5f2d0b0ebce97cb53f4e4d Mon Sep 17 00:00:00 2001 From: Ujjwal Chadha <66971578+ujjwalchadha@users.noreply.github.com> Date: Thu, 10 Jun 2021 20:15:48 -0400 Subject: [PATCH] Fixed special cased event source (#866) --- .../AuthoringWinUITest (Package).assets.cache | Bin 0 -> 20605 bytes src/cswinrt/code_writers.h | 7 +++---- 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 src/Tests/AuthoringWinUITest/AuthoringWinUITest (Package)/AuthoringWinUITest (Package).assets.cache diff --git a/src/Tests/AuthoringWinUITest/AuthoringWinUITest (Package)/AuthoringWinUITest (Package).assets.cache b/src/Tests/AuthoringWinUITest/AuthoringWinUITest (Package)/AuthoringWinUITest (Package).assets.cache new file mode 100644 index 0000000000000000000000000000000000000000..9169029228cab47138d38773545d0c68acf5e7e6 GIT binary patch literal 20605 zcmd5^ZFk(n6%H*g4K$&FLK>j0N#Z~V*7_YM#1O|$j3Mi6v$2zcASk+fAFVDu zd*sNG-7}Zx&d1@m_r{m5{Oi;IK3x3Ze-9u2bNlIo|9Jm?=w1E(!^==9{X7YOe!P6i z-iSyT*~u5J9jCqH*p{Dcli2P$tzBoEM0Ru##l*8b;sxP>J!{Qbvv$Y5Z~G*UV#jYg zVSCz|w442E^tH0&*!c9q{=)qD^hGikxlN-@eXUW4*;D3KYoD|=qE zMSQY`;rs>QDZ;72ZI5DA>$mC{!e1f?|EA$59tp(Ec$T`|j@trr2>g1`CLQY*iGn1g z4hOM@F=P&ZHa>?HHw22VJHFdZz#G6+Fzl}**uOT8ea-JCaWi&e0{9{32{GuW5$NAN z2Iw&feWznx2R}sif^c`Ey^Fy=gTU9}?MG|*8*4pZ9Yk)=Vs18@Nw*t>F*bv<$P9jG zh6U@{)`bc5tOo-;jsX73xWxcs2qZeN?tUBw9h73u9d6{^&@FP6ZyZYGYks<05n6u} zLH>uwW-X1Kz$ciIpGRQ-<8i^Zm!b&H9rk+QMx^)md((6C`%vyR)>o~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>~4T%4y{oG*F-MalC@>1%68doQ2gKIoEX(p#{R97gOlxRGLT&U8tYD#CwU^B;#!+PM);OX!smoR&$Ff~Bm+9&8LVci#jT)q zH07|%dYz~hsdx1nD@CFAb=wx`GFSE5W75d9b{CmEaY?&LP9YezDIC&EHWkmw@00_a zomFp^YFF#0u+)lESms!Ns$Ik1{7a(+cKp;dFy%RKijAn+Yl15edIOnglwGKO!9@gLHoDRiEb6r^@B{LuRYJzRz@*Ob&_U({7Bm~=JiurT zf&WW26xlyxU4_wP4<)xb>m?>QocU*1Z~0x2BM8R(TE?VgeL2`unuEX;?=f`P3bFc} zuo>fPSzo?6=li#d$Ir7p!W9Etf3~<&&h)ZF5LQZjPeqQ?glaMY=M0IyC^E*dZ z~rjnv>Jik z`7Y3BcNGFXc2~6&SR%*nSbYt4*K3ZjJMTb)-G$2ZA0cD8yg7E~^$>O!DhW}1j@@}R fnSAxwoj?8pb}t@4cy82j literal 0 HcmV?d00001 diff --git a/src/cswinrt/code_writers.h b/src/cswinrt/code_writers.h index cbe357e98..0c4dff66e 100644 --- a/src/cswinrt/code_writers.h +++ b/src/cswinrt/code_writers.h @@ -2529,11 +2529,10 @@ db_path.stem().string()); { if (for_typedef(w, get_type_semantics(evt.EventType()), [&](TypeDef const& eventType) { - if (eventType.TypeNamespace() == "System" && eventType.TypeName() == "EventHandler`1") + if ((eventType.TypeNamespace() == "Windows.Foundation" || eventType.TypeNamespace() == "System") && eventType.TypeName() == "EventHandler`1") { auto [add, remove] = get_event_methods(evt); - w.write(R"( -new EventSource__EventHandler%(_obj, + w.write(R"( new EventSource__EventHandler%(_obj, %, %))", bind(eventType), @@ -6458,7 +6457,7 @@ bind(type, typedef_name_type::CCW, true) { for_typedef(w, eventTypeSemantics, [&](TypeDef const& eventType) { - if (eventType.TypeNamespace() == "System" && eventType.TypeName() == "EventHandler`1") + if ((eventType.TypeNamespace() == "Windows.Foundation" || eventType.TypeNamespace() == "System") && eventType.TypeName() == "EventHandler`1") { return; }