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

Issue 1205753002: Create chrome://device-emulator and add the ability to get a battery percentage and send an updated… (Closed)

Created:
5 years, 6 months ago by rfrappier
Modified:
5 years, 5 months ago
Reviewers:
xiyuan, oshima, michaelpg
CC:
chromium-reviews, stevenjb+watch_chromium.org, arv+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Create chrome://device-emulator and add the ability to get a battery percentage and send an updated one to the WebUIController BUG=499097 R=oshima@chromium.org Committed: https://crrev.com/0a529c99776cf30c0223899cd65862fca6a09cce Cr-Commit-Position: refs/heads/master@{#336455}

Patch Set 1 #

Total comments: 44

Patch Set 2 : Create chrome://device-emulator and add the ability to get a battery percentage and send an updated… #

Total comments: 9

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Total comments: 11

Patch Set 5 : #

Total comments: 14

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+418 lines, -0 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/emulator/device_emulator.css View 1 2 3 4 5 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/emulator/device_emulator.html View 1 2 3 4 5 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/resources/chromeos/emulator/device_emulator.js View 1 2 3 4 5 1 chunk +122 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc View 1 2 3 4 1 chunk +59 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.h View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/chromeos/emulator/device_emulator_ui.cc View 1 2 3 4 5 1 chunk +53 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/url_constants.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/common/url_constants.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 47 (8 generated)
rfrappier
Ready for review
5 years, 6 months ago (2015-06-23 23:41:42 UTC) #1
oshima
please make sure all new files have copy right. michaelpg@, can you review webui part? ...
5 years, 6 months ago (2015-06-24 22:33:56 UTC) #3
michaelpg
On 2015/06/24 22:33:56, oshima wrote: > please make sure all new files have copy right. ...
5 years, 6 months ago (2015-06-24 22:46:12 UTC) #4
rfrappier
https://codereview.chromium.org/1205753002/diff/1/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc File chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc (right): https://codereview.chromium.org/1205753002/diff/1/chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc#newcode440 chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc:440: return &NewWebUI<chromeos::CryptohomeUI>; On 2015/06/24 22:33:55, oshima wrote: > Can ...
5 years, 6 months ago (2015-06-24 23:22:27 UTC) #5
michaelpg
https://codereview.chromium.org/1205753002/diff/1/chrome/browser/resources/chromeos/emulator/device_emulator.html File chrome/browser/resources/chromeos/emulator/device_emulator.html (right): https://codereview.chromium.org/1205753002/diff/1/chrome/browser/resources/chromeos/emulator/device_emulator.html#newcode5 chrome/browser/resources/chromeos/emulator/device_emulator.html:5: <!-- <title i18n-content="deviceEmulatorTitle"></title> --> Don't comment things out. Just ...
5 years, 6 months ago (2015-06-24 23:33:49 UTC) #6
rfrappier
https://codereview.chromium.org/1205753002/diff/1/chrome/browser/resources/chromeos/emulator/device_emulator.html File chrome/browser/resources/chromeos/emulator/device_emulator.html (right): https://codereview.chromium.org/1205753002/diff/1/chrome/browser/resources/chromeos/emulator/device_emulator.html#newcode5 chrome/browser/resources/chromeos/emulator/device_emulator.html:5: <!-- <title i18n-content="deviceEmulatorTitle"></title> --> On 2015/06/24 23:33:48, michaelpg wrote: ...
5 years, 6 months ago (2015-06-25 17:09:21 UTC) #7
oshima
Can you upload new patch? On 2015/06/25 17:09:21, rfrappier wrote: > https://codereview.chromium.org/1205753002/diff/1/chrome/browser/resources/chromeos/emulator/device_emulator.html > File chrome/browser/resources/chromeos/emulator/device_emulator.html ...
5 years, 6 months ago (2015-06-25 17:37:43 UTC) #8
rfrappier
Okay, but there's one of michaelpg@'s comments that I have yet to address.
5 years, 6 months ago (2015-06-25 17:51:59 UTC) #9
michaelpg
Looking good. I defer to oshima on the externs question. https://codereview.chromium.org/1205753002/diff/1/chrome/browser/resources/chromeos/emulator/device_emulator.js File chrome/browser/resources/chromeos/emulator/device_emulator.js (right): https://codereview.chromium.org/1205753002/diff/1/chrome/browser/resources/chromeos/emulator/device_emulator.js#newcode42 ...
5 years, 6 months ago (2015-06-25 18:18:19 UTC) #10
oshima
On 2015/06/25 17:51:59, rfrappier wrote: > Okay, but there's one of michaelpg@'s comments that I ...
5 years, 6 months ago (2015-06-25 19:40:03 UTC) #11
oshima
looks good. just a few more comments https://codereview.chromium.org/1205753002/diff/20001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/1205753002/diff/20001/chrome/browser/browser_resources.grd#newcode405 chrome/browser/browser_resources.grd:405: nit: remove ...
5 years, 6 months ago (2015-06-25 20:02:15 UTC) #12
rfrappier
https://codereview.chromium.org/1205753002/diff/20001/chrome/browser/resources/chromeos/emulator/device_emulator.js File chrome/browser/resources/chromeos/emulator/device_emulator.js (right): https://codereview.chromium.org/1205753002/diff/20001/chrome/browser/resources/chromeos/emulator/device_emulator.js#newcode9 chrome/browser/resources/chromeos/emulator/device_emulator.js:9: * Updates the UI with the battery status On ...
5 years, 6 months ago (2015-06-25 21:43:24 UTC) #13
rfrappier
https://codereview.chromium.org/1205753002/diff/20001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/1205753002/diff/20001/chrome/browser/browser_resources.grd#newcode405 chrome/browser/browser_resources.grd:405: On 2015/06/25 20:02:15, oshima wrote: > nit: remove empty ...
5 years, 6 months ago (2015-06-25 21:44:08 UTC) #14
oshima
On 2015/06/25 21:43:24, rfrappier wrote: > https://codereview.chromium.org/1205753002/diff/20001/chrome/browser/resources/chromeos/emulator/device_emulator.js > File chrome/browser/resources/chromeos/emulator/device_emulator.js (right): > > https://codereview.chromium.org/1205753002/diff/20001/chrome/browser/resources/chromeos/emulator/device_emulator.js#newcode9 > ...
5 years, 6 months ago (2015-06-25 21:58:00 UTC) #15
rfrappier
Just uploaded a new version. I added a couple UI elements to the webpage. There ...
5 years, 6 months ago (2015-06-25 23:31:07 UTC) #16
oshima
It's better to avoid adding more features during review process. Reviewers has to review new ...
5 years, 6 months ago (2015-06-25 23:52:26 UTC) #17
rfrappier
https://codereview.chromium.org/1205753002/diff/40001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h (right): https://codereview.chromium.org/1205753002/diff/40001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h#newcode24 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.h:24: }; On 2015/06/25 23:52:26, oshima wrote: > What is ...
5 years, 6 months ago (2015-06-26 15:52:08 UTC) #18
oshima
c++ lgtm if you addressed comments below. https://codereview.chromium.org/1205753002/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc (right): https://codereview.chromium.org/1205753002/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc#newcode7 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc:7: #include <stdlib.h> ...
5 years, 6 months ago (2015-06-26 16:22:08 UTC) #19
oshima
c++ lgtm if you addressed comments below. https://codereview.chromium.org/1205753002/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc (right): https://codereview.chromium.org/1205753002/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc#newcode7 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc:7: #include <stdlib.h> ...
5 years, 6 months ago (2015-06-26 16:22:08 UTC) #20
oshima
forgot to mention. please wait for michaelpg@'s approval for webui code.
5 years, 6 months ago (2015-06-26 16:23:06 UTC) #21
rfrappier
https://codereview.chromium.org/1205753002/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc (right): https://codereview.chromium.org/1205753002/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc#newcode7 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc:7: #include <stdlib.h> On 2015/06/26 16:22:07, oshima wrote: > you ...
5 years, 6 months ago (2015-06-26 16:33:08 UTC) #22
oshima
https://codereview.chromium.org/1205753002/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc (right): https://codereview.chromium.org/1205753002/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc#newcode7 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc:7: #include <stdlib.h> On 2015/06/26 16:33:08, rfrappier wrote: > On ...
5 years, 6 months ago (2015-06-26 17:19:49 UTC) #23
rfrappier
https://codereview.chromium.org/1205753002/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc File chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc (right): https://codereview.chromium.org/1205753002/diff/60001/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc#newcode7 chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc:7: #include <stdlib.h> On 2015/06/26 17:19:49, oshima wrote: > On ...
5 years, 6 months ago (2015-06-26 17:29:14 UTC) #24
michaelpg
I only looked at the html/js/css this time. You'll need to add an OWNER for ...
5 years, 6 months ago (2015-06-26 17:46:00 UTC) #25
oshima
On 2015/06/26 17:46:00, michaelpg wrote: > I only looked at the html/js/css this time. > ...
5 years, 6 months ago (2015-06-26 18:11:33 UTC) #26
michaelpg
On 2015/06/26 18:11:33, oshima wrote: > On 2015/06/26 17:46:00, michaelpg wrote: > > I only ...
5 years, 6 months ago (2015-06-26 18:15:54 UTC) #27
michaelpg
On 2015/06/26 18:15:54, michaelpg wrote: > On 2015/06/26 18:11:33, oshima wrote: > > On 2015/06/26 ...
5 years, 6 months ago (2015-06-26 18:16:56 UTC) #28
oshima
On Fri, Jun 26, 2015 at 11:16 AM, <michaelpg@chromium.org> wrote: > On 2015/06/26 18:15:54, michaelpg ...
5 years, 6 months ago (2015-06-26 18:40:58 UTC) #29
chromium-reviews
Just did! On Fri, Jun 26, 2015 at 11:40 AM, oshima <oshima@chromium.org> wrote: > > ...
5 years, 6 months ago (2015-06-26 18:52:15 UTC) #30
rfrappier
https://codereview.chromium.org/1205753002/diff/80001/chrome/browser/resources/chromeos/emulator/device_emulator.css File chrome/browser/resources/chromeos/emulator/device_emulator.css (right): https://codereview.chromium.org/1205753002/diff/80001/chrome/browser/resources/chromeos/emulator/device_emulator.css#newcode24 chrome/browser/resources/chromeos/emulator/device_emulator.css:24: float: left; On 2015/06/26 17:45:59, michaelpg wrote: > redundant ...
5 years, 6 months ago (2015-06-26 18:58:03 UTC) #31
michaelpg
Cool, lgtm! Looking forward to being able to use this. I just added myself as ...
5 years, 6 months ago (2015-06-26 19:10:18 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1205753002/100001
5 years, 6 months ago (2015-06-26 19:12:43 UTC) #35
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/74437)
5 years, 6 months ago (2015-06-26 19:20:41 UTC) #37
rfrappier
5 years, 6 months ago (2015-06-26 20:14:23 UTC) #39
rfrappier
xiyuan@, I have a couple files that need to be reviewed by you before I ...
5 years, 6 months ago (2015-06-26 20:16:40 UTC) #40
xiyuan
lgtm
5 years, 6 months ago (2015-06-26 20:28:58 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1205753002/100001
5 years, 6 months ago (2015-06-26 20:33:57 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 6 months ago (2015-06-26 21:14:39 UTC) #44
commit-bot: I haz the power
5 years, 5 months ago (2015-06-26 21:15:36 UTC) #45
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/0a529c99776cf30c0223899cd65862fca6a09cce
Cr-Commit-Position: refs/heads/master@{#336455}

Powered by Google App Engine
This is Rietveld 408576698