Upgrade to Pro — share decks privately, control downloads, hide ads and more …

JavaScript初心者がFirefox OSの時計アプリを読んでみた

Mikio Fujita
November 15, 2014

JavaScript初心者がFirefox OSの時計アプリを読んでみた

Mikio Fujita

November 15, 2014
Tweet

More Decks by Mikio Fujita

Other Decks in Programming

Transcript

  1. ࣗ෼͕ͨͪͨ͜͠ͱd࣮ࡍͷྲྀΕd panels alarm stopwatch timer clock_view alarm_list post_message
 _proxy active_alarm

    alarm_edit child_window
 _manager ֤ϑΝΠϧɾσΟϨΫτϦ໊͔Β໾ׂΛਪଌ
  2. ` Θ͔ͬͨ͜ͱdΞϥʔϜͷൃՐd onAlarmFired or onTimerFired Viewͷ දࣔ indexedDB mozSetMessageHandler ͕ઃఆ

    onMozAlarm ΞϥʔϜൃՐ࣌ʂʂ อଘ͞ΕͨΞϥʔϜ ͷઃఆΛಡΈࠐΉ ϝΠϯετϦʔϜ
  3. ίʔυϦʔσΟϯάʹऔΓ૊ΜͰΈͨ݁Ռ dऔΓ૊Έํʹ͍ͭͯd • ࢝Ί͸֤͕ࣗࣗ༝ʹಡΜͰ͍͘ • +4ͷجຊతͳ஌͔ࣝΒ • ͩΜͩΜ֤ࣗͷಡΉൣғʹऩଋ ! •

    (PPHMFεϓϨουγʔτʹ·ͱΊΔ • ଞਓͷϝϞ͕͔ͳΓ໾ʹཱͬͨ ! • 4LZQFͰձ࿩Λ͠ͳ͕ΒಡΉ • ΋͘΋͘ձ෩Ͱ͸͕͋ͬͨɾɾɾ