• graouts@apple.com's avatar
    Web Inspector: "data detectors" menu on hover for actionable tokens · e3186aeb
    graouts@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=124363
    
    Reviewed by Timothy Hatcher.
    
    Add a new WebInspector.HoverMenu class to display an overlay menu that is presented
    with respect to a target frame that it draws itself around adding a customizable
    action button to its right. The menu uses fade animations as it's presented and
    dismissed and a single delegation method is fired when the button is pressed. Finally,
    just like a popover, it automatically dismisses itself upon scrolling anywhere
    outside of its bounds.
    
    * UserInterface/HoverMenu.css: Added.
    * UserInterface/HoverMenu.js: Added.
    (WebInspector.HoverMenu):
    (WebInspector.HoverMenu.prototype.get element):
    (WebInspector.HoverMenu.prototype.dismiss):
    (WebInspector.HoverMenu.prototype.handleEvent):
    (WebInspector.HoverMenu.prototype._handleClickEvent):
    * UserInterface/Images/HoverMenuButton.png: Added.
    * UserInterface/Images/HoverMenuButton@2x.png: Added.
    * UserInterface/Main.html:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160134 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e3186aeb
Main.html 21.4 KB