Skip to content
  • caseq@chromium.org's avatar
    Web Inspector: add "Add to Watch" option to context menu on selection in source frame · 914b43cb
    caseq@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=69924
    
    Reviewed by Pavel Feldman.
    
    - added 'Add to Watch' context menu item in scripts panel;
    - include both default and custom items into a context menu if selection is present;
    
    * inspector/front-end/ScriptsPanel.js:
    (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.suggestedFileName):
    (WebInspector.SourceFrameDelegateForScriptsPanel.prototype.addToWatch):
    * inspector/front-end/SourceFrame.js:
    (WebInspector.SourceFrame.prototype.populateSelectionContextMenu):
    (WebInspector.TextViewerDelegateForSourceFrame.prototype.populateSelectionContextMenu):
    (WebInspector.SourceFrameDelegate.prototype.suggestedFileName):
    (WebInspector.SourceFrameDelegate.prototype.addToWatch):
    * inspector/front-end/TextViewer.js:
    (WebInspector.TextViewer.prototype._contextMenu):
    (WebInspector.TextViewerDelegate.prototype.populateSelectionContextMenu):
    * inspector/front-end/WatchExpressionsSidebarPane.js:
    (WebInspector.WatchExpressionsSidebarPane.prototype.addExpression):
    (WebInspector.WatchExpressionsSidebarPane.prototype._addButtonClicked):
    (WebInspector.WatchExpressionsSection.prototype.addExpression):
    (WebInspector.WatchExpressionsSection.prototype.addNewExpressionAndEdit):
    * page/ContextMenuController.cpp:
    (WebCore::ContextMenuController::showContextMenu):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@98233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    914b43cb