• caseq@chromium.org's avatar
    Web Inspector: factor out node search controller from inspector.js · 60f0dce4
    caseq@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=112689
    
    Reviewed by Pavel Feldman.
    
    This just extracts the existing logic of toggling node search
    from inspector.js into a class of its own, InspectElementModeController.
    Drive-by: add CtrlOrMeta+Shift+C to help screen.
    
    * English.lproj/localizedStrings.js:
    * WebCore.gypi:
    * WebCore.vcproj/WebCore.vcproj:
    * WebCore.vcxproj/WebCore.vcxproj:
    * WebCore.vcxproj/WebCore.vcxproj.filters:
    * inspector/compile-front-end.py:
    * inspector/front-end/InspectElementModeController.js: Added.
    (WebInspector.InspectElementModeController):
    (WebInspector.InspectElementModeController.createShortcut):
    (WebInspector.InspectElementModeController.prototype.enabled):
    (WebInspector.InspectElementModeController.prototype.disable):
    (WebInspector.InspectElementModeController.prototype.toggleSearch.callback):
    (WebInspector.InspectElementModeController.prototype.toggleSearch):
    (WebInspector.InspectElementModeController.prototype.handleShortcut):
    * inspector/front-end/InspectorFrontendAPI.js:
    (InspectorFrontendAPI.enterInspectElementMode):
    * inspector/front-end/WebKit.qrc:
    * inspector/front-end/inspector.html:
    * inspector/front-end/inspector.js:
    (WebInspector._createGlobalStatusBarItems):
    (WebInspector._registerShortcuts):
    (WebInspector.documentKeyDown):
    (WebInspector._updateFocusedNode):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@147105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    60f0dce4
WebCore.vcxproj 1.14 MB