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

Issue 123713002: [chromeos] Add an about:power UI. (Closed)

Created:
6 years, 11 months ago by Siva Chandra
Modified:
6 years, 11 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org, Sameer Nanda, Ami GONE FROM CHROMIUM
Visibility:
Public.

Description

[chromeos] Add an about:power UI. This UI currently only displays battery charge percentage over time. Later iterations will add more plots. BUG=312956 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243716

Patch Set 1 #

Total comments: 30

Patch Set 2 : Address comments #

Patch Set 3 : Temporary upload #

Patch Set 4 : Address comments #

Total comments: 54

Patch Set 5 : Address comments #

Total comments: 22

Patch Set 6 : Address comments, fix boundary conditions #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+486 lines, -0 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/power.css View 1 2 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/power.html View 1 2 3 4 5 1 chunk +28 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/power.js View 1 2 3 4 5 6 1 chunk +268 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 2 chunks +3 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/power_ui.h View 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/power_ui.cc View 1 2 3 4 5 1 chunk +106 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Siva Chandra
6 years, 11 months ago (2014-01-03 01:57:39 UTC) #1
Daniel Erat
https://chromiumcodereview.appspot.com/123713002/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/123713002/diff/1/chrome/app/generated_resources.grd#newcode15358 chrome/app/generated_resources.grd:15358: + <message name="IDS_POWER_TITLE" desc="Title of the page"> please give ...
6 years, 11 months ago (2014-01-03 16:40:47 UTC) #2
Siva Chandra
Responded to all comments. Also fixed how time is calculated on the javascript side. https://chromiumcodereview.appspot.com/123713002/diff/1/chrome/app/generated_resources.grd ...
6 years, 11 months ago (2014-01-03 23:34:58 UTC) #3
Daniel Erat
(haven't looked at the new version yet; just some replies to the previous comment) also, ...
6 years, 11 months ago (2014-01-04 00:02:16 UTC) #4
Siva Chandra
I will address the comments soon. I have a point for one comment below. On ...
6 years, 11 months ago (2014-01-04 00:29:04 UTC) #5
Daniel Erat
On 2014/01/04 00:29:04, Siva Chandra wrote: > I will address the comments soon. I have ...
6 years, 11 months ago (2014-01-04 00:33:56 UTC) #6
Siva Chandra
PTaL at the latest patch set. Addressed all comments. Screenshot: http://tinypic.com/r/fawm1/5 https://chromiumcodereview.appspot.com/123713002/diff/1/chrome/browser/resources/chromeos/power.js File chrome/browser/resources/chromeos/power.js (right): ...
6 years, 11 months ago (2014-01-06 22:36:57 UTC) #7
Siva Chandra
Forgot to mention, the latest patch set adds a mouse feature. If a user hovers ...
6 years, 11 months ago (2014-01-06 22:40:03 UTC) #8
Siva Chandra
+cc fischman@
6 years, 11 months ago (2014-01-06 22:41:55 UTC) #9
Daniel Erat
(Adding Erik as a reviewer for the JS code.) https://chromiumcodereview.appspot.com/123713002/diff/270001/chrome/browser/resources/chromeos/power.html File chrome/browser/resources/chromeos/power.html (right): https://chromiumcodereview.appspot.com/123713002/diff/270001/chrome/browser/resources/chromeos/power.html#newcode11 chrome/browser/resources/chromeos/power.html:11: ...
6 years, 11 months ago (2014-01-06 23:02:40 UTC) #10
arv (Not doing code reviews)
https://codereview.chromium.org/123713002/diff/270001/chrome/browser/resources/chromeos/power.css File chrome/browser/resources/chromeos/power.css (right): https://codereview.chromium.org/123713002/diff/270001/chrome/browser/resources/chromeos/power.css#newcode20 chrome/browser/resources/chromeos/power.css:20: div.plot-canvas-div { No need for the tag name here ...
6 years, 11 months ago (2014-01-06 23:29:56 UTC) #11
Siva Chandra
PTaL at patch set 5. I have posted few questions against arv's comments. https://chromiumcodereview.appspot.com/123713002/diff/270001/chrome/browser/resources/chromeos/power.html File ...
6 years, 11 months ago (2014-01-07 01:19:19 UTC) #12
arv (Not doing code reviews)
https://chromiumcodereview.appspot.com/123713002/diff/270001/chrome/browser/resources/chromeos/power.js File chrome/browser/resources/chromeos/power.js (right): https://chromiumcodereview.appspot.com/123713002/diff/270001/chrome/browser/resources/chromeos/power.js#newcode55 chrome/browser/resources/chromeos/power.js:55: function valueToString(value) { On 2014/01/07 01:19:19, Siva Chandra wrote: ...
6 years, 11 months ago (2014-01-07 15:23:53 UTC) #13
Daniel Erat
https://chromiumcodereview.appspot.com/123713002/diff/380001/chrome/browser/resources/chromeos/power.js File chrome/browser/resources/chromeos/power.js (right): https://chromiumcodereview.appspot.com/123713002/diff/380001/chrome/browser/resources/chromeos/power.js#newcode112 chrome/browser/resources/chromeos/power.js:112: var yhalfStr = valueToString((yMax + yMin) / 2); nit: ...
6 years, 11 months ago (2014-01-07 16:31:58 UTC) #14
Siva Chandra
PTaL at patch set 6. Addressed all comments. I tested it on a dev device ...
6 years, 11 months ago (2014-01-07 22:05:16 UTC) #15
Daniel Erat
Thanks! LGTM if arv@ is happy with it too.
6 years, 11 months ago (2014-01-07 23:20:08 UTC) #16
arv (Not doing code reviews)
LGTM
6 years, 11 months ago (2014-01-08 16:13:57 UTC) #17
sky
*.grd LGTM
6 years, 11 months ago (2014-01-08 21:48:52 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sivachandra@chromium.org/123713002/520001
6 years, 11 months ago (2014-01-08 21:58:38 UTC) #19
commit-bot: I haz the power
6 years, 11 months ago (2014-01-09 00:57:42 UTC) #20
Message was sent while issue was closed.
Change committed as 243716

Powered by Google App Engine
This is Rietveld 408576698