Bug 86847

Summary: Web Inspector: Support hierarchical context menus
Product: WebKit Reporter: Alexander Pavlov (apavlov) <apavlov>
Component: Web Inspector (Deprecated)Assignee: Alexander Pavlov (apavlov) <apavlov>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, apavlov, bweinstein, haraken, japhet, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 86625    
Bug Blocks: 86630    
Attachments:
Description Flags
Patch
none
Patch
none
Patch pfeldman: review+

Alexander Pavlov (apavlov)
Reported 2012-05-18 05:46:48 PDT
This is required to implement the pseudo-state emulation on non-selected elements
Attachments
Patch (14.66 KB, patch)
2012-05-22 10:10 PDT, Alexander Pavlov (apavlov)
no flags
Patch (21.78 KB, patch)
2012-05-23 05:09 PDT, Alexander Pavlov (apavlov)
no flags
Patch (36.47 KB, patch)
2012-05-24 04:56 PDT, Alexander Pavlov (apavlov)
pfeldman: review+
Alexander Pavlov (apavlov)
Comment 1 2012-05-22 10:10:23 PDT
Pavel Feldman
Comment 2 2012-05-23 02:03:28 PDT
Comment on attachment 143321 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=143321&action=review > Source/WebCore/ChangeLog:9 > + in the Web Inspector's context menu. ContextMenuItems are also passed/stored by reference/value rather than pointer I vaguely remember that when it was initially implemented, not all the platforms allowed treating ContextMenuItem as value type. Did this change?
Alexander Pavlov (apavlov)
Comment 3 2012-05-23 02:12:39 PDT
(In reply to comment #2) > (From update of attachment 143321 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=143321&action=review > > > Source/WebCore/ChangeLog:9 > > + in the Web Inspector's context menu. ContextMenuItems are also passed/stored by reference/value rather than pointer > > I vaguely remember that when it was initially implemented, not all the platforms allowed treating ContextMenuItem as value type. Did this change? Offline, we discovered that the platform objects represented by description are managed by the platform-specific code through the releasePlatformDescription() method.
Alexander Pavlov (apavlov)
Comment 4 2012-05-23 05:09:11 PDT
Pavel Feldman
Comment 5 2012-05-23 09:32:36 PDT
Comment on attachment 143538 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=143538&action=review Make sure you implement SoftContextMenu based on the new descriptor. > Source/WebCore/inspector/front-end/ContextMenu.js:45 > + this._topLevelMenu = topLevelMenu; this._contextMenu > Source/WebCore/inspector/front-end/ContextMenu.js:51 > + get id() id: function() > Source/WebCore/inspector/front-end/ContextMenu.js:56 > + get type() type: function() > Source/WebCore/inspector/front-end/ContextMenu.js:95 > + this._topLevelMenu.setHandler(item.id, handler); Make it all private. > Source/WebCore/inspector/front-end/ContextMenu.js:143 > + toProtocol: function() _buildDescriptor:
Alexander Pavlov (apavlov)
Comment 6 2012-05-24 04:56:31 PDT
Pavel Feldman
Comment 7 2012-05-24 07:13:10 PDT
Comment on attachment 143788 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=143788&action=review > Source/WebCore/bindings/v8/custom/V8InspectorFrontendHostCustom.cpp:80 > + v8::Local<v8::Value> subItems = item->Get(v8::String::New("subItems")); subItems -> items ?
Alexander Pavlov (apavlov)
Comment 8 2012-05-24 07:53:30 PDT
Note You need to log in before you can comment on or make changes to this bug.