<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Justin&#039;s Blog &#187; WebKit</title>
	<atom:link href="http://blog.justinhaygood.com/category/webkit/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.justinhaygood.com</link>
	<description>A day in the life of a geek.</description>
	<lastBuildDate>Sat, 27 Apr 2013 16:51:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Proposed High Resolution Timer API</title>
		<link>http://blog.justinhaygood.com/2008/09/30/proposed-high-resolution-timer-api/</link>
		<comments>http://blog.justinhaygood.com/2008/09/30/proposed-high-resolution-timer-api/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 02:30:57 +0000</pubDate>
		<dc:creator>Justin Haygood</dc:creator>
				<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://blog.justinhaygood.com/?p=184</guid>
		<description><![CDATA[Long time since I&#8217;ve posted on Planet WebKit: Here&#8217;s a proposed high resolution Timer API for WebKit (and hopefully HTML5). It&#8217;s based off of Adobe&#8217;s &#8220;flash.utils.Timer&#8221; API found in ActionScript 3.0. Timer : EventDispatcher Properties: currentCount:Number =&#62; Total number of times the timer has fired since it started (at 0) Â delay:Number =&#62; The time, measured [...]]]></description>
				<content:encoded><![CDATA[<p>Long time since I&#8217;ve posted on Planet WebKit:<br />
Here&#8217;s a proposed high resolution Timer API for WebKit (and hopefully HTML5). It&#8217;s based off of Adobe&#8217;s &#8220;<a title="flash.utils.Timer" href="http://livedocs.adobe.com/flex/2/langref/flash/utils/Timer.html">flash.utils.Timer</a>&#8221; API found in ActionScript 3.0.<br />
Timer : EventDispatcher<br />
Properties:</p>
<ul>
<li>currentCount:Number =&gt; Total number of times the timer has fired since it started (at 0)</li>
<li>Â delay:Number =&gt; The time, measured in <span style="text-decoration: line-through;">milliseconds</span><em>seconds</em>, between timer firings. <em>Precision is browser defined, but should be at least 1ms</em></li>
<li>repeatCount:Number =&gt; The total number of times the counter is set to run. If the timer is &#8220;0&#8243;, the timer will run forever or until its stopped.</li>
<li>running:Boolean =&gt; If the timer is running or not</li>
</ul>
<div>Methods:</div>
<div>
<ul>
<li>start() =&gt; Starts the timer if the timer is not running</li>
<li>stop() =&gt; Stops the timer if the timer is running.</li>
<li>reset() =&gt; Stops the timer if its running, and resets &#8220;currentCount&#8221; back to 0.</li>
</ul>
<div></div>
</div>
<div>The timer will implement the browser native event dispatching system (W3C for most, IE proprietary for MSIE), and will fire the following events:</div>
<div>
<ul>
<li>timer =&gt; Dispatched whenever the timer reaches the interval specified by the &#8220;delay&#8221; property.</li>
<li>timerComplete =&gt; Dispatched when the timer&#8217;s repeatCount reaches 0.</li>
</ul>
<div>Please note the timer will be a high resolution timer, with no minimum bound, so there&#8217;s no compatibility issues when using setTimeout/setInterval. Plus, the API is simple enough to be implemented in terms of setTimeout/setInterval on browsers that do not implement the proposed.</div>
</div>
<div>Please leave feedback on the proposed API.</div>
<div></div>
<div><strong>Some notes:</strong></div>
<div>
<ul>
<li>Changes from flash.utils.Timer: delay is measured in seconds instead of milliseconds, since its defined to be a JavaScript number, which has the precision equivalent to a &#8220;double&#8221; on a standard Intel x86 system.</li>
<li>Repeat Count defaults to 0, meaning, go on forever. If you want it to be &#8220;one shot&#8221;, then set repeat count to 1.</li>
</ul>
<div>Example Code:</div>
<div>var timer = new Timer();</div>
<div>timer.delay = 0.01;</div>
<div>timer.repeatCount = 1;</div>
<div></div>
<div>// Add Event Listeners</div>
<div>if(timer.addEventListener) timer.addEventListener(&#8220;timercomplete&#8221;, OnTimerComplete); // W3C</div>
<div>else if (timer.attachEvent) timer.attachEvent(&#8220;ontimercomplete&#8221;,OnTimerComplete); // MSIE</div>
<div></div>
<div>// Event Lsitener</div>
<div>function OnTimerComplete(e)</div>
<div>{</div>
<div>if(!e) e = window.event; // MSIE</div>
<div></div>
<div>// Do Something</div>
<div>}</div>
<div></div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.justinhaygood.com/2008/09/30/proposed-high-resolution-timer-api/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Stuff I&#8217;m working on</title>
		<link>http://blog.justinhaygood.com/2007/11/29/stuff-im-working-on/</link>
		<comments>http://blog.justinhaygood.com/2007/11/29/stuff-im-working-on/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 04:43:23 +0000</pubDate>
		<dc:creator>Justin Haygood</dc:creator>
				<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://blog.justinhaygood.com/?p=135</guid>
		<description><![CDATA[Since I don&#8217;t get paid to hack on Webkit (sadly), I can only contribute in my spare time. However, I do have some short and long term personal goals for WebKit: Get the threading patches to Qt integrated. For the most part, its ready:Â  http://bugs.webkit.org/show_bug.cgi?id=15940 Getting NPAPI plugins working in Qt/Windows Potentially adding audio/video support [...]]]></description>
				<content:encoded><![CDATA[<p>Since I don&#8217;t get paid to hack on Webkit (sadly), I can only contribute in my spare time.<br />
However, I do have some short and long term personal goals for WebKit:</p>
<ul>
<li>Get the threading patches to Qt integrated. For the most part, its ready:Â  http://bugs.webkit.org/show_bug.cgi?id=15940</li>
<li>Getting NPAPI plugins working in Qt/Windows</li>
<li>Potentially adding audio/video support</li>
<li>Drawing issues in Qt/Windows. Some examples: http://www.neowin.net, any website with effects on rollover, etc&#8230;</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.justinhaygood.com/2007/11/29/stuff-im-working-on/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated patch for NPAPI plugins</title>
		<link>http://blog.justinhaygood.com/2007/11/08/updated-patch-for-npapi-plugins/</link>
		<comments>http://blog.justinhaygood.com/2007/11/08/updated-patch-for-npapi-plugins/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 22:36:16 +0000</pubDate>
		<dc:creator>Justin Haygood</dc:creator>
				<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://blog.justinhaygood.com/?p=138</guid>
		<description><![CDATA[Updated uber-patch. I&#8217;ll be splitting parts of this patch up that are separate from plugins Download plugin uber-patch]]></description>
				<content:encoded><![CDATA[<p>Updated uber-patch. I&#8217;ll be splitting parts of this patch up that are separate from plugins<br />
<a href="http://blog.justinhaygood.com/__oneclick_uploads/2007/11/plugins-qtwindows1.txt" title="plugin uber-patch">Download plugin uber-patch</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justinhaygood.com/2007/11/08/updated-patch-for-npapi-plugins/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>youtube in qt webkit (windows only)</title>
		<link>http://blog.justinhaygood.com/2007/11/07/youtube-in-qt-webkit-windows-only/</link>
		<comments>http://blog.justinhaygood.com/2007/11/07/youtube-in-qt-webkit-windows-only/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 23:13:12 +0000</pubDate>
		<dc:creator>Justin Haygood</dc:creator>
				<category><![CDATA[WebKit]]></category>

		<guid isPermaLink="false">http://blog.justinhaygood.com/?p=121</guid>
		<description><![CDATA[I got it to work! It&#8217;s just a proof of concept right now, and I&#8217;ll clean it up later. The patch does several things that are needed: Makes sure the database stuff is protected Hacks in support for the Windows plugins (this needs to be done in a cleaner way) Implement UTF-8 to UTF-16 text [...]]]></description>
				<content:encoded><![CDATA[<p>I got it to work! It&#8217;s just a proof of concept right now, and I&#8217;ll clean it up later.<br />
The patch does several things that are needed:</p>
<ul>
<li>Makes sure the database stuff is protected</li>
<li>Hacks in support for the Windows plugins (this needs to be done in a cleaner way)</li>
<li>Implement UTF-8 to UTF-16 text encoding using Qt 4</li>
</ul>
<p>Screenshot:<br />
<a href="http://blog.justinhaygood.com/__oneclick_uploads/2007/11/youtube-qtlauncher.PNG" title="youtube in qt webkit for windows"><img src="http://blog.justinhaygood.com/__oneclick_uploads/2007/11/youtube-qtlauncher.thumbnail.PNG" alt="youtube in qt webkit for windows" /></a><br />
Download Patch: <a href="http://blog.justinhaygood.com/__oneclick_uploads/2007/11/plugins-qtwindows.txt" title="Current Patch">Current Patch</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.justinhaygood.com/2007/11/07/youtube-in-qt-webkit-windows-only/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.260 seconds. -->
<!-- File not cached! Super Cache Couldn't write to: wp-content/cache/wp-cache-4775b901fab7ac4ce75b6a7f322ea6a9.html -->