Changeset 215357 in webkit
- Timestamp:
- Apr 13, 2017 9:47:19 PM (7 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r215333 r215357 1 2017-04-13 Ross Kirsling <ross.kirsling@sony.com> 2 3 Web Inspector: No context menu available via ENABLE_INSPECTOR_SERVER 4 https://bugs.webkit.org/show_bug.cgi?id=170705 5 6 Reviewed by Joseph Pecoraro. 7 8 Reintroduce old SoftContextMenu class (removed in r157278) and apply various fixes: 9 - Remove legacy globals and prototype extensions. 10 - Align JS/CSS style with current front-end code. 11 - Update UI and fix UX to replicate the macOS native context menu. 12 13 * Scripts/copy-user-interface-resources.pl: 14 Add copyright line for Sony Interactive Entertainment. 15 16 * UserInterface/Base/InspectorFrontendHostStub.js: 17 (WebInspector.InspectorFrontendHostStub.prototype.showContextMenu): 18 Use SoftContextMenu. 19 20 * UserInterface/Main.html: 21 Include SoftContextMenu. 22 23 * UserInterface/Views/SoftContextMenu.css: Added. 24 (.soft-context-menu-glass-pane): 25 (.soft-context-menu): 26 (.soft-context-menu > .item): 27 (.soft-context-menu > .item.disabled): 28 (.soft-context-menu > .item.highlighted): 29 (.soft-context-menu > .item > .checkmark): 30 (.soft-context-menu > .item > .label): 31 (.soft-context-menu > .item > .submenu-arrow): 32 (.soft-context-menu > .separator): 33 (.soft-context-menu > .separator > .line): 34 35 * UserInterface/Views/SoftContextMenu.js: Added. 36 (WebInspector.SoftContextMenu): 37 (WebInspector.SoftContextMenu.prototype.show): 38 (WebInspector.SoftContextMenu.prototype._consumeEvent): 39 (WebInspector.SoftContextMenu.prototype._parentGlassPaneElement): 40 (WebInspector.SoftContextMenu.prototype._createMenuItem): 41 (WebInspector.SoftContextMenu.prototype._createSeparator): 42 (WebInspector.SoftContextMenu.prototype._repositionMenuOnScreen): 43 (WebInspector.SoftContextMenu.prototype._showSubMenu): 44 (WebInspector.SoftContextMenu.prototype._hideSubMenu): 45 (WebInspector.SoftContextMenu.prototype._menuItemContextMenu): 46 (WebInspector.SoftContextMenu.prototype._menuItemMouseDown): 47 (WebInspector.SoftContextMenu.prototype._menuItemMouseUp): 48 (WebInspector.SoftContextMenu.prototype._menuItemMouseOver): 49 (WebInspector.SoftContextMenu.prototype._menuItemMouseOut): 50 (WebInspector.SoftContextMenu.prototype._menuKeyDown): 51 (WebInspector.SoftContextMenu.prototype._glassPaneMouseDown): 52 (WebInspector.SoftContextMenu.prototype._focus): 53 (WebInspector.SoftContextMenu.prototype._triggerAction): 54 (WebInspector.SoftContextMenu.prototype._highlightMenuItem): 55 (WebInspector.SoftContextMenu.prototype._highlightPrevious): 56 (WebInspector.SoftContextMenu.prototype._highlightNext): 57 (WebInspector.SoftContextMenu.prototype._discardMenu): 58 (WebInspector.SoftContextMenu.prototype._discardSubMenus): 59 1 60 2017-04-13 Brian Burg <bburg@apple.com> 2 61 -
trunk/Source/WebInspectorUI/Scripts/copy-user-interface-resources.pl
r205693 r215357 108 108 * Copyright (C) 2015 Tobias Reiss <tobi+webkit@basecode.de> 109 109 * Copyright (C) 2015-2016 Devin Rousso <dcrousso+webkit@gmail.com>. All rights reserved. 110 * Copyright (C) 2017 Sony Interactive Entertainment Inc. 110 111 * 111 112 * Redistribution and use in source and binary forms, with or without -
trunk/Source/WebInspectorUI/UserInterface/Base/InspectorFrontendHostStub.js
r212272 r215357 165 165 showContextMenu: function(event, menuObject) 166 166 { 167 new WebInspector.SoftContextMenu(menuObject).show(event); 167 168 }, 168 169 -
trunk/Source/WebInspectorUI/UserInterface/Main.html
r215256 r215357 158 158 <link rel="stylesheet" href="Views/SidebarPanel.css"> 159 159 <link rel="stylesheet" href="Views/Slider.css"> 160 <link rel="stylesheet" href="Views/SoftContextMenu.css"> 160 161 <link rel="stylesheet" href="Views/SourceCodeTextEditor.css"> 161 162 <link rel="stylesheet" href="Views/SpringEditor.css"> … … 660 661 <script src="Views/Sidebar.js"></script> 661 662 <script src="Views/Slider.js"></script> 663 <script src="Views/SoftContextMenu.js"></script> 662 664 <script src="Views/SourceCodeTextEditor.js"></script> 663 665 <script src="Views/SourceCodeTimelineTimelineDataGridNode.js"></script>
Note: See TracChangeset
for help on using the changeset viewer.