summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/shared
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-06 21:15:50 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-06 21:15:50 +0000
commitf24f483ad3acf1203a1a07b188b279322cb2e561 (patch)
treeebd897c112f5e60f9d184b866cb81d06d6e88809 /chrome/browser/resources/shared
parent9bb336f50165f6935209d91163a05f50e5ec3d1f (diff)
downloadchromium_src-f24f483ad3acf1203a1a07b188b279322cb2e561.zip
chromium_src-f24f483ad3acf1203a1a07b188b279322cb2e561.tar.gz
chromium_src-f24f483ad3acf1203a1a07b188b279322cb2e561.tar.bz2
DOMUI: Make Autofill profile lists multi-select and implementing deleting
multiple list items. BUG=66956 TEST=none Review URL: http://codereview.chromium.org/6029013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70644 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/shared')
-rw-r--r--chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js b/chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js
index 72aada6..fa1f3c2 100644
--- a/chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js
+++ b/chrome/browser/resources/shared/js/cr/ui/list_selection_controller.js
@@ -141,13 +141,13 @@ cr.define('cr.ui', function() {
(e.ctrlKey && !e.shiftKey))) {
// Selection is handled at mouseUp on windows/linux, mouseDown on mac.
if (cr.isMac? isDown : !isDown) {
- // toggle the current one and make it anchor index
+ // Toggle the current one and make it anchor index.
sm.setIndexSelected(index, !sm.getIndexSelected(index));
sm.leadIndex = index;
sm.anchorIndex = index;
}
} else if (e.shiftKey && anchorIndex != -1 && anchorIndex != index) {
- // Shift is done in mousedown
+ // Shift is done in mousedown.
if (isDown) {
sm.unselectAll();
sm.leadIndex = index;
@@ -157,7 +157,7 @@ cr.define('cr.ui', function() {
sm.setIndexSelected(index, true);
}
} else {
- // Right click for a context menu need to not clear the selection.
+ // Right click for a context menu needs to not clear the selection.
var isRightClick = e.button == 2;
// If the index is selected this is handled in mouseup.
@@ -176,7 +176,7 @@ cr.define('cr.ui', function() {
},
/**
- * Called by the view when it recieves a keydown event.
+ * Called by the view when it receives a keydown event.
* @param {Event} e The keydown event.
*/
handleKeyDown: function(e) {
@@ -246,7 +246,7 @@ cr.define('cr.ui', function() {
sm.selectRange(anchorIndex, newIndex);
}
} else if (e.ctrlKey && !cr.isMac) {
- // Setting the lead index is done above
+ // Setting the lead index is done above.
// Mac does not allow you to change the lead.
} else {
if (sm.multiple)