Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(256)

Issue 466743002: DevTools: Show doc context menu items for matching methods on all objects (Closed)

Created:
6 years, 4 months ago by semeny
Modified:
6 years, 4 months ago
Reviewers:
yurys, apavlov, lushnikov, iliia
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, malch+blink_chromium.org, yurys+blink_chromium.org, lushnikov+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, sergeyv+blink_chromium.org, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

DevTools: Show doc context menu items for matching methods on all objects If a few target objects have a method with the same name as the selection, we should create context menu items for all of them. BUG=391593 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=180161

Patch Set 1 #

Total comments: 20

Patch Set 2 : Comments addressed #

Total comments: 9

Patch Set 3 : Test updated #

Patch Set 4 : Submenu item added #

Total comments: 9

Patch Set 5 : Removed whitespace from test #

Patch Set 6 : Comments addressed #

Total comments: 4

Patch Set 7 : Submenu is not created in case of single property variant #

Total comments: 1

Patch Set 8 : Final changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+64 lines, -39 lines) Patch
M LayoutTests/inspector/documentation/documentation-url-provider.html View 1 2 3 4 5 1 chunk +10 lines, -3 lines 0 comments Download
M LayoutTests/inspector/documentation/documentation-url-provider-expected.txt View 1 2 1 chunk +16 lines, -11 lines 0 comments Download
M Source/devtools/front_end/documentation/DocumentationURLProvider.js View 1 2 3 4 5 2 chunks +25 lines, -19 lines 0 comments Download
M Source/devtools/front_end/documentation/DocumentationView.js View 1 2 3 4 5 6 7 2 chunks +13 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
semeny
6 years, 4 months ago (2014-08-12 12:36:46 UTC) #1
yurys
https://codereview.chromium.org/466743002/diff/1/Source/devtools/front_end/documentation/DocumentationURLProvider.js File Source/devtools/front_end/documentation/DocumentationURLProvider.js (right): https://codereview.chromium.org/466743002/diff/1/Source/devtools/front_end/documentation/DocumentationURLProvider.js#newcode42 Source/devtools/front_end/documentation/DocumentationURLProvider.js:42: itemPath: function(searchTerm) documentationUrls https://codereview.chromium.org/466743002/diff/1/Source/devtools/front_end/documentation/DocumentationURLProvider.js#newcode47 Source/devtools/front_end/documentation/DocumentationURLProvider.js:47: if (sourceRef.source[searchTerm] instanceof Function) ...
6 years, 4 months ago (2014-08-12 12:50:00 UTC) #2
apavlov
https://codereview.chromium.org/466743002/diff/1/Source/devtools/front_end/documentation/DocumentationURLProvider.js File Source/devtools/front_end/documentation/DocumentationURLProvider.js (right): https://codereview.chromium.org/466743002/diff/1/Source/devtools/front_end/documentation/DocumentationURLProvider.js#newcode14 Source/devtools/front_end/documentation/DocumentationURLProvider.js:14: * @type {!Array.<!Object, string, string>} This annotation is invalid. ...
6 years, 4 months ago (2014-08-12 12:54:17 UTC) #3
lushnikov
https://codereview.chromium.org/466743002/diff/20001/Source/devtools/front_end/documentation/DocumentationURLProvider.js File Source/devtools/front_end/documentation/DocumentationURLProvider.js (right): https://codereview.chromium.org/466743002/diff/20001/Source/devtools/front_end/documentation/DocumentationURLProvider.js#newcode14 Source/devtools/front_end/documentation/DocumentationURLProvider.js:14: * type {!Array.<{source: !Object, url: string, name: string}>} @type ...
6 years, 4 months ago (2014-08-12 13:21:06 UTC) #4
semeny
https://codereview.chromium.org/466743002/diff/1/Source/devtools/front_end/documentation/DocumentationURLProvider.js File Source/devtools/front_end/documentation/DocumentationURLProvider.js (right): https://codereview.chromium.org/466743002/diff/1/Source/devtools/front_end/documentation/DocumentationURLProvider.js#newcode14 Source/devtools/front_end/documentation/DocumentationURLProvider.js:14: * @type {!Array.<!Object, string, string>} On 2014/08/12 12:54:16, apavlov ...
6 years, 4 months ago (2014-08-12 14:28:00 UTC) #5
yurys
lgtm
6 years, 4 months ago (2014-08-12 14:34:29 UTC) #6
semeny
The CQ bit was checked by semeny@google.com
6 years, 4 months ago (2014-08-12 14:43:30 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/semeny@google.com/466743002/100001
6 years, 4 months ago (2014-08-12 14:44:32 UTC) #8
apavlov
The CQ bit was unchecked by apavlov@chromium.org
6 years, 4 months ago (2014-08-12 14:45:09 UTC) #9
apavlov
https://codereview.chromium.org/466743002/diff/80001/LayoutTests/inspector/documentation/documentation-url-provider.html File LayoutTests/inspector/documentation/documentation-url-provider.html (right): https://codereview.chromium.org/466743002/diff/80001/LayoutTests/inspector/documentation/documentation-url-provider.html#newcode22 LayoutTests/inspector/documentation/documentation-url-provider.html:22: ]; This should be indented same as "var testCases", ...
6 years, 4 months ago (2014-08-12 14:45:17 UTC) #10
apavlov
https://codereview.chromium.org/466743002/diff/80001/Source/devtools/front_end/documentation/DocumentationView.js File Source/devtools/front_end/documentation/DocumentationView.js (right): https://codereview.chromium.org/466743002/diff/80001/Source/devtools/front_end/documentation/DocumentationView.js#newcode56 Source/devtools/front_end/documentation/DocumentationView.js:56: var subMenuItem = contextMenu.appendSubMenuItem(WebInspector.UIString(WebInspector.useLowerCaseMenuTitles() ? "Show documentation for" : ...
6 years, 4 months ago (2014-08-12 14:50:45 UTC) #11
semeny
https://codereview.chromium.org/466743002/diff/80001/LayoutTests/inspector/documentation/documentation-url-provider.html File LayoutTests/inspector/documentation/documentation-url-provider.html (right): https://codereview.chromium.org/466743002/diff/80001/LayoutTests/inspector/documentation/documentation-url-provider.html#newcode22 LayoutTests/inspector/documentation/documentation-url-provider.html:22: ]; On 2014/08/12 14:45:16, apavlov wrote: > This should ...
6 years, 4 months ago (2014-08-12 15:28:11 UTC) #12
apavlov
https://codereview.chromium.org/466743002/diff/120001/Source/devtools/front_end/documentation/DocumentationView.js File Source/devtools/front_end/documentation/DocumentationView.js (right): https://codereview.chromium.org/466743002/diff/120001/Source/devtools/front_end/documentation/DocumentationView.js#newcode54 Source/devtools/front_end/documentation/DocumentationView.js:54: if (possibleProperties.length === 0) if (!possibleProperties.length) return; https://codereview.chromium.org/466743002/diff/120001/Source/devtools/front_end/documentation/DocumentationView.js#newcode56 Source/devtools/front_end/documentation/DocumentationView.js:56: ...
6 years, 4 months ago (2014-08-12 15:35:46 UTC) #13
semeny
https://codereview.chromium.org/466743002/diff/120001/Source/devtools/front_end/documentation/DocumentationView.js File Source/devtools/front_end/documentation/DocumentationView.js (right): https://codereview.chromium.org/466743002/diff/120001/Source/devtools/front_end/documentation/DocumentationView.js#newcode54 Source/devtools/front_end/documentation/DocumentationView.js:54: if (possibleProperties.length === 0) On 2014/08/12 15:35:45, apavlov wrote: ...
6 years, 4 months ago (2014-08-12 15:44:49 UTC) #14
semeny
The CQ bit was checked by semeny@google.com
6 years, 4 months ago (2014-08-12 15:58:40 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/semeny@google.com/466743002/130001
6 years, 4 months ago (2014-08-12 15:59:00 UTC) #16
apavlov
lgtm with a nit https://codereview.chromium.org/466743002/diff/130001/Source/devtools/front_end/documentation/DocumentationView.js File Source/devtools/front_end/documentation/DocumentationView.js (right): https://codereview.chromium.org/466743002/diff/130001/Source/devtools/front_end/documentation/DocumentationView.js#newcode58 Source/devtools/front_end/documentation/DocumentationView.js:58: contextMenu.appendItem(String.sprintf(formatString, possibleProperties[0].name, selectedText), WebInspector.DocumentationView.showDocumentationURL.bind(null, possibleProperties[0].url)); ...
6 years, 4 months ago (2014-08-12 16:12:09 UTC) #17
apavlov
Please read http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html - it explains how to write good commit messages (which is what ...
6 years, 4 months ago (2014-08-12 16:45:12 UTC) #18
semeny
The CQ bit was unchecked by semeny@google.com
6 years, 4 months ago (2014-08-12 16:53:30 UTC) #19
semeny
The CQ bit was checked by semeny@google.com
6 years, 4 months ago (2014-08-13 08:09:39 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/semeny@google.com/466743002/150001
6 years, 4 months ago (2014-08-13 08:10:25 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_blink_rel on tryserver.blink ...
6 years, 4 months ago (2014-08-13 09:10:38 UTC) #22
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 09:47:01 UTC) #23
Message was sent while issue was closed.
Change committed as 180161

Powered by Google App Engine
This is Rietveld 408576698