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

Unified Diff: chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js

Issue 2684793004: [Harmony] Harmonize Bluetooth dialogs. (Closed)
Patch Set: Address jamescook@'s comments. Created 3 years, 10 months 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
« no previous file with comments | « chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
diff --git a/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js b/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
index b3ece1c910739e416428ba8c74b95f1ac71ce10c..bf55801940fe76bbc10c84932bd435f2ee8c4add 100644
--- a/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
+++ b/chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.js
@@ -180,6 +180,8 @@ cr.define('options', function() {
this.keyDownEventHandler_.bind(this));
$('bluetooth-pincode').addEventListener('keydown',
this.keyDownEventHandler_.bind(this));
+ $('bluetooth-pairing-close-button').addEventListener('click',
+ this.onClose_.bind(this));
},
/** @override */
@@ -336,6 +338,16 @@ cr.define('options', function() {
},
/**
+ * Handles the click event on the close button.
+ * @param {Event} event A click down event.
+ * @private
+ */
+ onClose_: function(event) {
+ event.preventDefault();
+ chrome.send('dialogClose');
+ },
+
+ /**
* Updates the visibility of elements in the dialog.
* @param {Array<string>} list List of conditionally visible elements that
* are to be made visible.
« no previous file with comments | « chrome/browser/resources/options/chromeos/bluetooth_pair_device_overlay.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698