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

Issue 5228004: Switch the about:gpu implementation from an about handler to dom_ui.... (Closed)

Created:
10 years, 1 month ago by nduca
Modified:
9 years, 4 months ago
CC:
chromium-reviews, ben+cc_chromium.org, pam+watch_chromium.org, apatrick_chromium, arv (Not doing code reviews), Paweł Hajdan Jr.
Visibility:
Public.

Description

Sitch the about:gpu implementation from an about handler to dom_ui. Generalize tabswitcherview slightly so it doesn't rely on div naming to obtain its styling. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69211

Patch Set 1 #

Total comments: 2

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 10

Patch Set 4 : '' #

Total comments: 30

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 27

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 56

Patch Set 9 : '' #

Total comments: 35

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 7

Patch Set 12 : '' #

Patch Set 13 : '' #

Total comments: 9

Patch Set 14 : '' #

Total comments: 11

Patch Set 15 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+821 lines, -166 lines) Patch
M chrome/browser/browser_about_handler.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +7 lines, -106 lines 0 comments Download
M chrome/browser/browser_about_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/dom_ui/dom_ui_factory.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/dom_ui/gpu_internals_ui.h View 1 2 3 4 5 10 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/browser/dom_ui/gpu_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +350 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/net_internals_ui.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +17 lines, -6 lines 0 comments Download
A chrome/browser/resources/gpu_internals.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/browser/resources/gpu_internals/browser_bridge.js View 1 2 3 4 5 6 7 8 10 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/resources/gpu_internals/info_view.css View 1 2 3 4 5 6 7 8 9 10 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/resources/gpu_internals/info_view.html View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/resources/gpu_internals/info_view.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +119 lines, -0 lines 0 comments Download
M chrome/browser/resources/net_internals/detailsview.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/net_internals/index.html View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/resources/net_internals/main.css View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -48 lines 0 comments Download
M chrome/browser/resources/net_internals/main.js View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -2 lines 0 comments Download
A chrome/browser/resources/net_internals/tabswitcherview.css View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/browser/resources/net_internals/tabswitcherview.js View 1 2 3 4 5 6 7 8 9 10 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/resources/net_internals/view.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
nduca
Eric, adding you to review because this code is c&p'd from net-internals. :)
10 years, 1 month ago (2010-11-19 01:22:07 UTC) #1
eroman
I haven't looked through this CL in depth yet, but my initial concern is seeing ...
10 years, 1 month ago (2010-11-19 18:28:19 UTC) #2
nduca
Anything is fine by me... I'm new to this tea party. :) On 2010/11/19 18:28:19, ...
10 years, 1 month ago (2010-11-19 18:50:39 UTC) #3
rpetterson
LGTM for the GPUInfo type stuff. http://codereview.chromium.org/5228004/diff/1/chrome/browser/dom_ui/gpu_ui.cc File chrome/browser/dom_ui/gpu_ui.cc (right): http://codereview.chromium.org/5228004/diff/1/chrome/browser/dom_ui/gpu_ui.cc#newcode175 chrome/browser/dom_ui/gpu_ui.cc:175: /* BrowserBridge.callAsync.prepends a ...
10 years, 1 month ago (2010-11-20 00:38:51 UTC) #4
nduca
Eric, Matt, still looking for guidance on whether to share code with netinternals. Is that ...
10 years, 1 month ago (2010-11-23 18:55:25 UTC) #5
mmenke
It's perfectly fine with me. I assumed this was being held up by Erik, not ...
10 years, 1 month ago (2010-11-23 19:01:21 UTC) #6
nduca
Thanks Matt. Erik? On 2010/11/23 19:01:21, Matt Menke wrote: > It's perfectly fine with me. ...
10 years, 1 month ago (2010-11-23 19:07:29 UTC) #7
mmenke
While I'm here anyways...Here are a couple minor style nits with your Javascript. Just to ...
10 years, 1 month ago (2010-11-23 19:27:12 UTC) #8
nduca
Thanks! http://codereview.chromium.org/5228004/diff/22002/chrome/browser/resources/gpu/infoview.js File chrome/browser/resources/gpu/infoview.js (right): http://codereview.chromium.org/5228004/diff/22002/chrome/browser/resources/gpu/infoview.js#newcode60 chrome/browser/resources/gpu/infoview.js:60: var subdicts = {} On 2010/11/23 19:27:13, Matt ...
10 years, 1 month ago (2010-11-23 19:39:01 UTC) #9
arv (Not doing code reviews)
Too many Erik/Erics... looking now. erik On Tue, Nov 23, 2010 at 11:39, <nduca@chromium.org> wrote: ...
10 years, 1 month ago (2010-11-24 18:48:31 UTC) #10
arv (Not doing code reviews)
The DOMUI JS is moving towards using cr.js which was designed for the bookmarks manager ...
10 years, 1 month ago (2010-11-24 19:07:36 UTC) #11
arv (Not doing code reviews)
My main concern is that we are doing the layout manually. This is code that ...
10 years, 1 month ago (2010-11-24 19:07:38 UTC) #12
nduca
I'm a bit confused how to proceed given the conflicting desires voiced by everyone to ...
10 years ago (2010-12-03 01:29:17 UTC) #13
arv (Not doing code reviews)
On Thu, Dec 2, 2010 at 17:29, <nduca@chromium.org> wrote: > I'm a bit confused how ...
10 years ago (2010-12-03 18:25:48 UTC) #14
nduca
Sounds like a plan to me, I'll go hack up the short term option. Maybe ...
10 years ago (2010-12-03 18:31:06 UTC) #15
nduca
http://codereview.chromium.org/5228004/diff/13002/chrome/browser/resources/gpu/index.html File chrome/browser/resources/gpu/index.html (right): http://codereview.chromium.org/5228004/diff/13002/chrome/browser/resources/gpu/index.html#newcode1 chrome/browser/resources/gpu/index.html:1: <html> On 2010/11/24 19:07:38, arv wrote: > missing doctype ...
10 years ago (2010-12-03 21:32:50 UTC) #16
arv (Not doing code reviews)
http://codereview.chromium.org/5228004/diff/61001/chrome/browser/resources/gpu_internals.html File chrome/browser/resources/gpu_internals.html (right): http://codereview.chromium.org/5228004/diff/61001/chrome/browser/resources/gpu_internals.html#newcode20 chrome/browser/resources/gpu_internals.html:20: var g_browser = null; var browser; http://codereview.chromium.org/5228004/diff/61001/chrome/browser/resources/gpu_internals.html#newcode59 chrome/browser/resources/gpu_internals.html:59: // ...
10 years ago (2010-12-03 22:19:19 UTC) #17
nduca
http://codereview.chromium.org/5228004/diff/61001/chrome/browser/resources/gpu_internals.html File chrome/browser/resources/gpu_internals.html (right): http://codereview.chromium.org/5228004/diff/61001/chrome/browser/resources/gpu_internals.html#newcode20 chrome/browser/resources/gpu_internals.html:20: var g_browser = null; On 2010/12/03 22:19:20, arv wrote: ...
10 years ago (2010-12-03 22:49:39 UTC) #18
arv (Not doing code reviews)
http://codereview.chromium.org/5228004/diff/61001/chrome/browser/resources/gpu_internals/browser_bridge.js File chrome/browser/resources/gpu_internals/browser_bridge.js (right): http://codereview.chromium.org/5228004/diff/61001/chrome/browser/resources/gpu_internals/browser_bridge.js#newcode15 chrome/browser/resources/gpu_internals/browser_bridge.js:15: var timeStampMs = (this.timeTickOffset_ - 0) + (timeTicks - ...
10 years ago (2010-12-06 19:45:56 UTC) #19
nduca
Thanks for all the comments, and for bearing with me as I get up to ...
10 years ago (2010-12-07 01:03:40 UTC) #20
arv (Not doing code reviews)
http://codereview.chromium.org/5228004/diff/82001/chrome/browser/dom_ui/gpu_internals_ui.cc File chrome/browser/dom_ui/gpu_internals_ui.cc (right): http://codereview.chromium.org/5228004/diff/82001/chrome/browser/dom_ui/gpu_internals_ui.cc#newcode184 chrome/browser/dom_ui/gpu_internals_ui.cc:184: if (submessage == "requestGpuInfo") { On 2010/12/07 01:03:40, nduca ...
10 years ago (2010-12-08 17:55:18 UTC) #21
nduca
http://codereview.chromium.org/5228004/diff/94001/chrome/browser/resources/gpu_internals.html File chrome/browser/resources/gpu_internals.html (right): http://codereview.chromium.org/5228004/diff/94001/chrome/browser/resources/gpu_internals.html#newcode13 chrome/browser/resources/gpu_internals.html:13: -webkit-box-sizing: border-box; On 2010/12/08 17:55:19, arv wrote: > box-sizing: ...
10 years ago (2010-12-08 19:08:21 UTC) #22
arv (Not doing code reviews)
I don't see things fixed that you replied done to. Did you forget to upload ...
10 years ago (2010-12-08 19:18:29 UTC) #23
nduca
I did indeed. One second... On 2010/12/08 19:18:29, arv wrote: > I don't see things ...
10 years ago (2010-12-08 19:19:09 UTC) #24
arv (Not doing code reviews)
http://codereview.chromium.org/5228004/diff/94001/chrome/browser/resources/gpu_internals/info_view.html File chrome/browser/resources/gpu_internals/info_view.html (right): http://codereview.chromium.org/5228004/diff/94001/chrome/browser/resources/gpu_internals/info_view.html#newcode20 chrome/browser/resources/gpu_internals/info_view.html:20: <td jsdisplay="!isArray(value)" jscontent="description + ':'" class="strong">title</td> On 2010/12/08 17:55:19, ...
10 years ago (2010-12-08 19:52:37 UTC) #25
nduca
Still reading your comments on rtl :) http://codereview.chromium.org/5228004/diff/94001/chrome/browser/resources/gpu_internals/info_view.html File chrome/browser/resources/gpu_internals/info_view.html (right): http://codereview.chromium.org/5228004/diff/94001/chrome/browser/resources/gpu_internals/info_view.html#newcode20 chrome/browser/resources/gpu_internals/info_view.html:20: <td jsdisplay="!isArray(value)" ...
10 years ago (2010-12-08 20:11:03 UTC) #26
nduca
Thanks for sorting me out on rtl, makes total sense now that I'm clued in. ...
10 years ago (2010-12-09 01:59:04 UTC) #27
eroman
http://codereview.chromium.org/5228004/diff/130002/chrome/browser/dom_ui/gpu_internals_ui.cc File chrome/browser/dom_ui/gpu_internals_ui.cc (right): http://codereview.chromium.org/5228004/diff/130002/chrome/browser/dom_ui/gpu_internals_ui.cc#newcode70 chrome/browser/dom_ui/gpu_internals_ui.cc:70: // TODO(eroman): Can we start on the IO thread ...
10 years ago (2010-12-09 02:46:44 UTC) #28
nduca
http://codereview.chromium.org/5228004/diff/130002/chrome/browser/dom_ui/gpu_internals_ui.cc File chrome/browser/dom_ui/gpu_internals_ui.cc (right): http://codereview.chromium.org/5228004/diff/130002/chrome/browser/dom_ui/gpu_internals_ui.cc#newcode70 chrome/browser/dom_ui/gpu_internals_ui.cc:70: // TODO(eroman): Can we start on the IO thread ...
10 years ago (2010-12-09 17:24:54 UTC) #29
eroman
http://codereview.chromium.org/5228004/diff/130002/chrome/browser/resources/gpu_internals.html File chrome/browser/resources/gpu_internals.html (right): http://codereview.chromium.org/5228004/diff/130002/chrome/browser/resources/gpu_internals.html#newcode21 chrome/browser/resources/gpu_internals.html:21: <script src="net_internals/util.js"></script> On 2010/12/09 17:24:54, nduca wrote: > Agreed. ...
10 years ago (2010-12-10 01:24:37 UTC) #30
nduca
Erik? Are we good? On 2010/12/10 01:24:37, eroman wrote: > http://codereview.chromium.org/5228004/diff/130002/chrome/browser/resources/gpu_internals.html > File chrome/browser/resources/gpu_internals.html (right): ...
10 years ago (2010-12-10 19:27:08 UTC) #31
arv (Not doing code reviews)
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/dom_ui/gpu_internals_ui.cc File chrome/browser/dom_ui/gpu_internals_ui.cc (right): http://codereview.chromium.org/5228004/diff/150001/chrome/browser/dom_ui/gpu_internals_ui.cc#newcode233 chrome/browser/dom_ui/gpu_internals_ui.cc:233: dict->SetString("description", EscapeForHTML(desc)); Are we double escaping this? http://codereview.chromium.org/5228004/diff/150001/chrome/browser/resources/gpu_internals.html File ...
10 years ago (2010-12-10 22:19:41 UTC) #32
nduca
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/dom_ui/gpu_internals_ui.cc File chrome/browser/dom_ui/gpu_internals_ui.cc (right): http://codereview.chromium.org/5228004/diff/150001/chrome/browser/dom_ui/gpu_internals_ui.cc#newcode233 chrome/browser/dom_ui/gpu_internals_ui.cc:233: dict->SetString("description", EscapeForHTML(desc)); Ah, good point. On 2010/12/10 22:19:42, arv ...
10 years ago (2010-12-11 00:16:45 UTC) #33
nduca
Any final issues? This review is going on 3 and a half weeks long. On ...
10 years ago (2010-12-14 00:36:28 UTC) #34
arv (Not doing code reviews)
10 years ago (2010-12-14 05:20:07 UTC) #35
Nope, LGTM
On Dec 13, 2010 4:36 PM, <nduca@chromium.org> wrote:
> Any final issues? This review is going on 3 and a half weeks long.
>
> On 2010/12/11 00:16:45, nduca wrote:
>
>
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/dom_ui/gpu_...
>> File chrome/browser/dom_ui/gpu_internals_ui.cc (right):
>
>
>
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/dom_ui/gpu_...
>> chrome/browser/dom_ui/gpu_internals_ui.cc:233:
>> dict->SetString("description",
>> EscapeForHTML(desc));
>> Ah, good point.
>
>> On 2010/12/10 22:19:42, arv wrote:
>> > Are we double escaping this?
>
>
>
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/resources/g...
>> File chrome/browser/resources/gpu_internals.html (right):
>
>
>
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/resources/g...
>> chrome/browser/resources/gpu_internals.html:2: <html>
>> On 2010/12/10 22:19:42, arv wrote:
>> > Did you intend to set dir here? If not, your RTL css rules have no
>> effect.
>> >
>> > <html i18n-values="dir:textdirection;">
>
>> Done.
>
>
>
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/resources/g...
>> File chrome/browser/resources/gpu_internals/info_view.html (right):
>
>
>
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/resources/g...
>> chrome/browser/resources/gpu_internals/info_view.html:27: <span
>> jscontent="description" class="row-title"></span>
>> On 2010/12/10 22:19:42, arv wrote:
>> > Yup, you are escaping this too much. Just remove all the escaping on
>> the C++
>> > side and use jscontent, textContent (in other words not innerHTML) and
>> you
> are
>> > good.
>
>> Done.
>
>
>
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/resources/n...
>> File chrome/browser/resources/net_internals/index.html (right):
>
>
>
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/resources/n...
>> chrome/browser/resources/net_internals/index.html:1: <html>
>> I'm less sure about this ... net_internals code doesn't include any of
the
>> jstemplate_buidler flow.
>
>> But, for consistency sake, I added this and things still behave
>> correctly. So,
> I
>> think we're good here.
>
>> On 2010/12/10 22:19:42, arv wrote:
>> > Set dir here as well?
>> >
>> > <html i18n-values="dir:textdirection;">
>
>
>
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/resources/n...
>> File chrome/browser/resources/net_internals/view.js (right):
>
>
>
http://codereview.chromium.org/5228004/diff/150001/chrome/browser/resources/n...
>> chrome/browser/resources/net_internals/view.js:83: if(!this.node_)
>> On 2010/12/10 22:19:42, arv wrote:
>> > ws
>
>> Done.
>
>
>
> http://codereview.chromium.org/5228004/

Powered by Google App Engine
This is Rietveld 408576698