Changeset 175977 in webkit
- Timestamp:
- Nov 11, 2014, 2:20:31 PM (12 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UserInterface/Base/Main.js (modified) (74 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r175850 r175977 1 2014-11-11 Jonathan Wells <jonowells@apple.com> 2 3 Web Inspector: Main.js missing many trailing semicolons 4 https://bugs.webkit.org/show_bug.cgi?id=138624 5 6 Add semicolons to function variable assignments. 7 8 Reviewed by Timothy Hatcher. 9 10 * UserInterface/Base/Main.js: Added semicolons. 11 1 12 2014-11-10 Jonathan Wells <jonowells@apple.com> 2 13 -
trunk/Source/WebInspectorUI/UserInterface/Base/Main.js
r175838 r175977 31 31 DOMStorage: "dom-storage", 32 32 Resource: "resource", // includes Frame too. 33 Timelines: "timelines" ,33 Timelines: "timelines" 34 34 }; 35 35 … … 354 354 355 355 this._contentLoaded = true; 356 } 356 }; 357 357 358 358 WebInspector.activateExtraDomains = function(domains) … … 370 370 371 371 WebInspector.CSSCompletions.requestCSSNameCompletions(); 372 } 372 }; 373 373 374 374 WebInspector.sidebarPanelForCurrentContentView = function() … … 378 378 return null; 379 379 return this.sidebarPanelForRepresentedObject(currentContentView.representedObject); 380 } 380 }; 381 381 382 382 WebInspector.sidebarPanelForRepresentedObject = function(representedObject) … … 401 401 console.error("Unknown representedObject: ", representedObject); 402 402 return null; 403 } 403 }; 404 404 405 405 WebInspector.contentBrowserTreeElementForRepresentedObject = function(contentBrowser, representedObject) … … 413 413 return sidebarPanel.treeElementForRepresentedObject(representedObject); 414 414 return null; 415 } 415 }; 416 416 417 417 WebInspector.updateWindowTitle = function() … … 442 442 // used for updating the window title and it can be any string. 443 443 InspectorFrontendHost.inspectedURLChanged(title); 444 } 444 }; 445 445 446 446 WebInspector.updateDockedState = function(side) … … 486 486 this._updateDockNavigationItems(); 487 487 this._updateToolbarHeight(); 488 } 488 }; 489 489 490 490 WebInspector.handlePossibleLinkClick = function(event, frame, alwaysOpenExternally) … … 506 506 507 507 return true; 508 } 508 }; 509 509 510 510 WebInspector.openURL = function(url, frame, alwaysOpenExternally, lineNumber) … … 540 540 541 541 InspectorFrontendHost.openInNewTab(url); 542 } 542 }; 543 543 544 544 WebInspector.close = function() … … 550 550 551 551 InspectorFrontendHost.closeWindow(); 552 } 552 }; 553 553 554 554 WebInspector.isConsoleFocused = function() 555 555 { 556 556 return this.quickConsole.prompt.focused; 557 } 557 }; 558 558 559 559 WebInspector.isShowingSplitConsole = function() 560 560 { 561 561 return !this.splitContentBrowser.element.classList.contains("hidden"); 562 } 562 }; 563 563 564 564 WebInspector.currentViewSupportsSplitContentBrowser = function() … … 566 566 var currentContentView = this.contentBrowser.currentContentView; 567 567 return !currentContentView || currentContentView.supportsSplitContentBrowser; 568 } 568 }; 569 569 570 570 WebInspector.toggleSplitConsole = function() … … 579 579 else 580 580 this.showSplitConsole(); 581 } 581 }; 582 582 583 583 WebInspector.showSplitConsole = function() … … 606 606 607 607 this.quickConsole.consoleLogVisibilityChanged(true); 608 } 608 }; 609 609 610 610 WebInspector.hideSplitConsole = function() … … 618 618 619 619 this.quickConsole.consoleLogVisibilityChanged(false); 620 } 620 }; 621 621 622 622 WebInspector.showFullHeightConsole = function(scope) … … 657 657 658 658 this.quickConsole.consoleLogVisibilityChanged(true); 659 } 659 }; 660 660 661 661 WebInspector.isShowingConsoleView = function() 662 662 { 663 663 return this.contentBrowser.currentContentView instanceof WebInspector.LogContentView; 664 } 664 }; 665 665 666 666 WebInspector.showConsoleView = function(scope) 667 667 { 668 668 this.showFullHeightConsole(scope); 669 } 669 }; 670 670 671 671 WebInspector.toggleConsoleView = function() … … 684 684 } else 685 685 this.showFullHeightConsole(); 686 } 686 }; 687 687 688 688 WebInspector.UIString = function(string, vararg) … … 703 703 704 704 return "LOCALIZED STRING NOT FOUND"; 705 } 705 }; 706 706 707 707 WebInspector.restoreFocusFromElement = function(element) … … 709 709 if (element && element.isSelfOrAncestor(this.currentFocusElement)) 710 710 this.previousFocusElement.focus(); 711 } 711 }; 712 712 713 713 WebInspector._focusChanged = function(event) … … 740 740 selection.removeAllRanges(); 741 741 selection.addRange(selectionRange); 742 } 742 }; 743 743 744 744 WebInspector._mouseWasClicked = function(event) 745 745 { 746 746 this.handlePossibleLinkClick(event); 747 } 747 }; 748 748 749 749 WebInspector._dragOver = function(event) … … 760 760 event.dataTransfer.dropEffect = "none"; 761 761 event.preventDefault(); 762 } 762 }; 763 763 764 764 WebInspector._captureDidStart = function(event) 765 765 { 766 766 this.dashboardContainer.showDashboardViewForRepresentedObject(this.dashboardManager.dashboards.replay); 767 } 767 }; 768 768 769 769 WebInspector._debuggerDidPause = function(event) … … 777 777 778 778 InspectorFrontendHost.bringToFront(); 779 } 779 }; 780 780 781 781 WebInspector._debuggerDidResume = function(event) 782 782 { 783 783 this.dashboardContainer.closeDashboardViewForRepresentedObject(this.dashboardManager.dashboards.debugger); 784 } 784 }; 785 785 786 786 WebInspector._mainFrameDidChange = function(event) 787 787 { 788 788 this.updateWindowTitle(); 789 } 789 }; 790 790 791 791 WebInspector._mainResourceDidChange = function(event) … … 799 799 800 800 this.updateWindowTitle(); 801 } 801 }; 802 802 803 803 WebInspector._provisionalLoadStarted = function(event) … … 809 809 810 810 this._inProvisionalLoad = true; 811 } 811 }; 812 812 813 813 WebInspector._windowFocused = function(event) … … 818 818 // FIXME: We should use the :window-inactive pseudo class once https://webkit.org/b/38927 is fixed. 819 819 document.body.classList.remove("window-inactive"); 820 } 820 }; 821 821 822 822 WebInspector._windowBlurred = function(event) … … 827 827 // FIXME: We should use the :window-inactive pseudo class once https://webkit.org/b/38927 is fixed. 828 828 document.body.classList.add("window-inactive"); 829 } 829 }; 830 830 831 831 WebInspector._windowResized = function(event) … … 834 834 835 835 this._contentBrowserSizeDidChange(event); 836 } 836 }; 837 837 838 838 WebInspector._updateModifierKeys = function(event) … … 844 844 if (didChange) 845 845 this.notifications.dispatchEventToListeners(WebInspector.Notification.GlobalModifierKeysDidChange, event); 846 } 846 }; 847 847 848 848 WebInspector._windowKeyDown = function(event) … … 852 852 var opposite = !this._dockButtonToggledSetting.value; 853 853 this.undockButtonNavigationItem.toggled = (event.altKey && !event.metaKey && !event.shiftKey) ? opposite : !opposite; 854 } 854 }; 855 855 856 856 WebInspector._windowKeyUp = function(event) … … 860 860 var opposite = !this._dockButtonToggledSetting.value; 861 861 this.undockButtonNavigationItem.toggled = (event.altKey && !event.metaKey && !event.shiftKey) ? opposite : !opposite; 862 } 862 }; 863 863 864 864 WebInspector._mouseMoved = function(event) … … 869 869 y: event.pageY 870 870 }; 871 } 871 }; 872 872 873 873 WebInspector._pageHidden = function(event) 874 874 { 875 875 this._updateCookieForInspectorViewState(); 876 } 876 }; 877 877 878 878 WebInspector._undock = function(event) … … 884 884 else 885 885 InspectorFrontendHost.requestSetDockSide("undocked"); 886 } 886 }; 887 887 888 888 WebInspector._updateDockNavigationItems = function() … … 899 899 900 900 this.undockButtonNavigationItem.toggled = this._dockButtonToggledSetting.value; 901 } 901 }; 902 902 903 903 WebInspector._sidebarCollapsedStateDidChange = function(event) … … 910 910 this._detailsSidebarCollapsedSetting.value = this.detailsSidebar.collapsed; 911 911 } 912 } 912 }; 913 913 914 914 WebInspector._detailsSidebarPanelSelected = function(event) … … 918 918 919 919 this._lastSelectedDetailsSidebarPanelSetting.value = this.detailsSidebar.selectedSidebarPanel.identifier; 920 } 920 }; 921 921 922 922 WebInspector._revealAndSelectRepresentedObjectInNavigationSidebar = function(representedObject) … … 946 946 if (!selectedSidebarPanel.hasSelectedElement) 947 947 selectedSidebarPanel.showDefaultContentView(); 948 } 948 }; 949 949 950 950 WebInspector._updateNavigationSidebarForCurrentContentView = function() … … 975 975 976 976 this._revealAndSelectRepresentedObjectInNavigationSidebar(currentContentView.representedObject); 977 } 977 }; 978 978 979 979 WebInspector._navigationSidebarPanelSelected = function(event) … … 984 984 985 985 this._updateNavigationSidebarForCurrentContentView(); 986 } 986 }; 987 987 988 988 WebInspector._domNodeWasInspected = function(event) … … 995 995 996 996 InspectorFrontendHost.bringToFront(); 997 } 997 }; 998 998 999 999 WebInspector._contentBrowserSizeDidChange = function(event) … … 1002 1002 this.splitContentBrowser.updateLayout(); 1003 1003 this.quickConsole.updateLayout(); 1004 } 1004 }; 1005 1005 1006 1006 WebInspector._quickConsoleDidResize = function(event) 1007 1007 { 1008 1008 this.contentBrowser.updateLayout(); 1009 } 1009 }; 1010 1010 1011 1011 WebInspector._sidebarWidthDidChange = function(event) … … 1019 1019 1020 1020 this._contentBrowserSizeDidChange(event); 1021 } 1021 }; 1022 1022 1023 1023 WebInspector._updateToolbarHeight = function() … … 1025 1025 if (WebInspector.Platform.isLegacyMacOS) 1026 1026 InspectorFrontendHost.setToolbarHeight(this.toolbar.element.offsetHeight); 1027 } 1027 }; 1028 1028 1029 1029 WebInspector._toolbarDisplayModeDidChange = function(event) … … 1040 1040 1041 1041 this._updateToolbarHeight(); 1042 } 1042 }; 1043 1043 1044 1044 WebInspector._toolbarSizeModeDidChange = function(event) … … 1055 1055 1056 1056 this._updateToolbarHeight(); 1057 } 1057 }; 1058 1058 1059 1059 WebInspector._updateCookieForInspectorViewState = function() … … 1085 1085 selectedSidebarPanel.saveStateToCookie(cookie); 1086 1086 this._lastInspectorViewStateCookieSetting.value = cookie; 1087 } 1087 }; 1088 1088 1089 1089 WebInspector._contentBrowserCurrentContentViewDidChange = function(event) … … 1120 1120 1121 1121 this._revealAndSelectRepresentedObjectInNavigationSidebar(currentContentView.representedObject); 1122 } 1122 }; 1123 1123 1124 1124 WebInspector._contentBrowserRepresentedObjectsDidChange = function(event) … … 1178 1178 // Stop ignoring the sidebar panel selected event. 1179 1179 delete this._ignoreDetailsSidebarPanelSelectedEvent; 1180 } 1180 }; 1181 1181 1182 1182 WebInspector._restoreInspectorViewStateFromCookie = function(cookie, causedByReload) … … 1207 1207 var relaxMatchDelay = causedByReload ? matchTypeOnlyDelayForReload : matchTypeOnlyDelayForReopen; 1208 1208 sidebarPanel.restoreStateFromCookie(cookie, relaxMatchDelay); 1209 } 1209 }; 1210 1210 1211 1211 WebInspector._initializeWebSocketIfNeeded = function() … … 1228 1228 1229 1229 InspectorFrontendHost.initializeWebSocket(url); 1230 } 1230 }; 1231 1231 1232 1232 WebInspector._updateSplitConsoleHeight = function(height) … … 1238 1238 1239 1239 this.splitContentBrowser.element.style.height = height + "px"; 1240 } 1240 }; 1241 1241 1242 1242 WebInspector._consoleResizerMouseDown = function(event) … … 1273 1273 1274 1274 this.elementDragStart(resizerElement, dockedResizerDrag.bind(this), dockedResizerDragEnd.bind(this), event, "row-resize"); 1275 } 1275 }; 1276 1276 1277 1277 WebInspector._toolbarMouseDown = function(event) … … 1287 1287 else 1288 1288 this._moveWindowMouseDown(event); 1289 } 1289 }; 1290 1290 1291 1291 WebInspector._dockedResizerMouseDown = function(event) … … 1348 1348 1349 1349 WebInspector.elementDragStart(resizerElement, dockedResizerDrag.bind(this), dockedResizerDragEnd.bind(this), event, this._dockSide === "bottom" ? "row-resize" : "col-resize"); 1350 } 1350 }; 1351 1351 1352 1352 WebInspector._moveWindowMouseDown = function(event) … … 1395 1395 1396 1396 WebInspector.elementDragStart(event.target, toolbarDrag, toolbarDragEnd, event, "default"); 1397 } 1397 }; 1398 1398 1399 1399 WebInspector._inspectModeStateChanged = function(event) 1400 1400 { 1401 1401 this._inspectModeToolbarButton.activated = WebInspector.domTreeManager.inspectModeEnabled; 1402 } 1402 }; 1403 1403 1404 1404 WebInspector._toggleInspectMode = function(event) 1405 1405 { 1406 1406 WebInspector.domTreeManager.inspectModeEnabled = !WebInspector.domTreeManager.inspectModeEnabled; 1407 } 1407 }; 1408 1408 1409 1409 WebInspector._reloadPage = function(event) 1410 1410 { 1411 1411 PageAgent.reload(); 1412 } 1412 }; 1413 1413 1414 1414 WebInspector._reloadPageIgnoringCache = function(event) 1415 1415 { 1416 1416 PageAgent.reload(true); 1417 } 1417 }; 1418 1418 1419 1419 WebInspector._toggleInspectMode = function(event) 1420 1420 { 1421 1421 this.domTreeManager.inspectModeEnabled = !this.domTreeManager.inspectModeEnabled; 1422 } 1422 }; 1423 1423 1424 1424 WebInspector._focusedContentView = function() … … 1429 1429 return this.splitContentBrowser.currentContentView; 1430 1430 return null; 1431 } 1431 }; 1432 1432 1433 1433 WebInspector._beforecopy = function(event) … … 1458 1458 // Say we can handle it (by preventing default) to remove word break characters. 1459 1459 event.preventDefault(); 1460 } 1460 }; 1461 1461 1462 1462 WebInspector._copy = function(event) … … 1489 1489 event.clipboardData.setData("text/plain", selectionString); 1490 1490 event.preventDefault(); 1491 } 1491 }; 1492 1492 1493 1493 WebInspector._generateDisclosureTriangleImages = function() … … 1504 1504 generateColoredImagesForCSS("Images/DisclosureTriangleTinyOpen.svg", specifications, 8, 8, "disclosure-triangle-tiny-open-"); 1505 1505 generateColoredImagesForCSS("Images/DisclosureTriangleTinyClosed.svg", specifications, 8, 8, "disclosure-triangle-tiny-closed-"); 1506 } 1506 }; 1507 1507 1508 1508 WebInspector.elementDragStart = function(element, dividerDrag, elementDragEnd, event, cursor, eventTarget) … … 1535 1535 1536 1536 event.preventDefault(); 1537 } 1537 }; 1538 1538 1539 1539 WebInspector.elementDragEnd = function(event) … … 1553 1553 1554 1554 event.preventDefault(); 1555 } 1555 }; 1556 1556 1557 1557 WebInspector.createMessageTextView = function(message, isError) … … 1565 1565 1566 1566 return messageElement; 1567 } 1567 }; 1568 1568 1569 1569 WebInspector.createGoToArrowButton = function() … … 1591 1591 button.tabIndex = -1; 1592 1592 return button; 1593 } 1593 }; 1594 1594 1595 1595 WebInspector.createSourceCodeLocationLink = function(sourceCodeLocation, dontFloat, useGoToArrowButton) … … 1624 1624 1625 1625 return linkElement; 1626 } 1626 }; 1627 1627 1628 1628 WebInspector.linkifyLocation = function(url, lineNumber, columnNumber, className) … … 1650 1650 linkElement.classList.add(className); 1651 1651 return linkElement; 1652 } 1652 }; 1653 1653 1654 1654 WebInspector.linkifyURLAsNode = function(url, linkText, classes, tooltipText) … … 1672 1672 1673 1673 return a; 1674 } 1674 }; 1675 1675 1676 1676 WebInspector.linkifyStringAsFragmentWithCustomLinkifier = function(string, linkifier) … … 1705 1705 1706 1706 return container; 1707 } 1707 }; 1708 1708 1709 1709 WebInspector.linkifyStringAsFragment = function(string) … … 1719 1719 1720 1720 return WebInspector.linkifyStringAsFragmentWithCustomLinkifier(string, linkifier); 1721 } 1721 }; 1722 1722 1723 1723 WebInspector._undoKeyboardShortcut = function(event) … … 1727 1727 event.preventDefault(); 1728 1728 } 1729 } 1729 }; 1730 1730 1731 1731 WebInspector._redoKeyboardShortcut = function(event) … … 1735 1735 event.preventDefault(); 1736 1736 } 1737 } 1737 }; 1738 1738 1739 1739 WebInspector.undo = function() 1740 1740 { 1741 1741 DOMAgent.undo(); 1742 } 1742 }; 1743 1743 1744 1744 WebInspector.redo = function() 1745 1745 { 1746 1746 DOMAgent.redo(); 1747 } 1747 }; 1748 1748 1749 1749 WebInspector.highlightRangesWithStyleClass = function(element, resultRanges, styleClass, changes) … … 1824 1824 } 1825 1825 return highlightNodes; 1826 } 1826 }; 1827 1827 1828 1828 WebInspector.revertDomChanges = function(domChanges) … … 1840 1840 } 1841 1841 } 1842 } 1842 }; 1843 1843 1844 1844 WebInspector.archiveMainFrame = function() … … 1858 1858 }.bind(this)); 1859 1859 }.bind(this), 3000); 1860 } 1860 }; 1861 1861 1862 1862 WebInspector.canArchiveMainFrame = function() … … 1866 1866 1867 1867 return WebInspector.Resource.typeFromMIMEType(WebInspector.frameResourceManager.mainFrame.mainResource.mimeType) === WebInspector.Resource.Type.Document; 1868 } 1868 }; 1869 1869 1870 1870 WebInspector.addWindowKeydownListener = function(listener) … … 1891 1891 else 1892 1892 window.removeEventListener("keydown", WebInspector._sharedWindowKeydownListener, true); 1893 } 1893 }; 1894 1894 1895 1895 WebInspector._sharedWindowKeydownListener = function(event)
Note:
See TracChangeset
for help on using the changeset viewer.