diff options
author | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-12 01:27:24 +0000 |
---|---|---|
committer | jhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-12 01:27:24 +0000 |
commit | 1406446e7f513a8d07c49d56ba84bd7bf16e0e04 (patch) | |
tree | b9fb17310d196e9a78dd885b41b7ea39c2cc05fa /chrome/browser/resources/shared | |
parent | 1c9810ba038daabed9fbbd4bc8c61ef4e32e8a71 (diff) | |
download | chromium_src-1406446e7f513a8d07c49d56ba84bd7bf16e0e04.zip chromium_src-1406446e7f513a8d07c49d56ba84bd7bf16e0e04.tar.gz chromium_src-1406446e7f513a8d07c49d56ba84bd7bf16e0e04.tar.bz2 |
DOMUI: Stub out List.activateItemAtIndex for lists that don't implement this
method.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6203004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71128 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources/shared')
-rw-r--r-- | chrome/browser/resources/shared/js/cr/ui/list.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/browser/resources/shared/js/cr/ui/list.js b/chrome/browser/resources/shared/js/cr/ui/list.js index 6fbe1cc..ba1da00 100644 --- a/chrome/browser/resources/shared/js/cr/ui/list.js +++ b/chrome/browser/resources/shared/js/cr/ui/list.js @@ -608,6 +608,14 @@ cr.define('cr.ui', function() { this.redraw(); } }, + + /** + * Called when a list item is activated, currently only by a double click + * event. + * @param {number} index The index of the activated item. + */ + activateItemAtIndex: function(index) { + }, }; cr.defineProperty(List, 'disabled', cr.PropertyKind.BOOL_ATTR); |