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

Issue 2568283003: bluetooth: Add notification system to internals page. (Closed)

Created:
4 years ago by mbrunson
Modified:
4 years ago
Reviewers:
scheib, Dan Beam
CC:
chromium-reviews, arv+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

bluetooth: Add notification system to internals page. Adds notification system to internals page using a snackbar UI element. The snackbar system can be invoked from any page using Snackbar.show and Snackbar.dismiss and come in a variety of styles (info, success, warning, and danger) depending on the need of the caller. Multiple snackbar requests can be queued and are shown one at a time. Removes connection error column from DeviceTable. Error and success messages are now shown in a snackbar displayed from bluetooth_internals.js. Screenshots: https://goo.gl/photos/p7fb2QH3e7UpcZA47 GIFs: https://goo.gl/photos/9PWexXFZ6prr4uVq5 BUG=663830 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/22fa9c78d47051c4da59d68e38b2e6bd9b76f880 Cr-Commit-Position: refs/heads/master@{#439963}

Patch Set 1 #

Patch Set 2 : Fix up snackbar, add tests #

Patch Set 3 : Add basic test #

Patch Set 4 : Update comments #

Patch Set 5 : Fix snackbar bug with contentfocus/contentblur #

Total comments: 6

Patch Set 6 : Change handleInspect, danger->error, fix text color #

Total comments: 22

Patch Set 7 : CSS/Snackbar/test changes #

Total comments: 17

Patch Set 8 : Fix JSDoc, remove window from tests, change snackbar margin #

Patch Set 9 : Remove margin, fix bug where snackbar dismisses if shown with no focus #

Messages

Total messages: 42 (29 generated)
mbrunson
4 years ago (2016-12-14 04:16:08 UTC) #16
scheib
LGTM, small notes below. Things I can't answer: - details of CSS in particular - ...
4 years ago (2016-12-14 06:06:43 UTC) #17
mbrunson
https://codereview.chromium.org/2568283003/diff/80001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js File chrome/browser/resources/bluetooth_internals/bluetooth_internals.js (right): https://codereview.chromium.org/2568283003/diff/80001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.js#newcode126 chrome/browser/resources/bluetooth_internals/bluetooth_internals.js:126: devicesPage.pageDiv.addEventListener('inspectpressed', function(event) { On 2016/12/14 06:06:43, scheib wrote: > ...
4 years ago (2016-12-14 22:44:48 UTC) #18
mbrunson
4 years ago (2016-12-14 22:47:54 UTC) #22
Dan Beam
https://codereview.chromium.org/2568283003/diff/100001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css File chrome/browser/resources/bluetooth_internals/bluetooth_internals.css (right): https://codereview.chromium.org/2568283003/diff/100001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css#newcode210 chrome/browser/resources/bluetooth_internals/bluetooth_internals.css:210: /** Snackbar */ nit: /** is for jsdoc /* ...
4 years ago (2016-12-16 08:42:58 UTC) #25
mbrunson
https://codereview.chromium.org/2568283003/diff/100001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css File chrome/browser/resources/bluetooth_internals/bluetooth_internals.css (right): https://codereview.chromium.org/2568283003/diff/100001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css#newcode210 chrome/browser/resources/bluetooth_internals/bluetooth_internals.css:210: /** Snackbar */ On 2016/12/16 08:42:58, Dan Beam wrote: ...
4 years ago (2016-12-16 21:42:30 UTC) #26
Dan Beam
https://codereview.chromium.org/2568283003/diff/120001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css File chrome/browser/resources/bluetooth_internals/bluetooth_internals.css (right): https://codereview.chromium.org/2568283003/diff/120001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css#newcode215 chrome/browser/resources/bluetooth_internals/bluetooth_internals.css:215: color: #F1F1F1; nit: html/css style guide generally prefers lower-case ...
4 years ago (2016-12-16 21:54:41 UTC) #27
Dan Beam
this is looking pretty sweet, btw :)
4 years ago (2016-12-16 21:54:50 UTC) #28
mbrunson
https://codereview.chromium.org/2568283003/diff/120001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css File chrome/browser/resources/bluetooth_internals/bluetooth_internals.css (right): https://codereview.chromium.org/2568283003/diff/120001/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css#newcode215 chrome/browser/resources/bluetooth_internals/bluetooth_internals.css:215: color: #F1F1F1; On 2016/12/16 21:54:40, Dan Beam wrote: > ...
4 years ago (2016-12-17 02:21:59 UTC) #29
Dan Beam
fwiw: I'm not sure I understood the difference between tiara and snackbars. maybe this shouldn't ...
4 years ago (2016-12-20 06:04:31 UTC) #30
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/2568283003/160001
4 years ago (2016-12-21 01:16:18 UTC) #37
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years ago (2016-12-21 01:23:08 UTC) #40
commit-bot: I haz the power
4 years ago (2016-12-21 01:25:11 UTC) #42
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/22fa9c78d47051c4da59d68e38b2e6bd9b76f880
Cr-Commit-Position: refs/heads/master@{#439963}

Powered by Google App Engine
This is Rietveld 408576698