Fix smashed rendering in Firefox for Puzzle help and Playground.

R=spertus@google.com

Review URL: https://codereview.appspot.com/11822043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1147 c400ca83-b69d-9dd7-9705-49c6b8615e23
Make scrollbars optional, remove toolbar stub from Puzzle.

R=spertus@google.com

Review URL: https://codereview.appspot.com/11860043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1148 c400ca83-b69d-9dd7-9705-49c6b8615e23
Adding many languages to puzzle app.
Also back-propagated a change from qqq.json to template.soy and
eliminated wikilinks within template.soy that did not do what I thought.

Review URL: https://codereview.appspot.com/11863043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1149 c400ca83-b69d-9dd7-9705-49c6b8615e23
The constructor for Toolbox.TreeControl was a bad place to attach events since the DOM is not ready. Instead I overrode enterDocument with a call to the superclass, then attaching touchEvents.
Also, there was a really interesting bug with attaching the touch handler. The onMouseDown method often took more than the time (I think 300ms) that the browser waits after a touch event before firing a mouse event. So before we could return from our handler (and register e.preventDefault) the mouse event was fired and queued on the execution thread. I confirmed this behavior with a test script which attached mouse and touch events to a div When the callback for touch spun for 1 second the mouse events got called, even though I called e.preventDefault(). When the 1 second sleep was removed the mouse events didn't fire.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/11855043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1150 c400ca83-b69d-9dd7-9705-49c6b8615e23
Fixed direction of Mazandarani (mzn).

Review URL: https://codereview.appspot.com/11874044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1151 c400ca83-b69d-9dd7-9705-49c6b8615e23
Puzzle help dialog animates from and away from the help button when opened and closed.

R=spertus@google.com

Review URL: https://codereview.appspot.com/11897043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1152 c400ca83-b69d-9dd7-9705-49c6b8615e23
Replaced TODO message descriptions in Code with real message descriptions.
Added tooltip to run button for Maze.
Because of competing CLs, this doesn't include the generated files.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/11654043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1153 c400ca83-b69d-9dd7-9705-49c6b8615e23
Removed svn:mime-type from json files with:
svn propdel svn:mime-type *.json
It had stopped "svn diff" from working (without the --force argument)
and messed up Rietveld interactions.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/11927044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1154 c400ca83-b69d-9dd7-9705-49c6b8615e23
Changes to .js file generation for all apps.
Moved .js files into subdirectory named 'generated'.
Renamed i18n/json-to-xlf.py to i18n/json-to-js.py, reducing number of
steps to produce .js files.
Also removed extraneous quotation mark.
TODO: Change MOOC branch.

Review URL: https://codereview.appspot.com/11938043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1155 c400ca83-b69d-9dd7-9705-49c6b8615e23
Misc changes.  Fixing plane, dutch messages, chinese name, removing obsolete file, adding scollbar flag to wiki, prevent menu jitter on Puzzle-load, fix context menu in Puzzle.

R=spertus@google.com

Review URL: https://codereview.appspot.com/11934046

git-svn-id: http://blockly.googlecode.com/svn/trunk@1156 c400ca83-b69d-9dd7-9705-49c6b8615e23
Generated files from previous CL.

git-svn-id: http://blockly.googlecode.com/svn/trunk@1157 c400ca83-b69d-9dd7-9705-49c6b8615e23
Fix redundant scrollbar on Firefox.  Previously both the toolbox and the scrollbars resized by hooking the resize event.  This caused a race condition allowing the scrollbar to sometimes resize before the toolbox.  Now the scrollbar's resize is hardcoded after its container has resized.

Review URL: https://codereview.appspot.com/12002045

git-svn-id: http://blockly.googlecode.com/svn/trunk@1158 c400ca83-b69d-9dd7-9705-49c6b8615e23
Change the way scrolling works in Maze, Graph, and Turtle.  Blockly's top is now fixed to the page and scrolls with it.  Blockly's bottom is fixed to the window and does not scroll.  Thus Blockly changes size as a result of scrolling.

R=spertus@google.com

Review URL: https://codereview.appspot.com/11982043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1159 c400ca83-b69d-9dd7-9705-49c6b8615e23
Updated viewport logic for mobile.
Maze and Turtle now zoom out on load for iPhone, Android, and iPad.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/11952044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1160 c400ca83-b69d-9dd7-9705-49c6b8615e23
Remove mime type on .json files.

Review URL: https://codereview.appspot.com/12077043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1161 c400ca83-b69d-9dd7-9705-49c6b8615e23
Change 'set item' to 'set item to', change 'get item' to 'item'.  Move 'if' block from 'Control' to 'Logic' category.  Rename 'Control' to 'Loops'.  Fix language selector in Code.  Fix report of number of tests in unit tests.

R=spertus@google.com

Review URL: https://codereview.appspot.com/12078043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1162 c400ca83-b69d-9dd7-9705-49c6b8615e23
Abstracted small screen fix to common.js.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/12046043

git-svn-id: http://blockly.googlecode.com/svn/trunk@1163 c400ca83-b69d-9dd7-9705-49c6b8615e23
Removed splash screen for Puzzle app because language list got too long.

R=neil.fraser@gmail.com

Review URL: https://codereview.appspot.com/12036044

git-svn-id: http://blockly.googlecode.com/svn/trunk@1164 c400ca83-b69d-9dd7-9705-49c6b8615e23
Localisation updates from http://translatewiki.net.

git-svn-id: http://blockly.googlecode.com/svn/trunk@1165 c400ca83-b69d-9dd7-9705-49c6b8615e23
Loops and conditionals both being green causes confusion.  Changing 'Logic' blocks from green to blue.  Changing 'List' blocks from blue to purple (a new colour).

R=spertus@google.com

Review URL: https://codereview.appspot.com/12001053

git-svn-id: http://blockly.googlecode.com/svn/trunk@1166 c400ca83-b69d-9dd7-9705-49c6b8615e23