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

Issue 2712063002: [DevTools] Migrate Popover to GlassPane (Closed)

Created:
3 years, 10 months ago by dgozman
Modified:
3 years, 9 months ago
Reviewers:
alph
CC:
chromium-reviews, caseq+blink_chromium.org, blink-reviews-style_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, apavlov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, pfeldman, kozyatinskiy+blink_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[DevTools] Migrate Popover to GlassPane - Removed one more modal primitive. - Fixed multiple bugs with wrong arrow position. - Made popover work great when not enough space (e.g. color swatch now scrolls). - Migrated to UI.Icon for arrows. Further API simplification of Popover/GlassPane to follow. BUG=none Review-Url: https://codereview.chromium.org/2712063002 Cr-Commit-Position: refs/heads/master@{#455301} Committed: https://chromium.googlesource.com/chromium/src/+/72b6d79734c7fd5925b6f862c588229b0207afe6

Patch Set 1 #

Patch Set 2 : proper arrow position #

Patch Set 3 : setCanShrink #

Patch Set 4 : even better positioning, fixed spectrum #

Patch Set 5 : ready #

Total comments: 2

Patch Set 6 : nit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -272 lines) Patch
M third_party/WebKit/LayoutTests/inspector/elements/styles-1/color-swatch.html View 1 2 3 4 2 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/color_picker/spectrum.css View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/ElementsPanel.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/elements/ElementsTreeOutline.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/inline_editor/SwatchPopoverHelper.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/network/NetworkLogViewColumns.js View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/object_ui/ObjectPopoverHelper.js View 1 2 3 4 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/object_ui/objectPopover.css View 1 2 3 4 1 chunk +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/perf_ui/TimelineOverviewPane.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/quick_open/FilteredListWidget.js View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js View 1 2 3 4 5 7 chunks +117 lines, -22 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/Icon.js View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/Popover.js View 1 2 3 4 3 chunks +27 lines, -143 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/Widget.js View 1 chunk +0 lines, -20 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/glassPane.css View 1 chunk +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/inspectorCommon.css View 1 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/inspectorStyle.css View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/ui/popover.css View 1 2 3 1 chunk +10 lines, -61 lines 0 comments Download

Messages

Total messages: 15 (10 generated)
dgozman
Mind taking a look?
3 years, 9 months ago (2017-03-07 01:20:42 UTC) #4
alph
lgtm https://codereview.chromium.org/2712063002/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js File third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js (right): https://codereview.chromium.org/2712063002/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js#newcode194 third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js:194: this._arrowElement.classList.remove('arrow-none'); nit: remove accepts multiple arguments
3 years, 9 months ago (2017-03-07 02:39:10 UTC) #6
dgozman
https://codereview.chromium.org/2712063002/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js File third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js (right): https://codereview.chromium.org/2712063002/diff/80001/third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js#newcode194 third_party/WebKit/Source/devtools/front_end/ui/GlassPane.js:194: this._arrowElement.classList.remove('arrow-none'); On 2017/03/07 02:39:10, alph wrote: > nit: remove ...
3 years, 9 months ago (2017-03-07 21:33:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2712063002/100001
3 years, 9 months ago (2017-03-07 21:35:11 UTC) #12
commit-bot: I haz the power
3 years, 9 months ago (2017-03-08 00:04:27 UTC) #15
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/72b6d79734c7fd5925b6f862c588...

Powered by Google App Engine
This is Rietveld 408576698