OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <html> | |
3 <body> | |
4 <script> | |
5 | |
6 function testHandleMouseOver() { | |
7 var menu = new cr.ui.Menu; | |
8 cr.ui.decorate(menu, cr.ui.Menu); | |
arv (Not doing code reviews)
2014/08/20 16:46:47
You should not need to call decorate here
Dan Beam
2014/08/20 17:20:12
https://code.google.com/p/chromium/codesearch#chro
| |
9 | |
10 var over = cr.doc.createEvent('MouseEvent'); | |
11 over.initEvent('mouseover', true, true); | |
arv (Not doing code reviews)
2014/08/20 16:46:47
This is not really correct but I guess it is good
Dan Beam
2014/08/20 17:20:12
ah, yeah, initMouseEvent... whoops.
| |
12 over.target = document.body; | |
13 menu.dispatchEvent(over); | |
14 } | |
15 | |
16 </script> | |
17 </body> | |
18 </html> | |
OLD | NEW |