Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Redirect all usages of goog.dom.a11y to goog.a11y.aria.

The changes are made by applying replace_string transformations, so
please double check the replacements.

R=chrishenry,nnaze,ruilopes
DELTA=829 (276 added, 65 deleted, 488 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=6196


git-svn-id: http://closure-library.googlecode.com/svn/trunk@2466 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information...
commit dc31915961ba58240618e25b1799560b8a667024 1 parent 135459e
atincheva@google.com authored
Showing with 623 additions and 457 deletions.
  1. +39 −39 closure/goog/deps.js
  2. +4 −3 closure/goog/ui/abstractspellchecker.js
  3. +8 −6 closure/goog/ui/ac/autocomplete_test.html
  4. +4 −2 closure/goog/ui/ac/inputhandler.js
  5. +18 −10 closure/goog/ui/ac/renderer.js
  6. +21 −12 closure/goog/ui/ac/renderer_test.html
  7. +8 −6 closure/goog/ui/animatedzippy_test.html
  8. +6 −7 closure/goog/ui/attachablemenu.js
  9. +9 −6 closure/goog/ui/buttonrenderer.js
  10. +11 −10 closure/goog/ui/buttonrenderer_test.html
  11. +4 −1 closure/goog/ui/charpicker.js
  12. +9 −4 closure/goog/ui/checkbox.js
  13. +28 −28 closure/goog/ui/checkbox_test.html
  14. +10 −10 closure/goog/ui/checkboxrenderer.js
  15. +15 −6 closure/goog/ui/container.js
  16. +4 −3 closure/goog/ui/containerrenderer.js
  17. +3 −3 closure/goog/ui/control.js
  18. +12 −10 closure/goog/ui/controlrenderer.js
  19. +72 −61 closure/goog/ui/controlrenderer_test.html
  20. +3 −2 closure/goog/ui/custombuttonrenderer.js
  21. +9 −5 closure/goog/ui/datepicker.js
  22. +3 −2 closure/goog/ui/datepicker_test.html
  23. +26 −19 closure/goog/ui/dialog.js
  24. +21 −11 closure/goog/ui/dialog_test.html
  25. +2 −2 closure/goog/ui/emoji/emojipaletterenderer.js
  26. +4 −2 closure/goog/ui/flatbuttonrenderer.js
  27. +17 −13 closure/goog/ui/gauge.js
  28. +19 −12 closure/goog/ui/labelinput.js
  29. +10 −8 closure/goog/ui/labelinput_test.html
  30. +2 −4 closure/goog/ui/menubarrenderer.js
  31. +21 −11 closure/goog/ui/menubutton.js
  32. +7 −4 closure/goog/ui/menubutton_test.html
  33. +9 −7 closure/goog/ui/menuitemrenderer.js
  34. +7 −4 closure/goog/ui/menuitemrenderer_test.html
  35. +7 −5 closure/goog/ui/menurenderer.js
  36. +5 −5 closure/goog/ui/paletterenderer.js
  37. +6 −3 closure/goog/ui/plaintextspellchecker.js
  38. +19 −6 closure/goog/ui/progressbar.js
  39. +14 −7 closure/goog/ui/ratings.js
  40. +11 −7 closure/goog/ui/select.js
  41. +15 −12 closure/goog/ui/select_test.html
  42. +6 −2 closure/goog/ui/separator.js
  43. +3 −3 closure/goog/ui/slider.js
  44. +14 −13 closure/goog/ui/sliderbase.js
  45. +5 −5 closure/goog/ui/sliderbase_test.html
  46. +3 −3 closure/goog/ui/style/app/menubuttonrenderer.js
  47. +8 −3 closure/goog/ui/submenurenderer.js
  48. +3 −3 closure/goog/ui/tabbarrenderer.js
  49. +2 −2 closure/goog/ui/tabbarrenderer_test.html
  50. +3 −3 closure/goog/ui/tabrenderer.js
  51. +2 −2 closure/goog/ui/tabrenderer_test.html
  52. +2 −2 closure/goog/ui/toolbarrenderer.js
  53. +28 −21 closure/goog/ui/tree/basenode.js
  54. +5 −3 closure/goog/ui/tree/treecontrol.js
  55. +3 −3 closure/goog/ui/twothumbslider.js
  56. +8 −6 closure/goog/ui/zippy.js
  57. +6 −5 closure/goog/ui/zippy_test.html
View
78 closure/goog/deps.js
@@ -631,14 +631,14 @@ goog.addDependency('tweak/registry.js', ['goog.tweak.Registry'], ['goog.asserts'
goog.addDependency('tweak/testhelpers.js', ['goog.tweak.testhelpers'], ['goog.tweak', 'goog.tweak.BooleanGroup', 'goog.tweak.BooleanInGroupSetting', 'goog.tweak.BooleanSetting', 'goog.tweak.ButtonAction', 'goog.tweak.NumericSetting', 'goog.tweak.Registry', 'goog.tweak.StringSetting']);
goog.addDependency('tweak/tweak.js', ['goog.tweak', 'goog.tweak.ConfigParams'], ['goog.asserts', 'goog.tweak.BooleanGroup', 'goog.tweak.BooleanInGroupSetting', 'goog.tweak.BooleanSetting', 'goog.tweak.ButtonAction', 'goog.tweak.NumericSetting', 'goog.tweak.Registry', 'goog.tweak.StringSetting']);
goog.addDependency('tweak/tweakui.js', ['goog.tweak.EntriesPanel', 'goog.tweak.TweakUi'], ['goog.array', 'goog.asserts', 'goog.dom.DomHelper', 'goog.object', 'goog.style', 'goog.tweak', 'goog.ui.Zippy', 'goog.userAgent']);
-goog.addDependency('ui/abstractspellchecker.js', ['goog.ui.AbstractSpellChecker', 'goog.ui.AbstractSpellChecker.AsyncResult'], ['goog.asserts', 'goog.dom', 'goog.dom.classes', 'goog.dom.selection', 'goog.events.EventType', 'goog.math.Coordinate', 'goog.spell.SpellCheck', 'goog.structs.Set', 'goog.style', 'goog.ui.MenuItem', 'goog.ui.MenuSeparator', 'goog.ui.PopupMenu']);
+goog.addDependency('ui/abstractspellchecker.js', ['goog.ui.AbstractSpellChecker', 'goog.ui.AbstractSpellChecker.AsyncResult'], ['goog.a11y.aria', 'goog.asserts', 'goog.dom', 'goog.dom.classes', 'goog.dom.selection', 'goog.events.EventType', 'goog.math.Coordinate', 'goog.spell.SpellCheck', 'goog.structs.Set', 'goog.style', 'goog.ui.MenuItem', 'goog.ui.MenuSeparator', 'goog.ui.PopupMenu']);
goog.addDependency('ui/ac/ac.js', ['goog.ui.ac'], ['goog.ui.ac.ArrayMatcher', 'goog.ui.ac.AutoComplete', 'goog.ui.ac.InputHandler', 'goog.ui.ac.Renderer']);
goog.addDependency('ui/ac/arraymatcher.js', ['goog.ui.ac.ArrayMatcher'], ['goog.iter', 'goog.string']);
goog.addDependency('ui/ac/autocomplete.js', ['goog.ui.ac.AutoComplete', 'goog.ui.ac.AutoComplete.EventType'], ['goog.events', 'goog.events.EventTarget']);
-goog.addDependency('ui/ac/inputhandler.js', ['goog.ui.ac.InputHandler'], ['goog.Disposable', 'goog.Timer', 'goog.dom', 'goog.dom.a11y', 'goog.dom.selection', 'goog.events.EventHandler', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.string', 'goog.userAgent', 'goog.userAgent.product']);
+goog.addDependency('ui/ac/inputhandler.js', ['goog.ui.ac.InputHandler'], ['goog.Disposable', 'goog.Timer', 'goog.a11y.aria', 'goog.asserts', 'goog.dom', 'goog.dom.selection', 'goog.events.EventHandler', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.string', 'goog.userAgent', 'goog.userAgent.product']);
goog.addDependency('ui/ac/remote.js', ['goog.ui.ac.Remote'], ['goog.ui.ac.AutoComplete', 'goog.ui.ac.InputHandler', 'goog.ui.ac.RemoteArrayMatcher', 'goog.ui.ac.Renderer']);
goog.addDependency('ui/ac/remotearraymatcher.js', ['goog.ui.ac.RemoteArrayMatcher'], ['goog.Disposable', 'goog.Uri', 'goog.events', 'goog.json', 'goog.net.XhrIo']);
-goog.addDependency('ui/ac/renderer.js', ['goog.ui.ac.Renderer', 'goog.ui.ac.Renderer.CustomRenderer'], ['goog.dispose', 'goog.dom', 'goog.dom.a11y', 'goog.dom.classes', 'goog.events.Event', 'goog.events.EventTarget', 'goog.events.EventType', 'goog.fx.dom.FadeInAndShow', 'goog.fx.dom.FadeOutAndHide', 'goog.iter', 'goog.positioning', 'goog.positioning.Corner', 'goog.positioning.Overflow', 'goog.string', 'goog.style', 'goog.ui.IdGenerator', 'goog.ui.ac.AutoComplete.EventType', 'goog.userAgent']);
+goog.addDependency('ui/ac/renderer.js', ['goog.ui.ac.Renderer', 'goog.ui.ac.Renderer.CustomRenderer'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.a11y.aria.State', 'goog.dispose', 'goog.dom', 'goog.dom.classes', 'goog.events.Event', 'goog.events.EventTarget', 'goog.events.EventType', 'goog.fx.dom.FadeInAndShow', 'goog.fx.dom.FadeOutAndHide', 'goog.iter', 'goog.positioning', 'goog.positioning.Corner', 'goog.positioning.Overflow', 'goog.string', 'goog.style', 'goog.ui.IdGenerator', 'goog.ui.ac.AutoComplete.EventType', 'goog.userAgent']);
goog.addDependency('ui/ac/renderoptions.js', ['goog.ui.ac.RenderOptions'], []);
goog.addDependency('ui/ac/richinputhandler.js', ['goog.ui.ac.RichInputHandler'], ['goog.ui.ac.InputHandler']);
goog.addDependency('ui/ac/richremote.js', ['goog.ui.ac.RichRemote'], ['goog.ui.ac.AutoComplete', 'goog.ui.ac.Remote', 'goog.ui.ac.Renderer', 'goog.ui.ac.RichInputHandler', 'goog.ui.ac.RichRemoteArrayMatcher']);
@@ -646,17 +646,17 @@ goog.addDependency('ui/ac/richremotearraymatcher.js', ['goog.ui.ac.RichRemoteArr
goog.addDependency('ui/activitymonitor.js', ['goog.ui.ActivityMonitor'], ['goog.array', 'goog.dom', 'goog.events', 'goog.events.EventHandler', 'goog.events.EventTarget', 'goog.events.EventType']);
goog.addDependency('ui/advancedtooltip.js', ['goog.ui.AdvancedTooltip'], ['goog.events.EventType', 'goog.math.Coordinate', 'goog.ui.Tooltip', 'goog.userAgent']);
goog.addDependency('ui/animatedzippy.js', ['goog.ui.AnimatedZippy'], ['goog.dom', 'goog.events', 'goog.fx.Animation', 'goog.fx.Animation.EventType', 'goog.fx.Transition.EventType', 'goog.fx.easing', 'goog.ui.Zippy', 'goog.ui.ZippyEvent']);
-goog.addDependency('ui/attachablemenu.js', ['goog.ui.AttachableMenu'], ['goog.dom.a11y', 'goog.dom.a11y.State', 'goog.events.KeyCodes', 'goog.ui.ItemEvent', 'goog.ui.MenuBase']);
+goog.addDependency('ui/attachablemenu.js', ['goog.ui.AttachableMenu'], ['goog.a11y.aria', 'goog.a11y.aria.State', 'goog.asserts', 'goog.events.KeyCodes', 'goog.ui.ItemEvent', 'goog.ui.MenuBase']);
goog.addDependency('ui/bidiinput.js', ['goog.ui.BidiInput'], ['goog.events', 'goog.events.InputHandler', 'goog.i18n.bidi', 'goog.ui.Component']);
goog.addDependency('ui/bubble.js', ['goog.ui.Bubble'], ['goog.Timer', 'goog.dom', 'goog.events', 'goog.events.Event', 'goog.events.EventType', 'goog.math.Box', 'goog.positioning', 'goog.positioning.AbsolutePosition', 'goog.positioning.AbstractPosition', 'goog.positioning.AnchoredPosition', 'goog.positioning.Corner', 'goog.style', 'goog.ui.Component', 'goog.ui.Popup', 'goog.ui.Popup.AnchoredPosition']);
goog.addDependency('ui/button.js', ['goog.ui.Button', 'goog.ui.Button.Side'], ['goog.events.KeyCodes', 'goog.ui.ButtonRenderer', 'goog.ui.ButtonSide', 'goog.ui.Control', 'goog.ui.ControlContent', 'goog.ui.NativeButtonRenderer']);
-goog.addDependency('ui/buttonrenderer.js', ['goog.ui.ButtonRenderer'], ['goog.dom.a11y', 'goog.dom.a11y.Role', 'goog.dom.a11y.State', 'goog.ui.ButtonSide', 'goog.ui.Component.State', 'goog.ui.ControlRenderer']);
+goog.addDependency('ui/buttonrenderer.js', ['goog.ui.ButtonRenderer'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.a11y.aria.State', 'goog.asserts', 'goog.ui.ButtonSide', 'goog.ui.Component.State', 'goog.ui.ControlRenderer']);
goog.addDependency('ui/buttonside.js', ['goog.ui.ButtonSide'], []);
goog.addDependency('ui/charcounter.js', ['goog.ui.CharCounter', 'goog.ui.CharCounter.Display'], ['goog.dom', 'goog.events', 'goog.events.EventTarget', 'goog.events.InputHandler']);
-goog.addDependency('ui/charpicker.js', ['goog.ui.CharPicker'], ['goog.array', 'goog.dom', 'goog.events', 'goog.events.EventHandler', 'goog.events.EventType', 'goog.events.InputHandler', 'goog.events.KeyHandler', 'goog.i18n.CharListDecompressor', 'goog.i18n.uChar', 'goog.i18n.uChar.NameFetcher', 'goog.structs.Set', 'goog.style', 'goog.ui.Button', 'goog.ui.Component', 'goog.ui.ContainerScroller', 'goog.ui.FlatButtonRenderer', 'goog.ui.HoverCard', 'goog.ui.LabelInput', 'goog.ui.Menu', 'goog.ui.MenuButton', 'goog.ui.MenuItem', 'goog.ui.Tooltip.ElementTooltipPosition']);
-goog.addDependency('ui/checkbox.js', ['goog.ui.Checkbox', 'goog.ui.Checkbox.State'], ['goog.dom.a11y', 'goog.dom.a11y.State', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.ui.CheckboxRenderer', 'goog.ui.Component.EventType', 'goog.ui.Component.State', 'goog.ui.Control', 'goog.ui.registry']);
+goog.addDependency('ui/charpicker.js', ['goog.ui.CharPicker'], ['goog.a11y.aria', 'goog.array', 'goog.asserts', 'goog.dom', 'goog.events', 'goog.events.EventHandler', 'goog.events.EventType', 'goog.events.InputHandler', 'goog.events.KeyHandler', 'goog.i18n.CharListDecompressor', 'goog.i18n.uChar', 'goog.i18n.uChar.NameFetcher', 'goog.structs.Set', 'goog.style', 'goog.ui.Button', 'goog.ui.Component', 'goog.ui.ContainerScroller', 'goog.ui.FlatButtonRenderer', 'goog.ui.HoverCard', 'goog.ui.LabelInput', 'goog.ui.Menu', 'goog.ui.MenuButton', 'goog.ui.MenuItem', 'goog.ui.Tooltip.ElementTooltipPosition']);
+goog.addDependency('ui/checkbox.js', ['goog.ui.Checkbox', 'goog.ui.Checkbox.State'], ['goog.a11y.aria', 'goog.a11y.aria.State', 'goog.asserts', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.ui.CheckboxRenderer', 'goog.ui.Component.EventType', 'goog.ui.Component.State', 'goog.ui.Control', 'goog.ui.registry']);
goog.addDependency('ui/checkboxmenuitem.js', ['goog.ui.CheckBoxMenuItem'], ['goog.ui.ControlContent', 'goog.ui.MenuItem', 'goog.ui.registry']);
-goog.addDependency('ui/checkboxrenderer.js', ['goog.ui.CheckboxRenderer'], ['goog.array', 'goog.asserts', 'goog.dom.a11y', 'goog.dom.a11y.Role', 'goog.dom.a11y.State', 'goog.dom.classes', 'goog.object', 'goog.ui.ControlRenderer']);
+goog.addDependency('ui/checkboxrenderer.js', ['goog.ui.CheckboxRenderer'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.a11y.aria.State', 'goog.array', 'goog.asserts', 'goog.dom.classes', 'goog.object', 'goog.ui.ControlRenderer']);
goog.addDependency('ui/colorbutton.js', ['goog.ui.ColorButton'], ['goog.ui.Button', 'goog.ui.ColorButtonRenderer', 'goog.ui.registry']);
goog.addDependency('ui/colorbuttonrenderer.js', ['goog.ui.ColorButtonRenderer'], ['goog.dom.classes', 'goog.functions', 'goog.ui.ColorMenuButtonRenderer']);
goog.addDependency('ui/colormenubutton.js', ['goog.ui.ColorMenuButton'], ['goog.array', 'goog.object', 'goog.ui.ColorMenuButtonRenderer', 'goog.ui.ColorPalette', 'goog.ui.Component.EventType', 'goog.ui.ControlContent', 'goog.ui.Menu', 'goog.ui.MenuButton', 'goog.ui.registry']);
@@ -666,22 +666,22 @@ goog.addDependency('ui/colorpicker.js', ['goog.ui.ColorPicker', 'goog.ui.ColorPi
goog.addDependency('ui/colorsplitbehavior.js', ['goog.ui.ColorSplitBehavior'], ['goog.ui.ColorButton', 'goog.ui.ColorMenuButton', 'goog.ui.SplitBehavior']);
goog.addDependency('ui/combobox.js', ['goog.ui.ComboBox', 'goog.ui.ComboBoxItem'], ['goog.Timer', 'goog.debug.Logger', 'goog.dom.classes', 'goog.events', 'goog.events.InputHandler', 'goog.events.KeyCodes', 'goog.events.KeyHandler', 'goog.positioning.Corner', 'goog.positioning.MenuAnchoredPosition', 'goog.string', 'goog.style', 'goog.ui.Component', 'goog.ui.ItemEvent', 'goog.ui.LabelInput', 'goog.ui.Menu', 'goog.ui.MenuItem', 'goog.ui.registry', 'goog.userAgent']);
goog.addDependency('ui/component.js', ['goog.ui.Component', 'goog.ui.Component.Error', 'goog.ui.Component.EventType', 'goog.ui.Component.State'], ['goog.array', 'goog.array.ArrayLike', 'goog.dom', 'goog.events.EventHandler', 'goog.events.EventTarget', 'goog.object', 'goog.style', 'goog.ui.IdGenerator']);
-goog.addDependency('ui/container.js', ['goog.ui.Container', 'goog.ui.Container.EventType', 'goog.ui.Container.Orientation'], ['goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.State', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.style', 'goog.ui.Component', 'goog.ui.Component.Error', 'goog.ui.Component.EventType', 'goog.ui.Component.State', 'goog.ui.ContainerRenderer', 'goog.ui.Control']);
-goog.addDependency('ui/containerrenderer.js', ['goog.ui.ContainerRenderer'], ['goog.array', 'goog.dom', 'goog.dom.a11y', 'goog.dom.classes', 'goog.string', 'goog.style', 'goog.ui.Separator', 'goog.ui.registry', 'goog.userAgent']);
+goog.addDependency('ui/container.js', ['goog.ui.Container', 'goog.ui.Container.EventType', 'goog.ui.Container.Orientation'], ['goog.a11y.aria', 'goog.a11y.aria.State', 'goog.asserts', 'goog.dom', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.style', 'goog.ui.Component', 'goog.ui.Component.Error', 'goog.ui.Component.EventType', 'goog.ui.Component.State', 'goog.ui.ContainerRenderer', 'goog.ui.Control']);
+goog.addDependency('ui/containerrenderer.js', ['goog.ui.ContainerRenderer'], ['goog.a11y.aria', 'goog.array', 'goog.asserts', 'goog.dom', 'goog.dom.classes', 'goog.string', 'goog.style', 'goog.ui.Separator', 'goog.ui.registry', 'goog.userAgent']);
goog.addDependency('ui/containerscroller.js', ['goog.ui.ContainerScroller'], ['goog.Timer', 'goog.events.EventHandler', 'goog.style', 'goog.ui.Component', 'goog.ui.Component.EventType', 'goog.ui.Container.EventType']);
goog.addDependency('ui/control.js', ['goog.ui.Control'], ['goog.array', 'goog.dom', 'goog.events.BrowserEvent.MouseButton', 'goog.events.Event', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.string', 'goog.ui.Component', 'goog.ui.Component.Error', 'goog.ui.Component.EventType', 'goog.ui.Component.State', 'goog.ui.ControlContent', 'goog.ui.ControlRenderer', 'goog.ui.decorate', 'goog.ui.registry', 'goog.userAgent']);
goog.addDependency('ui/controlcontent.js', ['goog.ui.ControlContent'], []);
-goog.addDependency('ui/controlrenderer.js', ['goog.ui.ControlRenderer'], ['goog.a11y.aria', 'goog.a11y.aria.State', 'goog.array', 'goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.State', 'goog.dom.classes', 'goog.object', 'goog.style', 'goog.ui.Component.State', 'goog.ui.ControlContent', 'goog.userAgent']);
+goog.addDependency('ui/controlrenderer.js', ['goog.ui.ControlRenderer'], ['goog.a11y.aria', 'goog.a11y.aria.State', 'goog.array', 'goog.asserts', 'goog.dom', 'goog.dom.classes', 'goog.object', 'goog.style', 'goog.ui.Component', 'goog.userAgent']);
goog.addDependency('ui/cookieeditor.js', ['goog.ui.CookieEditor'], ['goog.dom', 'goog.dom.TagName', 'goog.events.EventType', 'goog.net.cookies', 'goog.string', 'goog.style', 'goog.ui.Component']);
goog.addDependency('ui/css3buttonrenderer.js', ['goog.ui.Css3ButtonRenderer'], ['goog.dom', 'goog.dom.TagName', 'goog.dom.classes', 'goog.ui.Button', 'goog.ui.ButtonRenderer', 'goog.ui.ControlContent', 'goog.ui.INLINE_BLOCK_CLASSNAME', 'goog.ui.registry']);
goog.addDependency('ui/css3menubuttonrenderer.js', ['goog.ui.Css3MenuButtonRenderer'], ['goog.dom', 'goog.dom.TagName', 'goog.ui.ControlContent', 'goog.ui.INLINE_BLOCK_CLASSNAME', 'goog.ui.MenuButton', 'goog.ui.MenuButtonRenderer', 'goog.ui.registry']);
goog.addDependency('ui/cssnames.js', ['goog.ui.INLINE_BLOCK_CLASSNAME'], []);
goog.addDependency('ui/custombutton.js', ['goog.ui.CustomButton'], ['goog.ui.Button', 'goog.ui.ControlContent', 'goog.ui.CustomButtonRenderer', 'goog.ui.registry']);
-goog.addDependency('ui/custombuttonrenderer.js', ['goog.ui.CustomButtonRenderer'], ['goog.dom', 'goog.dom.classes', 'goog.string', 'goog.ui.ButtonRenderer', 'goog.ui.ControlContent', 'goog.ui.INLINE_BLOCK_CLASSNAME']);
+goog.addDependency('ui/custombuttonrenderer.js', ['goog.ui.CustomButtonRenderer'], ['goog.a11y.aria', 'goog.dom', 'goog.dom.classes', 'goog.string', 'goog.ui.ButtonRenderer', 'goog.ui.ControlContent', 'goog.ui.INLINE_BLOCK_CLASSNAME']);
goog.addDependency('ui/customcolorpalette.js', ['goog.ui.CustomColorPalette'], ['goog.color', 'goog.dom', 'goog.ui.ColorPalette']);
-goog.addDependency('ui/datepicker.js', ['goog.ui.DatePicker', 'goog.ui.DatePicker.Events', 'goog.ui.DatePickerEvent'], ['goog.date', 'goog.date.Date', 'goog.date.Interval', 'goog.dom', 'goog.dom.a11y', 'goog.dom.classes', 'goog.events', 'goog.events.Event', 'goog.events.EventType', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.i18n.DateTimeFormat', 'goog.i18n.DateTimeSymbols', 'goog.style', 'goog.ui.Component', 'goog.ui.IdGenerator']);
+goog.addDependency('ui/datepicker.js', ['goog.ui.DatePicker', 'goog.ui.DatePicker.Events', 'goog.ui.DatePickerEvent'], ['goog.a11y.aria', 'goog.asserts', 'goog.date', 'goog.date.Date', 'goog.date.Interval', 'goog.dom', 'goog.dom.classes', 'goog.events', 'goog.events.Event', 'goog.events.EventType', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.i18n.DateTimeFormat', 'goog.i18n.DateTimeSymbols', 'goog.style', 'goog.ui.Component', 'goog.ui.IdGenerator']);
goog.addDependency('ui/decorate.js', ['goog.ui.decorate'], ['goog.ui.registry']);
-goog.addDependency('ui/dialog.js', ['goog.ui.Dialog', 'goog.ui.Dialog.ButtonSet', 'goog.ui.Dialog.ButtonSet.DefaultButtons', 'goog.ui.Dialog.DefaultButtonCaptions', 'goog.ui.Dialog.DefaultButtonKeys', 'goog.ui.Dialog.Event', 'goog.ui.Dialog.EventType'], ['goog.asserts', 'goog.dom', 'goog.dom.NodeType', 'goog.dom.TagName', 'goog.dom.a11y', 'goog.dom.a11y.Role', 'goog.dom.classes', 'goog.events', 'goog.events.Event', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.fx.Dragger', 'goog.math.Rect', 'goog.structs', 'goog.structs.Map', 'goog.style', 'goog.ui.ModalPopup', 'goog.userAgent']);
+goog.addDependency('ui/dialog.js', ['goog.ui.Dialog', 'goog.ui.Dialog.ButtonSet', 'goog.ui.Dialog.ButtonSet.DefaultButtons', 'goog.ui.Dialog.DefaultButtonCaptions', 'goog.ui.Dialog.DefaultButtonKeys', 'goog.ui.Dialog.Event', 'goog.ui.Dialog.EventType'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.a11y.aria.State', 'goog.asserts', 'goog.dom', 'goog.dom.NodeType', 'goog.dom.TagName', 'goog.dom.classes', 'goog.events', 'goog.events.Event', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.fx.Dragger', 'goog.math.Rect', 'goog.structs', 'goog.structs.Map', 'goog.style', 'goog.ui.ModalPopup', 'goog.userAgent']);
goog.addDependency('ui/dimensionpicker.js', ['goog.ui.DimensionPicker'], ['goog.events.EventType', 'goog.math.Size', 'goog.ui.Control', 'goog.ui.DimensionPickerRenderer', 'goog.ui.registry']);
goog.addDependency('ui/dimensionpickerrenderer.js', ['goog.ui.DimensionPickerRenderer'], ['goog.dom', 'goog.dom.TagName', 'goog.i18n.bidi', 'goog.style', 'goog.ui.ControlRenderer', 'goog.userAgent']);
goog.addDependency('ui/dragdropdetector.js', ['goog.ui.DragDropDetector', 'goog.ui.DragDropDetector.EventType', 'goog.ui.DragDropDetector.ImageDropEvent', 'goog.ui.DragDropDetector.LinkDropEvent'], ['goog.dom', 'goog.dom.TagName', 'goog.events.Event', 'goog.events.EventHandler', 'goog.events.EventTarget', 'goog.events.EventType', 'goog.math.Coordinate', 'goog.string', 'goog.style', 'goog.userAgent']);
@@ -698,7 +698,7 @@ goog.addDependency('ui/editor/toolbarcontroller.js', ['goog.ui.editor.ToolbarCon
goog.addDependency('ui/editor/toolbarfactory.js', ['goog.ui.editor.ToolbarFactory'], ['goog.array', 'goog.dom', 'goog.string', 'goog.string.Unicode', 'goog.style', 'goog.ui.Component.State', 'goog.ui.Container.Orientation', 'goog.ui.ControlContent', 'goog.ui.Option', 'goog.ui.Toolbar', 'goog.ui.ToolbarButton', 'goog.ui.ToolbarColorMenuButton', 'goog.ui.ToolbarMenuButton', 'goog.ui.ToolbarRenderer', 'goog.ui.ToolbarSelect', 'goog.userAgent']);
goog.addDependency('ui/emoji/emoji.js', ['goog.ui.emoji.Emoji'], []);
goog.addDependency('ui/emoji/emojipalette.js', ['goog.ui.emoji.EmojiPalette'], ['goog.events.Event', 'goog.events.EventType', 'goog.net.ImageLoader', 'goog.ui.Palette', 'goog.ui.emoji.Emoji', 'goog.ui.emoji.EmojiPaletteRenderer']);
-goog.addDependency('ui/emoji/emojipaletterenderer.js', ['goog.ui.emoji.EmojiPaletteRenderer'], ['goog.dom', 'goog.dom.a11y', 'goog.ui.PaletteRenderer', 'goog.ui.emoji.Emoji', 'goog.ui.emoji.SpriteInfo']);
+goog.addDependency('ui/emoji/emojipaletterenderer.js', ['goog.ui.emoji.EmojiPaletteRenderer'], ['goog.a11y.aria', 'goog.dom', 'goog.ui.PaletteRenderer', 'goog.ui.emoji.Emoji', 'goog.ui.emoji.SpriteInfo']);
goog.addDependency('ui/emoji/emojipicker.js', ['goog.ui.emoji.EmojiPicker'], ['goog.debug.Logger', 'goog.dom', 'goog.ui.Component', 'goog.ui.TabPane', 'goog.ui.TabPane.TabPage', 'goog.ui.emoji.Emoji', 'goog.ui.emoji.EmojiPalette', 'goog.ui.emoji.EmojiPaletteRenderer', 'goog.ui.emoji.ProgressiveEmojiPaletteRenderer']);
goog.addDependency('ui/emoji/popupemojipicker.js', ['goog.ui.emoji.PopupEmojiPicker'], ['goog.dom', 'goog.events.EventType', 'goog.positioning.AnchoredPosition', 'goog.ui.Component', 'goog.ui.Popup', 'goog.ui.emoji.EmojiPicker']);
goog.addDependency('ui/emoji/progressiveemojipaletterenderer.js', ['goog.ui.emoji.ProgressiveEmojiPaletteRenderer'], ['goog.ui.emoji.EmojiPaletteRenderer']);
@@ -721,10 +721,10 @@ goog.addDependency('ui/equation/texpane.js', ['goog.ui.equation.TexPane'], ['goo
goog.addDependency('ui/filteredmenu.js', ['goog.ui.FilteredMenu'], ['goog.dom', 'goog.events.EventType', 'goog.events.InputHandler', 'goog.events.KeyCodes', 'goog.string', 'goog.ui.FilterObservingMenuItem', 'goog.ui.Menu']);
goog.addDependency('ui/filterobservingmenuitem.js', ['goog.ui.FilterObservingMenuItem'], ['goog.ui.ControlContent', 'goog.ui.FilterObservingMenuItemRenderer', 'goog.ui.MenuItem', 'goog.ui.registry']);
goog.addDependency('ui/filterobservingmenuitemrenderer.js', ['goog.ui.FilterObservingMenuItemRenderer'], ['goog.ui.MenuItemRenderer']);
-goog.addDependency('ui/flatbuttonrenderer.js', ['goog.ui.FlatButtonRenderer'], ['goog.dom.classes', 'goog.ui.Button', 'goog.ui.ButtonRenderer', 'goog.ui.INLINE_BLOCK_CLASSNAME', 'goog.ui.registry']);
+goog.addDependency('ui/flatbuttonrenderer.js', ['goog.ui.FlatButtonRenderer'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.dom.classes', 'goog.ui.Button', 'goog.ui.ButtonRenderer', 'goog.ui.INLINE_BLOCK_CLASSNAME', 'goog.ui.registry']);
goog.addDependency('ui/flatmenubuttonrenderer.js', ['goog.ui.FlatMenuButtonRenderer'], ['goog.style', 'goog.ui.ControlContent', 'goog.ui.FlatButtonRenderer', 'goog.ui.INLINE_BLOCK_CLASSNAME', 'goog.ui.Menu', 'goog.ui.MenuButton', 'goog.ui.MenuRenderer', 'goog.ui.registry']);
goog.addDependency('ui/formpost.js', ['goog.ui.FormPost'], ['goog.array', 'goog.dom.TagName', 'goog.string', 'goog.string.StringBuffer', 'goog.ui.Component']);
-goog.addDependency('ui/gauge.js', ['goog.ui.Gauge', 'goog.ui.GaugeColoredRange'], ['goog.dom', 'goog.dom.a11y', 'goog.fx.Animation', 'goog.fx.Animation.EventType', 'goog.fx.Transition.EventType', 'goog.fx.easing', 'goog.graphics', 'goog.graphics.Font', 'goog.graphics.Path', 'goog.graphics.SolidFill', 'goog.ui.Component', 'goog.ui.GaugeTheme']);
+goog.addDependency('ui/gauge.js', ['goog.ui.Gauge', 'goog.ui.GaugeColoredRange'], ['goog.a11y.aria', 'goog.asserts', 'goog.dom', 'goog.fx.Animation', 'goog.fx.Animation.EventType', 'goog.fx.Transition.EventType', 'goog.fx.easing', 'goog.graphics', 'goog.graphics.Font', 'goog.graphics.Path', 'goog.graphics.SolidFill', 'goog.ui.Component', 'goog.ui.GaugeTheme']);
goog.addDependency('ui/gaugetheme.js', ['goog.ui.GaugeTheme'], ['goog.graphics.LinearGradient', 'goog.graphics.SolidFill', 'goog.graphics.Stroke']);
goog.addDependency('ui/hovercard.js', ['goog.ui.HoverCard', 'goog.ui.HoverCard.EventType', 'goog.ui.HoverCard.TriggerEvent'], ['goog.dom', 'goog.events', 'goog.events.EventType', 'goog.ui.AdvancedTooltip']);
goog.addDependency('ui/hsvapalette.js', ['goog.ui.HsvaPalette'], ['goog.array', 'goog.color', 'goog.color.alpha', 'goog.events.EventType', 'goog.ui.Component.EventType', 'goog.ui.HsvPalette']);
@@ -737,7 +737,7 @@ goog.addDependency('ui/imagelessmenubuttonrenderer.js', ['goog.ui.ImagelessMenuB
goog.addDependency('ui/inputdatepicker.js', ['goog.ui.InputDatePicker'], ['goog.date.DateTime', 'goog.dom', 'goog.string', 'goog.ui.Component', 'goog.ui.DatePicker', 'goog.ui.PopupBase', 'goog.ui.PopupDatePicker']);
goog.addDependency('ui/itemevent.js', ['goog.ui.ItemEvent'], ['goog.events.Event']);
goog.addDependency('ui/keyboardshortcuthandler.js', ['goog.ui.KeyboardShortcutEvent', 'goog.ui.KeyboardShortcutHandler', 'goog.ui.KeyboardShortcutHandler.EventType'], ['goog.Timer', 'goog.events', 'goog.events.Event', 'goog.events.EventTarget', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyNames', 'goog.object']);
-goog.addDependency('ui/labelinput.js', ['goog.ui.LabelInput'], ['goog.Timer', 'goog.asserts', 'goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.State', 'goog.dom.classlist', 'goog.events.EventHandler', 'goog.events.EventType', 'goog.ui.Component', 'goog.userAgent']);
+goog.addDependency('ui/labelinput.js', ['goog.ui.LabelInput'], ['goog.Timer', 'goog.a11y.aria', 'goog.a11y.aria.State', 'goog.asserts', 'goog.dom', 'goog.dom.classlist', 'goog.events.EventHandler', 'goog.events.EventType', 'goog.ui.Component', 'goog.userAgent']);
goog.addDependency('ui/linkbuttonrenderer.js', ['goog.ui.LinkButtonRenderer'], ['goog.ui.Button', 'goog.ui.FlatButtonRenderer', 'goog.ui.registry']);
goog.addDependency('ui/media/flashobject.js', ['goog.ui.media.FlashObject', 'goog.ui.media.FlashObject.ScriptAccessLevel', 'goog.ui.media.FlashObject.Wmodes'], ['goog.asserts', 'goog.debug.Logger', 'goog.events.EventHandler', 'goog.string', 'goog.structs.Map', 'goog.style', 'goog.ui.Component', 'goog.ui.Component.Error', 'goog.userAgent', 'goog.userAgent.flash']);
goog.addDependency('ui/media/flickr.js', ['goog.ui.media.FlickrSet', 'goog.ui.media.FlickrSetModel'], ['goog.object', 'goog.ui.media.FlashObject', 'goog.ui.media.Media', 'goog.ui.media.MediaModel', 'goog.ui.media.MediaModel.Player', 'goog.ui.media.MediaRenderer']);
@@ -752,15 +752,15 @@ goog.addDependency('ui/media/youtube.js', ['goog.ui.media.Youtube', 'goog.ui.med
goog.addDependency('ui/menu.js', ['goog.ui.Menu', 'goog.ui.Menu.EventType'], ['goog.math.Coordinate', 'goog.string', 'goog.style', 'goog.ui.Component.EventType', 'goog.ui.Component.State', 'goog.ui.Container', 'goog.ui.Container.Orientation', 'goog.ui.MenuHeader', 'goog.ui.MenuItem', 'goog.ui.MenuRenderer', 'goog.ui.MenuSeparator']);
goog.addDependency('ui/menubar.js', ['goog.ui.menuBar'], ['goog.ui.Container', 'goog.ui.MenuBarRenderer']);
goog.addDependency('ui/menubardecorator.js', ['goog.ui.menuBarDecorator'], ['goog.ui.Container', 'goog.ui.menuBar']);
-goog.addDependency('ui/menubarrenderer.js', ['goog.ui.MenuBarRenderer'], ['goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.Role', 'goog.dom.a11y.State', 'goog.ui.ContainerRenderer']);
+goog.addDependency('ui/menubarrenderer.js', ['goog.ui.MenuBarRenderer'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.a11y.aria.State', 'goog.dom', 'goog.ui.ContainerRenderer']);
goog.addDependency('ui/menubase.js', ['goog.ui.MenuBase'], ['goog.events.EventHandler', 'goog.events.EventType', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.ui.Popup']);
-goog.addDependency('ui/menubutton.js', ['goog.ui.MenuButton'], ['goog.Timer', 'goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.State', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler.EventType', 'goog.math.Box', 'goog.math.Rect', 'goog.positioning', 'goog.positioning.Corner', 'goog.positioning.MenuAnchoredPosition', 'goog.style', 'goog.ui.Button', 'goog.ui.Component.EventType', 'goog.ui.Component.State', 'goog.ui.Menu', 'goog.ui.MenuButtonRenderer', 'goog.ui.registry', 'goog.userAgent', 'goog.userAgent.product']);
+goog.addDependency('ui/menubutton.js', ['goog.ui.MenuButton'], ['goog.Timer', 'goog.a11y.aria', 'goog.a11y.aria.State', 'goog.asserts', 'goog.dom', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler.EventType', 'goog.math.Box', 'goog.math.Rect', 'goog.positioning', 'goog.positioning.Corner', 'goog.positioning.MenuAnchoredPosition', 'goog.style', 'goog.ui.Button', 'goog.ui.Component.EventType', 'goog.ui.Component.State', 'goog.ui.Menu', 'goog.ui.MenuButtonRenderer', 'goog.ui.registry', 'goog.userAgent', 'goog.userAgent.product']);
goog.addDependency('ui/menubuttonrenderer.js', ['goog.ui.MenuButtonRenderer'], ['goog.dom', 'goog.style', 'goog.ui.CustomButtonRenderer', 'goog.ui.INLINE_BLOCK_CLASSNAME', 'goog.ui.Menu', 'goog.ui.MenuRenderer', 'goog.userAgent']);
goog.addDependency('ui/menuheader.js', ['goog.ui.MenuHeader'], ['goog.ui.Component.State', 'goog.ui.Control', 'goog.ui.MenuHeaderRenderer', 'goog.ui.registry']);
goog.addDependency('ui/menuheaderrenderer.js', ['goog.ui.MenuHeaderRenderer'], ['goog.dom', 'goog.dom.classes', 'goog.ui.ControlRenderer']);
goog.addDependency('ui/menuitem.js', ['goog.ui.MenuItem'], ['goog.array', 'goog.dom', 'goog.dom.classes', 'goog.events.KeyCodes', 'goog.math.Coordinate', 'goog.string', 'goog.ui.Component.State', 'goog.ui.Control', 'goog.ui.ControlContent', 'goog.ui.MenuItemRenderer', 'goog.ui.registry']);
-goog.addDependency('ui/menuitemrenderer.js', ['goog.ui.MenuItemRenderer'], ['goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.Role', 'goog.dom.classes', 'goog.ui.Component.State', 'goog.ui.ControlContent', 'goog.ui.ControlRenderer']);
-goog.addDependency('ui/menurenderer.js', ['goog.ui.MenuRenderer'], ['goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.Role', 'goog.dom.a11y.State', 'goog.ui.ContainerRenderer', 'goog.ui.Separator']);
+goog.addDependency('ui/menuitemrenderer.js', ['goog.ui.MenuItemRenderer'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.dom', 'goog.dom.classes', 'goog.ui.Component.State', 'goog.ui.ControlContent', 'goog.ui.ControlRenderer']);
+goog.addDependency('ui/menurenderer.js', ['goog.ui.MenuRenderer'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.a11y.aria.State', 'goog.asserts', 'goog.dom', 'goog.ui.ContainerRenderer', 'goog.ui.Separator']);
goog.addDependency('ui/menuseparator.js', ['goog.ui.MenuSeparator'], ['goog.ui.MenuSeparatorRenderer', 'goog.ui.Separator', 'goog.ui.registry']);
goog.addDependency('ui/menuseparatorrenderer.js', ['goog.ui.MenuSeparatorRenderer'], ['goog.dom', 'goog.dom.classes', 'goog.ui.ControlContent', 'goog.ui.ControlRenderer']);
goog.addDependency('ui/mockactivitymonitor.js', ['goog.ui.MockActivityMonitor'], ['goog.events.EventType', 'goog.ui.ActivityMonitor']);
@@ -771,42 +771,42 @@ goog.addDependency('ui/offlinestatuscard.js', ['goog.ui.OfflineStatusCard', 'goo
goog.addDependency('ui/offlinestatuscomponent.js', ['goog.ui.OfflineStatusComponent', 'goog.ui.OfflineStatusComponent.StatusClassNames'], ['goog.dom.classes', 'goog.events.EventType', 'goog.gears.StatusType', 'goog.positioning', 'goog.positioning.AnchoredPosition', 'goog.positioning.Corner', 'goog.positioning.Overflow', 'goog.ui.Component', 'goog.ui.OfflineStatusCard.EventType', 'goog.ui.Popup']);
goog.addDependency('ui/option.js', ['goog.ui.Option'], ['goog.ui.Component.EventType', 'goog.ui.ControlContent', 'goog.ui.MenuItem', 'goog.ui.registry']);
goog.addDependency('ui/palette.js', ['goog.ui.Palette'], ['goog.array', 'goog.dom', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.math.Size', 'goog.ui.Component', 'goog.ui.Control', 'goog.ui.PaletteRenderer', 'goog.ui.SelectionModel']);
-goog.addDependency('ui/paletterenderer.js', ['goog.ui.PaletteRenderer'], ['goog.array', 'goog.dom', 'goog.dom.NodeType', 'goog.dom.a11y', 'goog.dom.classes', 'goog.style', 'goog.ui.ControlRenderer', 'goog.userAgent']);
-goog.addDependency('ui/plaintextspellchecker.js', ['goog.ui.PlainTextSpellChecker'], ['goog.Timer', 'goog.dom', 'goog.dom.a11y', 'goog.events.EventHandler', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.style', 'goog.ui.AbstractSpellChecker', 'goog.ui.AbstractSpellChecker.AsyncResult', 'goog.ui.Component.EventType', 'goog.userAgent']);
+goog.addDependency('ui/paletterenderer.js', ['goog.ui.PaletteRenderer'], ['goog.a11y.aria', 'goog.array', 'goog.dom', 'goog.dom.NodeType', 'goog.dom.classes', 'goog.style', 'goog.ui.ControlRenderer', 'goog.userAgent']);
+goog.addDependency('ui/plaintextspellchecker.js', ['goog.ui.PlainTextSpellChecker'], ['goog.Timer', 'goog.a11y.aria', 'goog.asserts', 'goog.dom', 'goog.events.EventHandler', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.style', 'goog.ui.AbstractSpellChecker', 'goog.ui.AbstractSpellChecker.AsyncResult', 'goog.ui.Component.EventType', 'goog.userAgent']);
goog.addDependency('ui/popup.js', ['goog.ui.Popup', 'goog.ui.Popup.AbsolutePosition', 'goog.ui.Popup.AnchoredPosition', 'goog.ui.Popup.AnchoredViewPortPosition', 'goog.ui.Popup.ClientPosition', 'goog.ui.Popup.Corner', 'goog.ui.Popup.Overflow', 'goog.ui.Popup.ViewPortClientPosition', 'goog.ui.Popup.ViewPortPosition'], ['goog.math.Box', 'goog.positioning', 'goog.positioning.AbsolutePosition', 'goog.positioning.AnchoredPosition', 'goog.positioning.AnchoredViewportPosition', 'goog.positioning.ClientPosition', 'goog.positioning.Corner', 'goog.positioning.Overflow', 'goog.positioning.OverflowStatus', 'goog.positioning.ViewportClientPosition', 'goog.positioning.ViewportPosition', 'goog.style', 'goog.ui.PopupBase']);
goog.addDependency('ui/popupbase.js', ['goog.ui.PopupBase', 'goog.ui.PopupBase.EventType', 'goog.ui.PopupBase.Type'], ['goog.Timer', 'goog.dom', 'goog.events.EventHandler', 'goog.events.EventTarget', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.fx.Transition', 'goog.fx.Transition.EventType', 'goog.style', 'goog.userAgent']);
goog.addDependency('ui/popupcolorpicker.js', ['goog.ui.PopupColorPicker'], ['goog.dom.classes', 'goog.events.EventType', 'goog.positioning.AnchoredPosition', 'goog.positioning.Corner', 'goog.ui.ColorPicker', 'goog.ui.ColorPicker.EventType', 'goog.ui.Component', 'goog.ui.Popup']);
goog.addDependency('ui/popupdatepicker.js', ['goog.ui.PopupDatePicker'], ['goog.events.EventType', 'goog.positioning.AnchoredPosition', 'goog.positioning.Corner', 'goog.style', 'goog.ui.Component', 'goog.ui.DatePicker', 'goog.ui.DatePicker.Events', 'goog.ui.Popup', 'goog.ui.PopupBase.EventType']);
goog.addDependency('ui/popupmenu.js', ['goog.ui.PopupMenu'], ['goog.events.EventType', 'goog.positioning.AnchoredViewportPosition', 'goog.positioning.Corner', 'goog.positioning.MenuAnchoredPosition', 'goog.positioning.ViewportClientPosition', 'goog.structs', 'goog.structs.Map', 'goog.style', 'goog.ui.Component.EventType', 'goog.ui.Menu', 'goog.ui.PopupBase', 'goog.userAgent']);
-goog.addDependency('ui/progressbar.js', ['goog.ui.ProgressBar', 'goog.ui.ProgressBar.Orientation'], ['goog.dom', 'goog.dom.a11y', 'goog.dom.classes', 'goog.events', 'goog.events.EventType', 'goog.ui.Component', 'goog.ui.Component.EventType', 'goog.ui.RangeModel', 'goog.userAgent']);
+goog.addDependency('ui/progressbar.js', ['goog.ui.ProgressBar', 'goog.ui.ProgressBar.Orientation'], ['goog.a11y.aria', 'goog.asserts', 'goog.dom', 'goog.dom.classes', 'goog.events', 'goog.events.EventType', 'goog.ui.Component', 'goog.ui.Component.EventType', 'goog.ui.RangeModel', 'goog.userAgent']);
goog.addDependency('ui/prompt.js', ['goog.ui.Prompt'], ['goog.Timer', 'goog.dom', 'goog.events', 'goog.events.EventType', 'goog.functions', 'goog.ui.Component.Error', 'goog.ui.Dialog', 'goog.ui.Dialog.ButtonSet', 'goog.ui.Dialog.DefaultButtonKeys', 'goog.ui.Dialog.EventType', 'goog.userAgent']);
goog.addDependency('ui/rangemodel.js', ['goog.ui.RangeModel'], ['goog.events.EventTarget', 'goog.ui.Component.EventType']);
-goog.addDependency('ui/ratings.js', ['goog.ui.Ratings', 'goog.ui.Ratings.EventType'], ['goog.dom.a11y', 'goog.dom.classes', 'goog.events.EventType', 'goog.ui.Component']);
+goog.addDependency('ui/ratings.js', ['goog.ui.Ratings', 'goog.ui.Ratings.EventType'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.a11y.aria.State', 'goog.asserts', 'goog.dom.classes', 'goog.events.EventType', 'goog.ui.Component']);
goog.addDependency('ui/registry.js', ['goog.ui.registry'], ['goog.dom.classes']);
goog.addDependency('ui/richtextspellchecker.js', ['goog.ui.RichTextSpellChecker'], ['goog.Timer', 'goog.dom', 'goog.dom.NodeType', 'goog.events', 'goog.events.EventType', 'goog.string.StringBuffer', 'goog.ui.AbstractSpellChecker', 'goog.ui.AbstractSpellChecker.AsyncResult']);
goog.addDependency('ui/roundedpanel.js', ['goog.ui.BaseRoundedPanel', 'goog.ui.CssRoundedPanel', 'goog.ui.GraphicsRoundedPanel', 'goog.ui.RoundedPanel', 'goog.ui.RoundedPanel.Corner'], ['goog.dom', 'goog.dom.classes', 'goog.graphics', 'goog.graphics.Path', 'goog.graphics.SolidFill', 'goog.graphics.Stroke', 'goog.math.Coordinate', 'goog.style', 'goog.ui.Component', 'goog.userAgent']);
goog.addDependency('ui/roundedtabrenderer.js', ['goog.ui.RoundedTabRenderer'], ['goog.dom', 'goog.ui.Tab', 'goog.ui.TabBar.Location', 'goog.ui.TabRenderer', 'goog.ui.registry']);
goog.addDependency('ui/scrollfloater.js', ['goog.ui.ScrollFloater', 'goog.ui.ScrollFloater.EventType'], ['goog.array', 'goog.dom', 'goog.dom.classes', 'goog.events.EventType', 'goog.style', 'goog.ui.Component', 'goog.userAgent']);
-goog.addDependency('ui/select.js', ['goog.ui.Select'], ['goog.dom.a11y', 'goog.dom.a11y.Role', 'goog.dom.a11y.State', 'goog.events.EventType', 'goog.ui.Component.EventType', 'goog.ui.ControlContent', 'goog.ui.MenuButton', 'goog.ui.SelectionModel', 'goog.ui.registry']);
+goog.addDependency('ui/select.js', ['goog.ui.Select'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.a11y.aria.State', 'goog.asserts', 'goog.events.EventType', 'goog.ui.Component.EventType', 'goog.ui.ControlContent', 'goog.ui.MenuButton', 'goog.ui.SelectionModel', 'goog.ui.registry']);
goog.addDependency('ui/selectionmenubutton.js', ['goog.ui.SelectionMenuButton', 'goog.ui.SelectionMenuButton.SelectionState'], ['goog.events.EventType', 'goog.ui.Component.EventType', 'goog.ui.Menu', 'goog.ui.MenuButton', 'goog.ui.MenuItem']);
goog.addDependency('ui/selectionmodel.js', ['goog.ui.SelectionModel'], ['goog.array', 'goog.events.EventTarget', 'goog.events.EventType']);
-goog.addDependency('ui/separator.js', ['goog.ui.Separator'], ['goog.dom.a11y', 'goog.ui.Component.State', 'goog.ui.Control', 'goog.ui.MenuSeparatorRenderer', 'goog.ui.registry']);
+goog.addDependency('ui/separator.js', ['goog.ui.Separator'], ['goog.a11y.aria', 'goog.asserts', 'goog.ui.Component.State', 'goog.ui.Control', 'goog.ui.MenuSeparatorRenderer', 'goog.ui.registry']);
goog.addDependency('ui/serverchart.js', ['goog.ui.ServerChart', 'goog.ui.ServerChart.AxisDisplayType', 'goog.ui.ServerChart.ChartType', 'goog.ui.ServerChart.EncodingType', 'goog.ui.ServerChart.Event', 'goog.ui.ServerChart.LegendPosition', 'goog.ui.ServerChart.MaximumValue', 'goog.ui.ServerChart.MultiAxisAlignment', 'goog.ui.ServerChart.MultiAxisType', 'goog.ui.ServerChart.UriParam', 'goog.ui.ServerChart.UriTooLongEvent'], ['goog.Uri', 'goog.array', 'goog.asserts', 'goog.events.Event', 'goog.string', 'goog.ui.Component']);
-goog.addDependency('ui/slider.js', ['goog.ui.Slider', 'goog.ui.Slider.Orientation'], ['goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.Role', 'goog.ui.SliderBase', 'goog.ui.SliderBase.Orientation']);
-goog.addDependency('ui/sliderbase.js', ['goog.ui.SliderBase', 'goog.ui.SliderBase.AnimationFactory', 'goog.ui.SliderBase.Orientation'], ['goog.Timer', 'goog.array', 'goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.Role', 'goog.dom.a11y.State', 'goog.dom.classes', 'goog.events', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler', 'goog.events.MouseWheelHandler', 'goog.fx.AnimationParallelQueue', 'goog.fx.Dragger', 'goog.fx.Transition', 'goog.fx.dom.ResizeHeight', 'goog.fx.dom.ResizeWidth', 'goog.fx.dom.Slide', 'goog.math', 'goog.math.Coordinate', 'goog.style', 'goog.style.bidi', 'goog.ui.Component', 'goog.ui.RangeModel']);
+goog.addDependency('ui/slider.js', ['goog.ui.Slider', 'goog.ui.Slider.Orientation'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.dom', 'goog.ui.SliderBase', 'goog.ui.SliderBase.Orientation']);
+goog.addDependency('ui/sliderbase.js', ['goog.ui.SliderBase', 'goog.ui.SliderBase.AnimationFactory', 'goog.ui.SliderBase.Orientation'], ['goog.Timer', 'goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.a11y.aria.State', 'goog.array', 'goog.asserts', 'goog.dom', 'goog.dom.classes', 'goog.events', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.events.KeyHandler', 'goog.events.MouseWheelHandler', 'goog.fx.AnimationParallelQueue', 'goog.fx.Dragger', 'goog.fx.Transition', 'goog.fx.dom.ResizeHeight', 'goog.fx.dom.ResizeWidth', 'goog.fx.dom.Slide', 'goog.math', 'goog.math.Coordinate', 'goog.style', 'goog.style.bidi', 'goog.ui.Component', 'goog.ui.RangeModel']);
goog.addDependency('ui/splitbehavior.js', ['goog.ui.SplitBehavior', 'goog.ui.SplitBehavior.DefaultHandlers'], ['goog.Disposable', 'goog.array', 'goog.dispose', 'goog.dom', 'goog.dom.DomHelper', 'goog.dom.classes', 'goog.events', 'goog.events.EventHandler', 'goog.events.EventType', 'goog.string', 'goog.ui.ButtonSide', 'goog.ui.Component', 'goog.ui.Component.Error', 'goog.ui.INLINE_BLOCK_CLASSNAME', 'goog.ui.decorate', 'goog.ui.registry']);
goog.addDependency('ui/splitpane.js', ['goog.ui.SplitPane', 'goog.ui.SplitPane.Orientation'], ['goog.dom', 'goog.dom.classes', 'goog.events.EventType', 'goog.fx.Dragger', 'goog.fx.Dragger.EventType', 'goog.math.Rect', 'goog.math.Size', 'goog.style', 'goog.ui.Component', 'goog.ui.Component.EventType', 'goog.userAgent']);
goog.addDependency('ui/style/app/buttonrenderer.js', ['goog.ui.style.app.ButtonRenderer'], ['goog.dom.classes', 'goog.ui.Button', 'goog.ui.ControlContent', 'goog.ui.CustomButtonRenderer', 'goog.ui.INLINE_BLOCK_CLASSNAME', 'goog.ui.registry']);
-goog.addDependency('ui/style/app/menubuttonrenderer.js', ['goog.ui.style.app.MenuButtonRenderer'], ['goog.array', 'goog.dom', 'goog.dom.a11y.Role', 'goog.style', 'goog.ui.ControlContent', 'goog.ui.Menu', 'goog.ui.MenuRenderer', 'goog.ui.style.app.ButtonRenderer']);
+goog.addDependency('ui/style/app/menubuttonrenderer.js', ['goog.ui.style.app.MenuButtonRenderer'], ['goog.a11y.aria.Role', 'goog.array', 'goog.dom', 'goog.style', 'goog.ui.ControlContent', 'goog.ui.Menu', 'goog.ui.MenuRenderer', 'goog.ui.style.app.ButtonRenderer']);
goog.addDependency('ui/style/app/primaryactionbuttonrenderer.js', ['goog.ui.style.app.PrimaryActionButtonRenderer'], ['goog.ui.Button', 'goog.ui.registry', 'goog.ui.style.app.ButtonRenderer']);
goog.addDependency('ui/submenu.js', ['goog.ui.SubMenu'], ['goog.Timer', 'goog.dom', 'goog.dom.classes', 'goog.events.KeyCodes', 'goog.positioning.AnchoredViewportPosition', 'goog.positioning.Corner', 'goog.style', 'goog.ui.Component', 'goog.ui.Component.EventType', 'goog.ui.Component.State', 'goog.ui.ControlContent', 'goog.ui.Menu', 'goog.ui.MenuItem', 'goog.ui.SubMenuRenderer', 'goog.ui.registry']);
-goog.addDependency('ui/submenurenderer.js', ['goog.ui.SubMenuRenderer'], ['goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.State', 'goog.dom.classes', 'goog.style', 'goog.ui.Menu', 'goog.ui.MenuItemRenderer']);
+goog.addDependency('ui/submenurenderer.js', ['goog.ui.SubMenuRenderer'], ['goog.a11y.aria', 'goog.a11y.aria.State', 'goog.asserts', 'goog.dom', 'goog.dom.classes', 'goog.style', 'goog.ui.Menu', 'goog.ui.MenuItemRenderer']);
goog.addDependency('ui/tab.js', ['goog.ui.Tab'], ['goog.ui.Component.State', 'goog.ui.Control', 'goog.ui.ControlContent', 'goog.ui.TabRenderer', 'goog.ui.registry']);
goog.addDependency('ui/tabbar.js', ['goog.ui.TabBar', 'goog.ui.TabBar.Location'], ['goog.ui.Component.EventType', 'goog.ui.Container', 'goog.ui.Container.Orientation', 'goog.ui.Tab', 'goog.ui.TabBarRenderer', 'goog.ui.registry']);
-goog.addDependency('ui/tabbarrenderer.js', ['goog.ui.TabBarRenderer'], ['goog.dom.a11y.Role', 'goog.object', 'goog.ui.ContainerRenderer']);
+goog.addDependency('ui/tabbarrenderer.js', ['goog.ui.TabBarRenderer'], ['goog.a11y.aria.Role', 'goog.object', 'goog.ui.ContainerRenderer']);
goog.addDependency('ui/tablesorter.js', ['goog.ui.TableSorter', 'goog.ui.TableSorter.EventType'], ['goog.array', 'goog.dom', 'goog.dom.TagName', 'goog.dom.classes', 'goog.events', 'goog.events.EventType', 'goog.functions', 'goog.ui.Component']);
goog.addDependency('ui/tabpane.js', ['goog.ui.TabPane', 'goog.ui.TabPane.Events', 'goog.ui.TabPane.TabLocation', 'goog.ui.TabPane.TabPage', 'goog.ui.TabPaneEvent'], ['goog.dom', 'goog.dom.classes', 'goog.events', 'goog.events.Event', 'goog.events.EventTarget', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.style']);
-goog.addDependency('ui/tabrenderer.js', ['goog.ui.TabRenderer'], ['goog.dom.a11y.Role', 'goog.ui.Component.State', 'goog.ui.ControlRenderer']);
+goog.addDependency('ui/tabrenderer.js', ['goog.ui.TabRenderer'], ['goog.a11y.aria.Role', 'goog.ui.Component.State', 'goog.ui.ControlRenderer']);
goog.addDependency('ui/textarea.js', ['goog.ui.Textarea', 'goog.ui.Textarea.EventType'], ['goog.Timer', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.style', 'goog.ui.Control', 'goog.ui.TextareaRenderer', 'goog.userAgent', 'goog.userAgent.product']);
goog.addDependency('ui/textarearenderer.js', ['goog.ui.TextareaRenderer'], ['goog.ui.Component.State', 'goog.ui.ControlRenderer']);
goog.addDependency('ui/togglebutton.js', ['goog.ui.ToggleButton'], ['goog.ui.Button', 'goog.ui.Component.State', 'goog.ui.ControlContent', 'goog.ui.CustomButtonRenderer', 'goog.ui.registry']);
@@ -817,20 +817,20 @@ goog.addDependency('ui/toolbarcolormenubutton.js', ['goog.ui.ToolbarColorMenuBut
goog.addDependency('ui/toolbarcolormenubuttonrenderer.js', ['goog.ui.ToolbarColorMenuButtonRenderer'], ['goog.dom.classes', 'goog.ui.ColorMenuButtonRenderer', 'goog.ui.ControlContent', 'goog.ui.MenuButtonRenderer', 'goog.ui.ToolbarMenuButtonRenderer']);
goog.addDependency('ui/toolbarmenubutton.js', ['goog.ui.ToolbarMenuButton'], ['goog.ui.ControlContent', 'goog.ui.MenuButton', 'goog.ui.ToolbarMenuButtonRenderer', 'goog.ui.registry']);
goog.addDependency('ui/toolbarmenubuttonrenderer.js', ['goog.ui.ToolbarMenuButtonRenderer'], ['goog.ui.MenuButtonRenderer']);
-goog.addDependency('ui/toolbarrenderer.js', ['goog.ui.ToolbarRenderer'], ['goog.dom.a11y.Role', 'goog.ui.Container.Orientation', 'goog.ui.ContainerRenderer', 'goog.ui.Separator', 'goog.ui.ToolbarSeparatorRenderer']);
+goog.addDependency('ui/toolbarrenderer.js', ['goog.ui.ToolbarRenderer'], ['goog.a11y.aria.Role', 'goog.ui.Container.Orientation', 'goog.ui.ContainerRenderer', 'goog.ui.Separator', 'goog.ui.ToolbarSeparatorRenderer']);
goog.addDependency('ui/toolbarselect.js', ['goog.ui.ToolbarSelect'], ['goog.ui.ControlContent', 'goog.ui.Select', 'goog.ui.ToolbarMenuButtonRenderer', 'goog.ui.registry']);
goog.addDependency('ui/toolbarseparator.js', ['goog.ui.ToolbarSeparator'], ['goog.ui.Separator', 'goog.ui.ToolbarSeparatorRenderer', 'goog.ui.registry']);
goog.addDependency('ui/toolbarseparatorrenderer.js', ['goog.ui.ToolbarSeparatorRenderer'], ['goog.dom.classes', 'goog.ui.INLINE_BLOCK_CLASSNAME', 'goog.ui.MenuSeparatorRenderer']);
goog.addDependency('ui/toolbartogglebutton.js', ['goog.ui.ToolbarToggleButton'], ['goog.ui.ControlContent', 'goog.ui.ToggleButton', 'goog.ui.ToolbarButtonRenderer', 'goog.ui.registry']);
goog.addDependency('ui/tooltip.js', ['goog.ui.Tooltip', 'goog.ui.Tooltip.CursorTooltipPosition', 'goog.ui.Tooltip.ElementTooltipPosition', 'goog.ui.Tooltip.State'], ['goog.Timer', 'goog.array', 'goog.dom', 'goog.events', 'goog.events.EventType', 'goog.math.Box', 'goog.math.Coordinate', 'goog.positioning', 'goog.positioning.AnchoredPosition', 'goog.positioning.Corner', 'goog.positioning.Overflow', 'goog.positioning.OverflowStatus', 'goog.positioning.ViewportPosition', 'goog.structs.Set', 'goog.style', 'goog.ui.Popup', 'goog.ui.PopupBase']);
-goog.addDependency('ui/tree/basenode.js', ['goog.ui.tree.BaseNode', 'goog.ui.tree.BaseNode.EventType'], ['goog.Timer', 'goog.asserts', 'goog.dom.a11y', 'goog.events.KeyCodes', 'goog.string', 'goog.string.StringBuffer', 'goog.style', 'goog.ui.Component', 'goog.userAgent']);
-goog.addDependency('ui/tree/treecontrol.js', ['goog.ui.tree.TreeControl'], ['goog.debug.Logger', 'goog.dom.a11y', 'goog.dom.classes', 'goog.events.EventType', 'goog.events.FocusHandler', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.ui.tree.BaseNode', 'goog.ui.tree.TreeNode', 'goog.ui.tree.TypeAhead', 'goog.userAgent']);
+goog.addDependency('ui/tree/basenode.js', ['goog.ui.tree.BaseNode', 'goog.ui.tree.BaseNode.EventType'], ['goog.Timer', 'goog.a11y.aria', 'goog.asserts', 'goog.events.KeyCodes', 'goog.string', 'goog.string.StringBuffer', 'goog.style', 'goog.ui.Component', 'goog.userAgent']);
+goog.addDependency('ui/tree/treecontrol.js', ['goog.ui.tree.TreeControl'], ['goog.a11y.aria', 'goog.asserts', 'goog.debug.Logger', 'goog.dom.classes', 'goog.events.EventType', 'goog.events.FocusHandler', 'goog.events.KeyHandler', 'goog.events.KeyHandler.EventType', 'goog.ui.tree.BaseNode', 'goog.ui.tree.TreeNode', 'goog.ui.tree.TypeAhead', 'goog.userAgent']);
goog.addDependency('ui/tree/treenode.js', ['goog.ui.tree.TreeNode'], ['goog.ui.tree.BaseNode']);
goog.addDependency('ui/tree/typeahead.js', ['goog.ui.tree.TypeAhead', 'goog.ui.tree.TypeAhead.Offset'], ['goog.array', 'goog.events.KeyCodes', 'goog.string', 'goog.structs.Trie']);
goog.addDependency('ui/tristatemenuitem.js', ['goog.ui.TriStateMenuItem', 'goog.ui.TriStateMenuItem.State'], ['goog.dom.classes', 'goog.ui.Component.EventType', 'goog.ui.Component.State', 'goog.ui.ControlContent', 'goog.ui.MenuItem', 'goog.ui.TriStateMenuItemRenderer', 'goog.ui.registry']);
goog.addDependency('ui/tristatemenuitemrenderer.js', ['goog.ui.TriStateMenuItemRenderer'], ['goog.dom.classes', 'goog.ui.MenuItemRenderer']);
-goog.addDependency('ui/twothumbslider.js', ['goog.ui.TwoThumbSlider'], ['goog.dom', 'goog.dom.a11y', 'goog.dom.a11y.Role', 'goog.ui.SliderBase']);
-goog.addDependency('ui/zippy.js', ['goog.ui.Zippy', 'goog.ui.Zippy.Events', 'goog.ui.ZippyEvent'], ['goog.dom', 'goog.dom.a11y', 'goog.dom.classes', 'goog.events', 'goog.events.Event', 'goog.events.EventHandler', 'goog.events.EventTarget', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.style']);
+goog.addDependency('ui/twothumbslider.js', ['goog.ui.TwoThumbSlider'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.dom', 'goog.ui.SliderBase']);
+goog.addDependency('ui/zippy.js', ['goog.ui.Zippy', 'goog.ui.Zippy.Events', 'goog.ui.ZippyEvent'], ['goog.a11y.aria', 'goog.a11y.aria.Role', 'goog.dom', 'goog.dom.classes', 'goog.events', 'goog.events.Event', 'goog.events.EventHandler', 'goog.events.EventTarget', 'goog.events.EventType', 'goog.events.KeyCodes', 'goog.style']);
goog.addDependency('uri/uri.js', ['goog.Uri', 'goog.Uri.QueryData'], ['goog.array', 'goog.string', 'goog.structs', 'goog.structs.Map', 'goog.uri.utils', 'goog.uri.utils.ComponentIndex']);
goog.addDependency('uri/utils.js', ['goog.uri.utils', 'goog.uri.utils.ComponentIndex', 'goog.uri.utils.QueryArray', 'goog.uri.utils.QueryValue', 'goog.uri.utils.StandardQueryParam'], ['goog.asserts', 'goog.string', 'goog.userAgent']);
goog.addDependency('useragent/adobereader.js', ['goog.userAgent.adobeReader'], ['goog.string', 'goog.userAgent']);
View
7 closure/goog/ui/abstractspellchecker.js
@@ -38,6 +38,7 @@
goog.provide('goog.ui.AbstractSpellChecker');
goog.provide('goog.ui.AbstractSpellChecker.AsyncResult');
+goog.require('goog.a11y.aria');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.dom.classes');
@@ -750,10 +751,10 @@ goog.ui.AbstractSpellChecker.prototype.createWordElement_ = function(word,
parameters['tabIndex'] = -1;
}
- var el = /** @type {HTMLSpanElement} */
+ var el = /** @type {!HTMLSpanElement} */
(this.getDomHelper().createDom('span', parameters, word));
- goog.dom.a11y.setRole(el, 'menuitem');
- goog.dom.a11y.setState(el, 'haspopup', true);
+ goog.a11y.aria.setRole(el, 'menuitem');
+ goog.a11y.aria.setState(el, 'haspopup', true);
this.registerWordElement_(word, el);
return el;
View
14 closure/goog/ui/ac/autocomplete_test.html
@@ -14,9 +14,9 @@
<script src="../../base.js"></script>
<script>
goog.require('goog.dom');
- goog.require('goog.dom.a11y');
- goog.require('goog.dom.a11y.Role');
- goog.require('goog.dom.a11y.State');
+ goog.require('goog.a11y.aria');
+ goog.require('goog.a11y.aria.Role');
+ goog.require('goog.a11y.aria.State');
goog.require('goog.events.EventHandler');
goog.require('goog.events.EventTarget');
goog.require('goog.string');
@@ -707,12 +707,14 @@
*/
function testRolesAndStates() {
function checkActiveDescendant(activeDescendant) {
+ assertNotNull(inputElement);
assertEquals(
- goog.dom.a11y.getActiveDescendant(inputElement),
+ goog.a11y.aria.getActiveDescendant(inputElement),
activeDescendant);
}
function checkRole(el, role) {
- assertEquals(goog.dom.a11y.getRole(el), role);
+ assertNotNull(el);
+ assertEquals(goog.a11y.aria.getRole(el), role);
}
var ds = new MockDS();
var rend = new TestRend();
@@ -730,7 +732,7 @@
checkActiveDescendant(rend.getHilitedRowDiv());
// highligted row should have a role of 'option'
- checkRole(rend.getHilitedRowDiv(), goog.dom.a11y.Role.OPTION);
+ checkRole(rend.getHilitedRowDiv(), goog.a11y.aria.Role.OPTION);
// closing the autocomplete should clear activedescendant
ac.dismiss();
View
6 closure/goog/ui/ac/inputhandler.js
@@ -93,8 +93,9 @@ goog.provide('goog.ui.ac.InputHandler');
goog.require('goog.Disposable');
goog.require('goog.Timer');
+goog.require('goog.a11y.aria');
+goog.require('goog.asserts');
goog.require('goog.dom');
-goog.require('goog.dom.a11y');
goog.require('goog.dom.selection');
goog.require('goog.events.EventHandler');
goog.require('goog.events.EventType');
@@ -442,7 +443,8 @@ goog.ui.ac.InputHandler.prototype.setCursorPosition = function(pos) {
*/
goog.ui.ac.InputHandler.prototype.attachInput = function(target) {
if (goog.dom.isElement(target)) {
- goog.dom.a11y.setState(/** @type {Element} */ (target), 'haspopup', true);
+ var el = /** @type {!Element} */ (target);
+ goog.a11y.aria.setState(el, 'haspopup', true);
}
this.eh_.listen(target, goog.events.EventType.FOCUS, this.handleFocus);
View
28 closure/goog/ui/ac/renderer.js
@@ -21,9 +21,11 @@
goog.provide('goog.ui.ac.Renderer');
goog.provide('goog.ui.ac.Renderer.CustomRenderer');
+goog.require('goog.a11y.aria');
+goog.require('goog.a11y.aria.Role');
+goog.require('goog.a11y.aria.State');
goog.require('goog.dispose');
goog.require('goog.dom');
-goog.require('goog.dom.a11y');
goog.require('goog.dom.classes');
goog.require('goog.events.Event');
goog.require('goog.events.EventTarget');
@@ -402,14 +404,16 @@ goog.ui.ac.Renderer.prototype.renderRows = function(rows, token, opt_target) {
*/
goog.ui.ac.Renderer.prototype.dismiss = function() {
if (this.target_) {
- goog.dom.a11y.setActiveDescendant(this.target_, null);
+ goog.a11y.aria.setActiveDescendant(this.target_, null);
}
if (this.visible_) {
this.visible_ = false;
// Clear ARIA popup role for the target input box.
if (this.target_) {
- goog.dom.a11y.setState(this.target_, goog.dom.a11y.State.HASPOPUP, false);
+ goog.a11y.aria.setState(this.target_,
+ goog.a11y.aria.State.HASPOPUP,
+ false);
}
if (this.menuFadeDuration_ > 0) {
@@ -433,10 +437,14 @@ goog.ui.ac.Renderer.prototype.show = function() {
// Set ARIA roles and states for the target input box.
if (this.target_) {
- goog.dom.a11y.setRole(this.target_, goog.dom.a11y.Role.COMBOBOX);
- goog.dom.a11y.setState(
- this.target_, goog.dom.a11y.State.AUTOCOMPLETE, 'list');
- goog.dom.a11y.setState(this.target_, goog.dom.a11y.State.HASPOPUP, true);
+ goog.a11y.aria.setRole(this.target_,
+ goog.a11y.aria.Role.COMBOBOX);
+ goog.a11y.aria.setState(this.target_,
+ goog.a11y.aria.State.AUTOCOMPLETE,
+ 'list');
+ goog.a11y.aria.setState(this.target_,
+ goog.a11y.aria.State.HASPOPUP,
+ true);
}
if (this.menuFadeDuration_ > 0) {
@@ -476,7 +484,7 @@ goog.ui.ac.Renderer.prototype.hiliteRow = function(index) {
goog.dom.classes.add(rowDiv, this.activeClassName,
this.legacyActiveClassName_);
if (this.target_) {
- goog.dom.a11y.setActiveDescendant(this.target_, rowDiv);
+ goog.a11y.aria.setActiveDescendant(this.target_, rowDiv);
}
goog.style.scrollIntoContainerView(rowDiv, this.element_);
}
@@ -536,7 +544,7 @@ goog.ui.ac.Renderer.prototype.maybeCreateElement_ = function() {
var el = this.dom_.createDom('div', {style: 'display:none'});
this.element_ = el;
this.setMenuClasses_(el);
- goog.dom.a11y.setRole(el, goog.dom.a11y.Role.LISTBOX);
+ goog.a11y.aria.setRole(el, goog.a11y.aria.Role.LISTBOX);
el.id = goog.ui.IdGenerator.getInstance().getNextUniqueId();
@@ -890,7 +898,7 @@ goog.ui.ac.Renderer.prototype.renderRowHtml = function(row, token) {
className: this.rowClassName,
id: goog.ui.IdGenerator.getInstance().getNextUniqueId()
});
- goog.dom.a11y.setRole(node, goog.dom.a11y.Role.OPTION);
+ goog.a11y.aria.setRole(node, goog.a11y.aria.Role.OPTION);
if (this.customRenderer_ && this.customRenderer_.renderRow) {
this.customRenderer_.renderRow(row, token, node);
} else {
View
33 closure/goog/ui/ac/renderer_test.html
@@ -14,9 +14,9 @@
<script src="../../base.js"></script>
<script>
goog.require('goog.dom');
- goog.require('goog.dom.a11y');
- goog.require('goog.dom.a11y.Role');
- goog.require('goog.dom.a11y.State');
+ goog.require('goog.a11y.aria');
+ goog.require('goog.a11y.aria.Role');
+ goog.require('goog.a11y.aria.State');
goog.require('goog.events');
goog.require('goog.functions');
goog.require('goog.fx.dom.FadeInAndShow');
@@ -470,25 +470,34 @@
function testAriaTags() {
renderer.maybeCreateElement_();
- assertEquals('', goog.dom.a11y.getRole(target));
+ assertNotNull(target);
+ assertEquals('', goog.a11y.aria.getRole(target));
assertEquals('',
- goog.dom.a11y.getState(target, goog.dom.a11y.State.AUTOCOMPLETE));
+ goog.a11y.aria.getState(target,
+ goog.a11y.aria.State.AUTOCOMPLETE));
assertEquals('',
- goog.dom.a11y.getState(target, goog.dom.a11y.State.HASPOPUP));
+ goog.a11y.aria.getState(target,
+ goog.a11y.aria.State.HASPOPUP));
renderer.show();
- assertEquals(goog.dom.a11y.Role.COMBOBOX, goog.dom.a11y.getRole(target));
+ assertEquals(goog.a11y.aria.Role.COMBOBOX, goog.a11y.aria.getRole(
+ target));
assertEquals('list',
- goog.dom.a11y.getState(target, goog.dom.a11y.State.AUTOCOMPLETE));
+ goog.a11y.aria.getState(target,
+ goog.a11y.aria.State.AUTOCOMPLETE));
assertEquals('true',
- goog.dom.a11y.getState(target, goog.dom.a11y.State.HASPOPUP));
+ goog.a11y.aria.getState(target,
+ goog.a11y.aria.State.HASPOPUP));
renderer.dismiss();
- assertEquals(goog.dom.a11y.Role.COMBOBOX, goog.dom.a11y.getRole(target));
+ assertEquals(goog.a11y.aria.Role.COMBOBOX, goog.a11y.aria.getRole(
+ target));
assertEquals('list',
- goog.dom.a11y.getState(target, goog.dom.a11y.State.AUTOCOMPLETE));
+ goog.a11y.aria.getState(target,
+ goog.a11y.aria.State.AUTOCOMPLETE));
assertEquals('false',
- goog.dom.a11y.getState(target, goog.dom.a11y.State.HASPOPUP));
+ goog.a11y.aria.getState(target,
+ goog.a11y.aria.State.HASPOPUP));
}
function testHiliteRowWithDefaultRenderer() {
View
14 closure/goog/ui/animatedzippy_test.html
@@ -13,9 +13,10 @@
<title>Closure Unit Tests - goog.ui.AnimatedZippy</title>
<script src="../base.js"></script>
<script>
+ goog.require('goog.asserts');
+ goog.require('goog.a11y.aria');
+ goog.require('goog.a11y.aria.State');
goog.require('goog.dom');
- goog.require('goog.dom.a11y');
- goog.require('goog.dom.a11y.State');
goog.require('goog.events');
goog.require('goog.functions');
goog.require('goog.fx.Animation');
@@ -75,6 +76,7 @@ <h2 id="t1">handler</h2>
function setUp() {
animatedZippyHeaderEl = goog.dom.getElement('t1');
+ goog.asserts.assert(animatedZippyHeaderEl);
animatedZippy = new goog.ui.AnimatedZippy(animatedZippyHeaderEl,
goog.dom.getElement('c1'));
@@ -108,8 +110,8 @@ <h2 id="t1">handler</h2>
assertEquals('expanded must be true', true,
animatedZippy.isExpanded());
assertEquals('aria-expanded must be true', 'true',
- goog.dom.a11y.getState(animatedZippyHeaderEl,
- goog.dom.a11y.State.EXPANDED));
+ goog.a11y.aria.getState(animatedZippyHeaderEl,
+ goog.a11y.aria.State.EXPANDED));
});
animatedZippy.expand();
@@ -121,8 +123,8 @@ <h2 id="t1">handler</h2>
assertEquals('expanded must be false', false,
animatedZippy.isExpanded());
assertEquals('aria-expanded must be false', 'false',
- goog.dom.a11y.getState(animatedZippyHeaderEl,
- goog.dom.a11y.State.EXPANDED));
+ goog.a11y.aria.getState(animatedZippyHeaderEl,
+ goog.a11y.aria.State.EXPANDED));
});
animatedZippy.collapse();
View
13 closure/goog/ui/attachablemenu.js
@@ -19,8 +19,9 @@
goog.provide('goog.ui.AttachableMenu');
-goog.require('goog.dom.a11y');
-goog.require('goog.dom.a11y.State');
+goog.require('goog.a11y.aria');
+goog.require('goog.a11y.aria.State');
+goog.require('goog.asserts');
goog.require('goog.events.KeyCodes');
goog.require('goog.ui.ItemEvent');
goog.require('goog.ui.MenuBase');
@@ -152,6 +153,7 @@ goog.ui.AttachableMenu.prototype.setSelectedItem = function(obj) {
this.selectedElement_ = elt;
var el = this.getElement();
+ goog.asserts.assert(el, 'The attachable menu DOM element cannot be null.');
if (this.selectedElement_) {
goog.dom.classes.add(this.selectedElement_, this.selectedItemClassName_);
@@ -159,8 +161,7 @@ goog.ui.AttachableMenu.prototype.setSelectedItem = function(obj) {
// Update activedescendant to reflect the new selection. ARIA roles for
// menu and menuitem can be set statically (thru Soy templates, for
// example) whereas this needs to be updated as the selection changes.
- goog.dom.a11y.setState(el,
- goog.dom.a11y.State.ACTIVEDESCENDANT,
+ goog.a11y.aria.setState(el, goog.a11y.aria.State.ACTIVEDESCENDANT,
elt.id);
}
@@ -178,9 +179,7 @@ goog.ui.AttachableMenu.prototype.setSelectedItem = function(obj) {
}
} else {
// Clear off activedescendant to reflect no selection.
- goog.dom.a11y.setState(el,
- goog.dom.a11y.State.ACTIVEDESCENDANT,
- '');
+ goog.a11y.aria.setState(el, goog.a11y.aria.State.ACTIVEDESCENDANT, '');
}
};
View
15 closure/goog/ui/buttonrenderer.js
@@ -20,9 +20,10 @@
goog.provide('goog.ui.ButtonRenderer');
-goog.require('goog.dom.a11y');
-goog.require('goog.dom.a11y.Role');
-goog.require('goog.dom.a11y.State');
+goog.require('goog.a11y.aria');
+goog.require('goog.a11y.aria.Role');
+goog.require('goog.a11y.aria.State');
+goog.require('goog.asserts');
goog.require('goog.ui.ButtonSide');
goog.require('goog.ui.Component.State');
goog.require('goog.ui.ControlRenderer');
@@ -62,11 +63,11 @@ goog.ui.ButtonRenderer.CSS_CLASS = goog.getCssName('goog-button');
/**
* Returns the ARIA role to be applied to buttons.
- * @return {goog.dom.a11y.Role|undefined} ARIA role.
+ * @return {goog.a11y.aria.Role|undefined} ARIA role.
* @override
*/
goog.ui.ButtonRenderer.prototype.getAriaRole = function() {
- return goog.dom.a11y.Role.BUTTON;
+ return goog.a11y.aria.Role.BUTTON;
};
@@ -84,7 +85,9 @@ goog.ui.ButtonRenderer.prototype.updateAriaState = function(element, state,
enable) {
// If button has CHECKED state, assign ARIA atrribute aria-pressed
if (state == goog.ui.Component.State.CHECKED) {
- goog.dom.a11y.setState(element, goog.dom.a11y.State.PRESSED, enable);
+ goog.asserts.assert(element,
+ 'The button DOM element cannot be null.');
+ goog.a11y.aria.setState(element, goog.a11y.aria.State.PRESSED, enable);
} else {
goog.ui.ButtonRenderer.superClass_.updateAriaState.call(this, element,
state, enable);
View
21 closure/goog/ui/buttonrenderer_test.html
@@ -13,9 +13,9 @@
<title>Closure Unit Tests - goog.ui.ButtonRenderer</title>
<script src="../base.js"></script>
<script>
- goog.require('goog.dom.a11y');
- goog.require('goog.dom.a11y.Role');
- goog.require('goog.dom.a11y.State');
+ goog.require('goog.a11y.aria');
+ goog.require('goog.a11y.aria.Role');
+ goog.require('goog.a11y.aria.State');
goog.require('goog.dom.classes');
goog.require('goog.style');
goog.require('goog.testing.ExpectedFailures');
@@ -69,7 +69,7 @@
function testGetAriaRole() {
assertEquals('ButtonRenderer\'s ARIA role must have expected value',
- goog.dom.a11y.Role.BUTTON, buttonRenderer.getAriaRole());
+ goog.a11y.aria.Role.BUTTON, buttonRenderer.getAriaRole());
}
function testCreateDom() {
@@ -96,7 +96,7 @@
button.setSupportedState(goog.ui.Component.State.CHECKED, true);
var element = buttonRenderer.createDom(button);
assertEquals('button\'s aria-pressed attribute must be false', 'false',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.PRESSED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.PRESSED));
}
function testCreateDomAriaState() {
@@ -105,7 +105,7 @@
var element = buttonRenderer.createDom(button);
assertEquals('button\'s aria-pressed attribute must be true', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.PRESSED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.PRESSED));
}
function testDecorate() {
@@ -129,9 +129,10 @@
var toggle = new goog.ui.Button(null, buttonRenderer);
toggle.setSupportedState(goog.ui.Component.State.CHECKED, true);
var element = goog.dom.getElement('toggle');
+ assertNotNull(element);
toggle.decorate(element);
assertEquals('toggle\'s aria-pressed attribute must be false', 'false',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.PRESSED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.PRESSED));
toggle.dispose();
}
@@ -174,19 +175,19 @@
buttonRenderer.updateAriaState(element, goog.ui.Component.State.CHECKED,
true);
assertEquals('Button must have pressed ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.PRESSED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.PRESSED));
// Test for updating a state other than CHECKED
buttonRenderer.updateAriaState(element, goog.ui.Component.State.DISABLED,
true);
assertEquals('Button must have disabled ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.DISABLED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.DISABLED));
buttonRenderer.updateAriaState(element, goog.ui.Component.State.CHECKED,
false);
assertEquals('Control must no longer have pressed ARIA state',
'false',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.PRESSED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.PRESSED));
}
function testDoesntCallGetCssClassInConstructor() {
View
5 closure/goog/ui/charpicker.js
@@ -20,7 +20,9 @@
goog.provide('goog.ui.CharPicker');
+goog.require('goog.a11y.aria');
goog.require('goog.array');
+goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.events');
goog.require('goog.events.EventHandler');
@@ -762,7 +764,8 @@ goog.ui.CharPicker.prototype.populateGridWithButtons_ = function(grid) {
button.setVisible(false);
var buttonEl = button.getElement();
- goog.dom.a11y.setRole(buttonEl, 'gridcell');
+ goog.asserts.assert(buttonEl, 'The button DOM element cannot be null.');
+ goog.a11y.aria.setRole(buttonEl, 'gridcell');
}
};
View
13 closure/goog/ui/checkbox.js
@@ -21,8 +21,9 @@
goog.provide('goog.ui.Checkbox');
goog.provide('goog.ui.Checkbox.State');
-goog.require('goog.dom.a11y');
-goog.require('goog.dom.a11y.State');
+goog.require('goog.a11y.aria');
+goog.require('goog.a11y.aria.State');
+goog.require('goog.asserts');
goog.require('goog.events.EventType');
goog.require('goog.events.KeyCodes');
goog.require('goog.ui.CheckboxRenderer');
@@ -206,8 +207,12 @@ goog.ui.Checkbox.prototype.enterDocument = function() {
if (!this.label_.id) {
this.label_.id = this.makeId('lbl');
}
- goog.dom.a11y.setState(this.getElement(),
- goog.dom.a11y.State.LABELLEDBY, this.label_.id);
+ var checkboxElement = this.getElement();
+ goog.asserts.assert(checkboxElement,
+ 'The checkbox DOM element cannot be null.');
+ goog.a11y.aria.setState(checkboxElement,
+ goog.a11y.aria.State.LABELLEDBY,
+ this.label_.id);
}
};
View
56 closure/goog/ui/checkbox_test.html
@@ -14,9 +14,9 @@
<script src="../base.js"></script>
<script>
goog.require('goog.dom');
- goog.require('goog.dom.a11y');
- goog.require('goog.dom.a11y.Role');
- goog.require('goog.dom.a11y.State');
+ goog.require('goog.a11y.aria');
+ goog.require('goog.a11y.aria.Role');
+ goog.require('goog.a11y.aria.State');
goog.require('goog.dom.classes');
goog.require('goog.events');
goog.require('goog.events.KeyCodes');
@@ -154,15 +154,15 @@
checkbox.setChecked(false);
checkbox.setLabel(label);
checkbox.render(label);
-
+ assertNotNull(checkbox.getElement());
assertEquals(label.id,
- goog.dom.a11y.getState(checkbox.getElement(),
- goog.dom.a11y.State.LABELLEDBY));
+ goog.a11y.aria.getState(checkbox.getElement(),
+ goog.a11y.aria.State.LABELLEDBY));
checkbox.setLabel(label2);
assertEquals(label2.id,
- goog.dom.a11y.getState(checkbox.getElement(),
- goog.dom.a11y.State.LABELLEDBY));
+ goog.a11y.aria.getState(checkbox.getElement(),
+ goog.a11y.aria.State.LABELLEDBY));
} finally {
document.body.removeChild(label);
document.body.removeChild(label2);
@@ -267,33 +267,33 @@
function testGetAriaRole() {
checkbox.createDom();
-
+ assertNotNull(checkbox.getElement());
assertEquals("Checkbox's ARIA role should be 'checkbox'",
- goog.dom.a11y.Role.CHECKBOX,
- goog.dom.a11y.getRole(checkbox.getElement()));
+ goog.a11y.aria.Role.CHECKBOX,
+ goog.a11y.aria.getRole(checkbox.getElement()));
}
function testCreateDomUpdateAriaState() {
checkbox.createDom();
-
+ assertNotNull(checkbox.getElement());
assertEquals('Checkbox must have default false ARIA state aria-checked',
- 'false', goog.dom.a11y.getState(checkbox.getElement(),
- goog.dom.a11y.State.CHECKED));
+ 'false', goog.a11y.aria.getState(checkbox.getElement(),
+ goog.a11y.aria.State.CHECKED));
checkbox.setChecked(goog.ui.Checkbox.State.CHECKED);
assertEquals('Checkbox must have true ARIA state aria-checked', 'true',
- goog.dom.a11y.getState(checkbox.getElement(),
- goog.dom.a11y.State.CHECKED));
+ goog.a11y.aria.getState(checkbox.getElement(),
+ goog.a11y.aria.State.CHECKED));
checkbox.setChecked(goog.ui.Checkbox.State.UNCHECKED);
assertEquals('Checkbox must have false ARIA state aria-checked', 'false',
- goog.dom.a11y.getState(checkbox.getElement(),
- goog.dom.a11y.State.CHECKED));
+ goog.a11y.aria.getState(checkbox.getElement(),
+ goog.a11y.aria.State.CHECKED));
checkbox.setChecked(goog.ui.Checkbox.State.UNDETERMINED);
assertEquals('Checkbox must have mixed ARIA state aria-checked', 'mixed',
- goog.dom.a11y.getState(checkbox.getElement(),
- goog.dom.a11y.State.CHECKED));
+ goog.a11y.aria.getState(checkbox.getElement(),
+ goog.a11y.aria.State.CHECKED));
}
function testDecorateUpdateAriaState() {
@@ -301,23 +301,23 @@
checkbox.decorate(decorateSpan);
assertEquals('Checkbox must have default false ARIA state aria-checked',
- 'false', goog.dom.a11y.getState(checkbox.getElement(),
- goog.dom.a11y.State.CHECKED));
+ 'false', goog.a11y.aria.getState(checkbox.getElement(),
+ goog.a11y.aria.State.CHECKED));
checkbox.setChecked(goog.ui.Checkbox.State.CHECKED);
assertEquals('Checkbox must have true ARIA state aria-checked', 'true',
- goog.dom.a11y.getState(checkbox.getElement(),
- goog.dom.a11y.State.CHECKED));
+ goog.a11y.aria.getState(checkbox.getElement(),
+ goog.a11y.aria.State.CHECKED));
checkbox.setChecked(goog.ui.Checkbox.State.UNCHECKED);
assertEquals('Checkbox must have false ARIA state aria-checked', 'false',
- goog.dom.a11y.getState(checkbox.getElement(),
- goog.dom.a11y.State.CHECKED));
+ goog.a11y.aria.getState(checkbox.getElement(),
+ goog.a11y.aria.State.CHECKED));
checkbox.setChecked(goog.ui.Checkbox.State.UNDETERMINED);
assertEquals('Checkbox must have mixed ARIA state aria-checked', 'mixed',
- goog.dom.a11y.getState(checkbox.getElement(),
- goog.dom.a11y.State.CHECKED));
+ goog.a11y.aria.getState(checkbox.getElement(),
+ goog.a11y.aria.State.CHECKED));
}
function testSpaceKey() {
View
20 closure/goog/ui/checkboxrenderer.js
@@ -19,11 +19,11 @@
goog.provide('goog.ui.CheckboxRenderer');
+goog.require('goog.a11y.aria');
+goog.require('goog.a11y.aria.Role');
+goog.require('goog.a11y.aria.State');
goog.require('goog.array');
goog.require('goog.asserts');
-goog.require('goog.dom.a11y');
-goog.require('goog.dom.a11y.Role');
-goog.require('goog.dom.a11y.State');
goog.require('goog.dom.classes');
goog.require('goog.object');
goog.require('goog.ui.ControlRenderer');
@@ -84,9 +84,9 @@ goog.ui.CheckboxRenderer.prototype.decorate = function(checkbox, element) {
checked = goog.ui.Checkbox.State.UNCHECKED;
}
checkbox.setCheckedInternal(checked);
-
- goog.dom.a11y.setState(element, goog.dom.a11y.State.CHECKED,
- this.ariaStateFromCheckState_(checked));
+ goog.asserts.assert(element, 'The element cannot be null.');
+ goog.a11y.aria.setState(element, goog.a11y.aria.State.CHECKED,
+ this.ariaStateFromCheckState_(checked));
return element;
};
@@ -94,11 +94,11 @@ goog.ui.CheckboxRenderer.prototype.decorate = function(checkbox, element) {
/**
* Returns the ARIA role to be applied to checkboxes.
- * @return {goog.dom.a11y.Role} ARIA role.
+ * @return {goog.a11y.aria.Role} ARIA role.
* @override
*/
goog.ui.CheckboxRenderer.prototype.getAriaRole = function() {
- return goog.dom.a11y.Role.CHECKBOX;
+ return goog.a11y.aria.Role.CHECKBOX;
};
@@ -121,7 +121,7 @@ goog.ui.CheckboxRenderer.prototype.setCheckboxState = function(
goog.dom.classes.enable(element, className,
className == classToAdd);
}, this);
- goog.dom.a11y.setState(element, goog.dom.a11y.State.CHECKED,
+ goog.a11y.aria.setState(element, goog.a11y.aria.State.CHECKED,
this.ariaStateFromCheckState_(state));
}
};
@@ -130,7 +130,7 @@ goog.ui.CheckboxRenderer.prototype.setCheckboxState = function(
/**
* Gets the checkbox's ARIA (accessibility) state from its checked state.
* @param {goog.ui.Checkbox.State} state Checkbox state.
- * @return {string} The value of goog.dom.a11y.state.CHECKED. Either 'true',
+ * @return {string} The value of goog.a11y.aria.state.CHECKED. Either 'true',
* 'false', or 'mixed'.
* @private
*/
View
21 closure/goog/ui/container.js
@@ -28,9 +28,10 @@ goog.provide('goog.ui.Container');
goog.provide('goog.ui.Container.EventType');
goog.provide('goog.ui.Container.Orientation');
+goog.require('goog.a11y.aria');
+goog.require('goog.a11y.aria.State');
+goog.require('goog.asserts');
goog.require('goog.dom');
-goog.require('goog.dom.a11y');
-goog.require('goog.dom.a11y.State');
goog.require('goog.events.EventType');
goog.require('goog.events.KeyCodes');
goog.require('goog.events.KeyHandler');
@@ -520,8 +521,12 @@ goog.ui.Container.prototype.handleHighlightItem = function(e) {
}
}
}
- goog.dom.a11y.setState(this.getElement(),
- goog.dom.a11y.State.ACTIVEDESCENDANT, e.target.getElement().id);
+ var element = this.getElement();
+ goog.asserts.assert(element,
+ 'The DOM element for the container cannot be null.');
+ goog.a11y.aria.setState(element,
+ goog.a11y.aria.State.ACTIVEDESCENDANT,
+ e.target.getElement().id);
};
@@ -534,8 +539,12 @@ goog.ui.Container.prototype.handleUnHighlightItem = function(e) {
if (e.target == this.getHighlighted()) {
this.highlightedIndex_ = -1;
}
- goog.dom.a11y.setState(this.getElement(),
- goog.dom.a11y.State.ACTIVEDESCENDANT, '');
+ var element = this.getElement();
+ goog.asserts.assert(element,
+ 'The DOM element for the container cannot be null.');
+ goog.a11y.aria.setState(element,
+ goog.a11y.aria.State.ACTIVEDESCENDANT,
+ '');
};
View
7 closure/goog/ui/containerrenderer.js
@@ -20,9 +20,10 @@
goog.provide('goog.ui.ContainerRenderer');
+goog.require('goog.a11y.aria');
+goog.require('goog.asserts');
goog.require('goog.array');
goog.require('goog.dom');
-goog.require('goog.dom.a11y');
goog.require('goog.dom.classes');
goog.require('goog.string');
goog.require('goog.style');
@@ -292,7 +293,7 @@ goog.ui.ContainerRenderer.prototype.getDecoratorForChild = function(element) {
*/
goog.ui.ContainerRenderer.prototype.initializeDom = function(container) {
var elem = container.getElement();
-
+ goog.asserts.assert(elem, 'The container DOM element cannot be null.');
// Make sure the container's element isn't selectable. On Gecko, recursively
// marking each child element unselectable is expensive and unnecessary, so
// only mark the root element unselectable.
@@ -306,7 +307,7 @@ goog.ui.ContainerRenderer.prototype.initializeDom = function(container) {
// Set the ARIA role.
var ariaRole = this.getAriaRole();
if (ariaRole) {
- goog.dom.a11y.setRole(elem, ariaRole);
+ goog.a11y.aria.setRole(elem, ariaRole);
}
};
View
6 closure/goog/ui/control.js
@@ -240,7 +240,7 @@ goog.ui.Control.prototype.allowTextSelection_ = false;
/**
* The control's preferred ARIA role.
- * @type {?goog.dom.a11y.Role}
+ * @type {?goog.a11y.aria.Role}
* @private
*/
goog.ui.Control.prototype.preferredAriaRole_ = null;
@@ -439,7 +439,7 @@ goog.ui.Control.prototype.createDom = function() {
* cases where a different ARIA role is appropriate for a control because of the
* context in which it's used. E.g., a {@link goog.ui.MenuButton} added to a
* {@link goog.ui.Select} should have an ARIA role of LISTBOX and not MENUITEM.
- * @return {?goog.dom.a11y.Role} This control's preferred ARIA role or null if
+ * @return {?goog.a11y.aria.Role} This control's preferred ARIA role or null if
* no preferred ARIA role is set.
*/
goog.ui.Control.prototype.getPreferredAriaRole = function() {
@@ -453,7 +453,7 @@ goog.ui.Control.prototype.getPreferredAriaRole = function() {
* different ARIA role is appropriate for a control because of the
* context in which it's used. E.g., a {@link goog.ui.MenuButton} added to a
* {@link goog.ui.Select} should have an ARIA role of LISTBOX and not MENUITEM.
- * @param {goog.dom.a11y.Role} role This control's preferred ARIA role.
+ * @param {goog.a11y.aria.Role} role This control's preferred ARIA role.
*/
goog.ui.Control.prototype.setPreferredAriaRole = function(role) {
this.preferredAriaRole_ = role;
View
22 closure/goog/ui/controlrenderer.js
@@ -26,8 +26,6 @@ goog.require('goog.a11y.aria.State');
goog.require('goog.array');
goog.require('goog.asserts');
goog.require('goog.dom');
-goog.require('goog.dom.a11y');
-goog.require('goog.dom.a11y.State');
goog.require('goog.dom.classes');
goog.require('goog.object');
goog.require('goog.style');
@@ -161,7 +159,7 @@ goog.ui.ControlRenderer.ARIA_STATE_MAP_;
/**
* Returns the ARIA role to be applied to the control.
* See http://wiki/Main/ARIA for more info.
- * @return {goog.dom.a11y.Role|undefined} ARIA role.
+ * @return {goog.a11y.aria.Role|undefined} ARIA role.
*/
goog.ui.ControlRenderer.prototype.getAriaRole = function() {
// By default, the ARIA role is unspecified.
@@ -370,13 +368,15 @@ goog.ui.ControlRenderer.prototype.initializeDom = function(control) {
/**
* Sets the element's ARIA role.
* @param {Element} element Element to update.
- * @param {?goog.dom.a11y.Role=} opt_preferredRole The preferred ARIA role.
+ * @param {?goog.a11y.aria.Role=} opt_preferredRole The preferred ARIA role.
*/
goog.ui.ControlRenderer.prototype.setAriaRole = function(element,
opt_preferredRole) {
var ariaRole = opt_preferredRole || this.getAriaRole();
if (ariaRole) {
- goog.dom.a11y.setRole(element, ariaRole);
+ goog.asserts.assert(element,
+ 'The element passed as a first parameter cannot be null.');
+ goog.a11y.aria.setRole(element, ariaRole);
}
};
@@ -544,14 +544,16 @@ goog.ui.ControlRenderer.prototype.updateAriaState = function(element, state,
// Ensure the ARIA state map exists.
if (!goog.ui.ControlRenderer.ARIA_STATE_MAP_) {
goog.ui.ControlRenderer.ARIA_STATE_MAP_ = goog.object.create(
- goog.ui.Component.State.DISABLED, goog.dom.a11y.State.DISABLED,
- goog.ui.Component.State.SELECTED, goog.dom.a11y.State.SELECTED,
- goog.ui.Component.State.CHECKED, goog.dom.a11y.State.CHECKED,
- goog.ui.Component.State.OPENED, goog.dom.a11y.State.EXPANDED);
+ goog.ui.Component.State.DISABLED, goog.a11y.aria.State.DISABLED,
+ goog.ui.Component.State.SELECTED, goog.a11y.aria.State.SELECTED,
+ goog.ui.Component.State.CHECKED, goog.a11y.aria.State.CHECKED,
+ goog.ui.Component.State.OPENED, goog.a11y.aria.State.EXPANDED);
}
var ariaState = goog.ui.ControlRenderer.ARIA_STATE_MAP_[state];
if (ariaState) {
- goog.dom.a11y.setState(element, ariaState, enable);
+ goog.asserts.assert(element,
+ 'The element passed as a first parameter cannot be null.');
+ goog.a11y.aria.setState(element, ariaState, enable);
}
};
View
133 closure/goog/ui/controlrenderer_test.html
@@ -15,9 +15,9 @@
<script src="../base.js"></script>
<script>
goog.require('goog.dom.NodeType');
- goog.require('goog.dom.a11y');
- goog.require('goog.dom.a11y.Role');
- goog.require('goog.dom.a11y.State');
+ goog.require('goog.a11y.aria');
+ goog.require('goog.a11y.aria.Role');
+ goog.require('goog.a11y.aria.State');
goog.require('goog.dom.classes');
goog.require('goog.style');
goog.require('goog.testing.ExpectedFailures');
@@ -58,7 +58,7 @@
/** {@override} */
TestRenderer.prototype.getAriaRole = function() {
- return goog.dom.a11y.Role.BUTTON;
+ return goog.a11y.aria.Role.BUTTON;
};
/** {@override} */
@@ -127,7 +127,7 @@
assertUndefined('ControlRenderer\'s ARIA role must be undefined',
controlRenderer.getAriaRole());
assertEquals('TestRenderer\'s ARIA role must have expected value',
- goog.dom.a11y.Role.BUTTON, testRenderer.getAriaRole());
+ goog.a11y.aria.Role.BUTTON, testRenderer.getAriaRole());
}
function testCreateDom() {
@@ -366,14 +366,16 @@
sandbox.innerHTML = '<div id="foo">Foo</div><div id="bar">Bar</div>';
var foo = goog.dom.getElement('foo');
+ assertNotNull(foo);
controlRenderer.setAriaRole(foo);
assertEquals('ControlRenderer must not set ARIA role', '',
- goog.dom.a11y.getRole(foo));
+ goog.a11y.aria.getRole(foo));
var bar = goog.dom.getElement('bar');
+ assertNotNull(bar);
testRenderer.setAriaRole(bar);
assertEquals('Element must have expected ARIA role',
- goog.dom.a11y.Role.BUTTON, goog.dom.a11y.getRole(bar));
+ goog.a11y.aria.Role.BUTTON, goog.a11y.aria.getRole(bar));
}
function testSetAriaStatesHidden() {
@@ -384,13 +386,13 @@
controlRenderer.setAriaStates(control, foo);
assertEquals('ControlRenderer did not set aria-hidden.', '',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.HIDDEN));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.HIDDEN));
control.setVisible(false);
controlRenderer.setAriaStates(control, foo);
assertEquals('ControlRenderer did not set aria-hidden.', 'true',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.HIDDEN));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.HIDDEN));
}
function testSetAriaStatesDisabled() {
@@ -401,13 +403,13 @@
controlRenderer.setAriaStates(control, foo);
assertEquals('ControlRenderer did not set aria-disabled.', '',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.DISABLED));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.DISABLED));
control.setEnabled(false);
controlRenderer.setAriaStates(control, foo);
assertEquals('ControlRenderer did not set aria-disabled.', 'true',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.DISABLED));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.DISABLED));
}
function testSetAriaStatesSelected() {
@@ -419,13 +421,13 @@
controlRenderer.setAriaStates(control, foo);
assertEquals('ControlRenderer did not set aria-selected.', 'true',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.SELECTED));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.SELECTED));
control.setSelected(false);
controlRenderer.setAriaStates(control, foo);
assertEquals('ControlRenderer did not set aria-selected.', 'false',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.SELECTED));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.SELECTED));
}
function testSetAriaStatesChecked() {
@@ -437,13 +439,13 @@
controlRenderer.setAriaStates(control, foo);
assertEquals('ControlRenderer did not set aria-checked.', 'true',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.CHECKED));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.CHECKED));
control.setChecked(false);
controlRenderer.setAriaStates(control, foo);
assertEquals('ControlRenderer did not set aria-checked.', 'false',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.CHECKED));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.CHECKED));
}
function testSetAriaStatesExpanded() {
@@ -455,13 +457,13 @@
controlRenderer.setAriaStates(control, foo);
assertEquals('ControlRenderer did not set aria-expanded.', 'true',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.EXPANDED));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.EXPANDED));
control.setOpen(false);
controlRenderer.setAriaStates(control, foo);
assertEquals('ControlRenderer did not set aria-expanded.', 'false',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.EXPANDED));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.EXPANDED));
}
function testSetAllowTextSelection() {
@@ -568,11 +570,11 @@
assertTrue('Element must be visible', foo.style.display != 'none');
controlRenderer.setVisible(foo, true);
assertEquals('ControlRenderer did not set aria-hidden.', 'false',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.HIDDEN));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.HIDDEN));
assertTrue('Element must still be visible', foo.style.display != 'none');
controlRenderer.setVisible(foo, false);
assertEquals('ControlRenderer did not set aria-hidden.', 'true',
- goog.dom.a11y.getState(foo, goog.a11y.aria.State.HIDDEN));
+ goog.a11y.aria.getState(foo, goog.a11y.aria.State.HIDDEN));
assertTrue('Element must be hidden', foo.style.display == 'none');
}
@@ -580,25 +582,28 @@
control.setRenderer(testRenderer);
control.createDom();
var element = control.getElement();
-
+ assertNotNull(element);
assertSameElements('Control must have expected class names',
['goog-button', 'goog-base'], goog.dom.classes.get(element));
assertEquals('Control must not have disabled ARIA state', '',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.DISABLED));
+ goog.a11y.aria.getState(element,
+ goog.a11y.aria.State.DISABLED));
testRenderer.setState(control, goog.ui.Component.State.DISABLED, true);
assertSameElements('Control must have disabled class name',
['goog-button', 'goog-base', 'goog-base-disabled'],
goog.dom.classes.get(element));
assertEquals('Control must have disabled ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.DISABLED));
+ goog.a11y.aria.getState(element,
+ goog.a11y.aria.State.DISABLED));
testRenderer.setState(control, goog.ui.Component.State.DISABLED, false);
assertSameElements('Control must no longer have disabled class name',
['goog-button', 'goog-base'], goog.dom.classes.get(element));
assertEquals('Control must not have disabled ARIA state',
'false',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.DISABLED));
+ goog.a11y.aria.getState(element,
+ goog.a11y.aria.State.DISABLED));
testRenderer.setState(control, 0xFFFFFF, true);
assertSameElements('Class names must be unchanged for invalid state',
@@ -608,27 +613,30 @@
function testUpdateAriaStateDisabled() {
control.createDom();
var element = control.getElement();
-
+ assertNotNull(element);
controlRenderer.updateAriaState(element, goog.ui.Component.State.DISABLED,
true);
assertEquals('Control must have disabled ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.DISABLED));
+ goog.a11y.aria.getState(element,
+ goog.a11y.aria.State.DISABLED));
controlRenderer.updateAriaState(element, goog.ui.Component.State.DISABLED,
false);
assertEquals('Control must no longer have disabled ARIA state',
'false',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.DISABLED));
- }
+ goog.a11y.aria.getState(element,
+ goog.a11y.aria.State.DISABLED));
+ }
function testCreateDomAriaStateDisabled() {
control.setEnabled(false);
control.createDom();
var element = control.getElement();
-
+ assertNotNull(element);
assertFalse('Control must be disabled', control.isEnabled());
assertEquals('Control must have disabled ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.DISABLED));
+ goog.a11y.aria.getState(element,
+ goog.a11y.aria.State.DISABLED));
}
function testDecorateAriaStateDisabled() {
@@ -637,27 +645,30 @@
var foo = goog.dom.getElement('foo');
var element = testRenderer.decorate(control, foo);
-
+ assertNotNull(element);
assertFalse('Control must be disabled', control.isEnabled());
assertEquals('Control must have disabled ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.DISABLED));
+ goog.a11y.aria.getState(element,
+ goog.a11y.aria.State.DISABLED));
}
function testUpdateAriaStateSelected() {
control.createDom();
var element = control.getElement();
-
+ assertNotNull(element);
controlRenderer.updateAriaState(element, goog.ui.Component.State.SELECTED,
true);
assertEquals('Control must have selected ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.SELECTED));
+ goog.a11y.aria.getState(element,
+ goog.a11y.aria.State.SELECTED));
controlRenderer.updateAriaState(element, goog.ui.Component.State.SELECTED,
false);
assertEquals('Control must no longer have selected ARIA state',
'false',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.SELECTED));
- }
+ goog.a11y.aria.getState(element,
+ goog.a11y.aria.State.SELECTED));
+ }
function testCreateDomAriaStateSelected() {
control.setSupportedState(goog.ui.Component.State.SELECTED, true);
@@ -665,10 +676,10 @@
control.createDom();
var element = control.getElement();
-
+ assertNotNull(element);
assertTrue('Control must be selected', control.isSelected());
assertEquals('Control must have selected ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.SELECTED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.SELECTED));
}
function testCreateDomAriaStateNotSelected() {
@@ -676,10 +687,10 @@
control.createDom();
var element = control.getElement();
-
+ assertNotNull(element);
assertFalse('Control must not be selected', control.isSelected());
assertEquals('Control must have not-selected ARIA state', 'false',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.SELECTED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.SELECTED));
}
function testDecorateAriaStateSelected() {
@@ -690,27 +701,27 @@
var foo = goog.dom.getElement('foo');
var element = testRenderer.decorate(control, foo);
-
+ assertNotNull(element);
assertTrue('Control must be selected', control.isSelected());
assertEquals('Control must have selected ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.SELECTED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.SELECTED));
}
function testUpdateAriaStateChecked() {
control.createDom();
var element = control.getElement();
-
+ assertNotNull(element);
controlRenderer.updateAriaState(element, goog.ui.Component.State.CHECKED,
true);
assertEquals('Control must have checked ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.CHECKED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.CHECKED));
controlRenderer.updateAriaState(element, goog.ui.Component.State.CHECKED,
false);
assertEquals('Control must no longer have checked ARIA state',
'false',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.CHECKED));
- }
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.CHECKED));
+ }
function testCreateDomAriaStateChecked() {
control.setSupportedState(goog.ui.Component.State.CHECKED, true);
@@ -718,11 +729,11 @@
control.createDom();
var element = control.getElement();
-
+ assertNotNull(element);
assertTrue('Control must be checked', control.isChecked());
assertEquals('Control must have checked ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.CHECKED));
- }
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.CHECKED));
+ }
function testDecorateAriaStateChecked() {
sandbox.innerHTML =
@@ -731,27 +742,27 @@
control.setSupportedState(goog.ui.Component.State.CHECKED, true);
var element = testRenderer.decorate(control, foo);
-
+ assertNotNull(element);
assertTrue('Control must be checked', control.isChecked());
assertEquals('Control must have checked ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.CHECKED));
- }
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.CHECKED));
+ }
function testUpdateAriaStateOpened() {
control.createDom();
var element = control.getElement();
-
+ assertNotNull(element);
controlRenderer.updateAriaState(element, goog.ui.Component.State.OPENED,
true);
assertEquals('Control must have expanded ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.EXPANDED));
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.EXPANDED));
controlRenderer.updateAriaState(element, goog.ui.Component.State.OPENED,
false);
assertEquals('Control must no longer have expanded ARIA state',
'false',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.EXPANDED));
- }
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.EXPANDED));
+ }
function testCreateDomAriaStateOpened() {
control.setSupportedState(goog.ui.Component.State.OPENED, true);
@@ -759,11 +770,11 @@
control.createDom();
var element = control.getElement();
-
+ assertNotNull(element);
assertTrue('Control must be opened', control.isOpen());
assertEquals('Control must have expanded ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.EXPANDED));
- }
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.EXPANDED));
+ }
function testDecorateAriaStateOpened() {
sandbox.innerHTML =
@@ -772,11 +783,11 @@
control.setSupportedState(goog.ui.Component.State.OPENED, true);
var element = testRenderer.decorate(control, foo);
-
+ assertNotNull(element);
assertTrue('Control must be opened', control.isOpen());
assertEquals('Control must have expanded ARIA state', 'true',
- goog.dom.a11y.getState(element, goog.dom.a11y.State.EXPANDED));
- }
+ goog.a11y.aria.getState(element, goog.a11y.aria.State.EXPANDED));
+ }
function testSetContent() {
sandbox.innerHTML = 'Hello, world!';
View
5 closure/goog/ui/custombuttonrenderer.js
@@ -21,6 +21,7 @@
goog.provide('goog.ui.CustomButtonRenderer');
+goog.require('goog.a11y.aria');
goog.require('goog.dom');
goog.require('goog.dom.classes');
goog.require('goog.string');
@@ -85,11 +86,11 @@ goog.ui.CustomButtonRenderer.prototype.createDom = function(control) {
/**
* Returns the ARIA role to be applied to custom buttons.
- * @return {goog.dom.a11y.Role|undefined} ARIA role.
+ * @return {goog.a11y.aria.Role|undefined} ARIA role.
* @override
*/
goog.ui.CustomButtonRenderer.prototype.getAriaRole = function() {
- return goog.dom.a11y.Role.BUTTON;
+ return goog.a11y.aria.Role.BUTTON;
};
View
14 closure/goog/ui/datepicker.js
@@ -23,11 +23,12 @@ goog.provide('goog.ui.DatePicker');
goog.provide('goog.ui.DatePicker.Events');
goog.provide('goog.ui.DatePickerEvent');
+goog.require('goog.a11y.aria');
+goog.require('goog.asserts');
goog.require('goog.date');
goog.require('goog.date.Date');
goog.require('goog.date.Interval');
goog.require('goog.dom');
-goog.require('goog.dom.a11y');
goog.require('goog.dom.classes');
goog.require('goog.events');
goog.require('goog.events.Event');
@@ -717,7 +718,7 @@ goog.ui.DatePicker.prototype.decorateInternal = function(el) {
var tbody = this.dom_.createElement('tbody');
var tfoot = this.dom_.createElement('tfoot');
- goog.dom.a11y.setRole(tbody, 'grid');
+ goog.a11y.aria.setRole(tbody, 'grid');
tbody.tabIndex = '0';
// As per comment in colorpicker: table.tBodies and table.tFoot should not be
@@ -743,7 +744,7 @@ goog.ui.DatePicker.prototype.decorateInternal = function(el) {
cell.className = (j == 0) ?
goog.getCssName(this.getBaseCssClass(), 'week') :
goog.getCssName(this.getBaseCssClass(), 'wday');