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

Issue 84643002: Update the metrics side bar pane and computed style pane after main frame resize. (Closed)

Created:
7 years ago by vivekg_samsung
Modified:
7 years ago
Reviewers:
vivekg, apavlov, vsevik, pfeldman
CC:
blink-reviews, caseq+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+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, aandrey+blink_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Update the metrics side bar pane and computed style pane after main frame resize. The metrics pane showing width and height of the main frame should be updated upon receiving the resize event. This also applies while docking/undocking the DevTools window. BUG=322997 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=163004

Patch Set 1 #

Total comments: 1

Patch Set 2 : Patch after review comments. #

Total comments: 1

Patch Set 3 : Throttling the pane updates! #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -0 lines) Patch
M Source/core/inspector/InspectorPageAgent.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M Source/devtools/front_end/MetricsSidebarPane.js View 1 2 2 chunks +15 lines, -0 lines 0 comments Download
M Source/devtools/front_end/ResourceTreeModel.js View 1 2 chunks +6 lines, -0 lines 0 comments Download
M Source/devtools/front_end/StylesSidebarPane.js View 1 2 2 chunks +15 lines, -0 lines 1 comment Download
M Source/devtools/protocol.json View 1 2 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
vivekg
Please review the changes and let me know your feedback. Thanks!
7 years ago (2013-11-24 10:26:17 UTC) #1
vivekg
Should we also add inspector layout test for this one, as well as a protocol ...
7 years ago (2013-11-24 10:30:04 UTC) #2
pfeldman
https://codereview.chromium.org/84643002/diff/1/Source/devtools/front_end/MetricsSidebarPane.js File Source/devtools/front_end/MetricsSidebarPane.js (right): https://codereview.chromium.org/84643002/diff/1/Source/devtools/front_end/MetricsSidebarPane.js#newcode94 Source/devtools/front_end/MetricsSidebarPane.js:94: this._innerUpdate(); We probably want to throttle this.
7 years ago (2013-11-26 16:26:01 UTC) #3
vivekg
On 2013/11/26 16:26:01, pfeldman wrote: > https://codereview.chromium.org/84643002/diff/1/Source/devtools/front_end/MetricsSidebarPane.js > File Source/devtools/front_end/MetricsSidebarPane.js (right): > > https://codereview.chromium.org/84643002/diff/1/Source/devtools/front_end/MetricsSidebarPane.js#newcode94 > ...
7 years ago (2013-11-26 16:32:55 UTC) #4
pfeldman
> Any ideas about how to throttle it? Are you suggesting of partial updates of ...
7 years ago (2013-11-26 16:36:07 UTC) #5
vivekg
> > I was more thinking about setTimeout-kind of throttling. Oh I see! Sounds good ...
7 years ago (2013-11-26 16:40:13 UTC) #6
vivekg
Updated the patch, please take a look. Thanks!
7 years ago (2013-11-27 04:07:28 UTC) #7
pfeldman
https://codereview.chromium.org/84643002/diff/60001/Source/devtools/front_end/MetricsSidebarPane.js File Source/devtools/front_end/MetricsSidebarPane.js (right): https://codereview.chromium.org/84643002/diff/60001/Source/devtools/front_end/MetricsSidebarPane.js#newcode98 Source/devtools/front_end/MetricsSidebarPane.js:98: setTimeout(refreshContents.bind(this), 0); This will not throttle anything - it ...
7 years ago (2013-11-28 15:25:35 UTC) #8
vivekg
On 2013/11/28 15:25:35, pfeldman wrote: > https://codereview.chromium.org/84643002/diff/60001/Source/devtools/front_end/MetricsSidebarPane.js > File Source/devtools/front_end/MetricsSidebarPane.js (right): > > https://codereview.chromium.org/84643002/diff/60001/Source/devtools/front_end/MetricsSidebarPane.js#newcode98 > ...
7 years ago (2013-11-28 19:34:29 UTC) #9
vivekg
Friendly ping. :)
7 years ago (2013-12-02 06:53:13 UTC) #10
pfeldman
https://codereview.chromium.org/84643002/diff/80001/Source/devtools/front_end/StylesSidebarPane.js File Source/devtools/front_end/StylesSidebarPane.js (right): https://codereview.chromium.org/84643002/diff/80001/Source/devtools/front_end/StylesSidebarPane.js#newcode413 Source/devtools/front_end/StylesSidebarPane.js:413: this._activeTimer = setTimeout(refreshContents.bind(this), 100); I'd rather throttle it once ...
7 years ago (2013-12-02 12:28:25 UTC) #11
pfeldman
On 2013/12/02 12:28:25, pfeldman wrote: > https://codereview.chromium.org/84643002/diff/80001/Source/devtools/front_end/StylesSidebarPane.js > File Source/devtools/front_end/StylesSidebarPane.js (right): > > https://codereview.chromium.org/84643002/diff/80001/Source/devtools/front_end/StylesSidebarPane.js#newcode413 > ...
7 years ago (2013-12-02 12:28:58 UTC) #12
vivekg
On 2013/12/02 12:28:25, pfeldman wrote: > https://codereview.chromium.org/84643002/diff/80001/Source/devtools/front_end/StylesSidebarPane.js > File Source/devtools/front_end/StylesSidebarPane.js (right): > > https://codereview.chromium.org/84643002/diff/80001/Source/devtools/front_end/StylesSidebarPane.js#newcode413 > ...
7 years ago (2013-12-02 14:01:54 UTC) #13
vivekg
On 2013/12/02 12:28:58, pfeldman wrote: > On 2013/12/02 12:28:25, pfeldman wrote: > On a second ...
7 years ago (2013-12-02 14:25:26 UTC) #14
pfeldman
go ahead
7 years ago (2013-12-02 15:47:16 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vivek.vg@samsung.com/84643002/80001
7 years ago (2013-12-02 16:36:17 UTC) #16
commit-bot: I haz the power
7 years ago (2013-12-02 17:40:04 UTC) #17
Message was sent while issue was closed.
Change committed as 163004

Powered by Google App Engine
This is Rietveld 408576698