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

Unified Diff: chrome/browser/resources/bluetooth_internals/sidebar.js

Issue 2568283003: bluetooth: Add notification system to internals page. (Closed)
Patch Set: Remove margin, fix bug where snackbar dismisses if shown with no focus Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/bluetooth_internals/sidebar.js
diff --git a/chrome/browser/resources/bluetooth_internals/sidebar.js b/chrome/browser/resources/bluetooth_internals/sidebar.js
index 81fcb2ee368ca53f90d27d460c80b8a544f59671..f060e713979238a4cd899271606dd828771254f6 100644
--- a/chrome/browser/resources/bluetooth_internals/sidebar.js
+++ b/chrome/browser/resources/bluetooth_internals/sidebar.js
@@ -45,6 +45,7 @@ cr.define('sidebar', function() {
close: function() {
this.sidebarDiv_.classList.remove('open');
document.body.style.overflow = '';
+ document.dispatchEvent(new CustomEvent('contentfocus'));
},
/**
@@ -53,6 +54,7 @@ cr.define('sidebar', function() {
open: function() {
document.body.style.overflow = 'hidden';
this.sidebarDiv_.classList.add('open');
+ document.dispatchEvent(new CustomEvent('contentblur'));
},
/**
« no previous file with comments | « chrome/browser/resources/bluetooth_internals/device_table.js ('k') | chrome/browser/resources/bluetooth_internals/snackbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698