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

Side by Side Diff: chrome/browser/resources/options/personal_options_profile_list.js

Issue 8273026: [Multi Profile] Double-clicking an item in the user list should edit that profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add dblclick to list, remove from autofill Created 9 years, 2 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 cr.define('options.personal_options', function() { 5 cr.define('options.personal_options', function() {
6 const DeletableItem = options.DeletableItem; 6 const DeletableItem = options.DeletableItem;
7 const DeletableItemList = options.DeletableItemList; 7 const DeletableItemList = options.DeletableItemList;
8 const ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; 8 const ListSingleSelectionModel = cr.ui.ListSingleSelectionModel;
9 9
10 var localStrings = new LocalStrings(); 10 var localStrings = new LocalStrings();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 /** @inheritDoc */ 76 /** @inheritDoc */
77 createItem: function(pageInfo) { 77 createItem: function(pageInfo) {
78 var item = new ProfileListItem(pageInfo); 78 var item = new ProfileListItem(pageInfo);
79 return item; 79 return item;
80 }, 80 },
81 81
82 /** @inheritDoc */ 82 /** @inheritDoc */
83 deleteItemAtIndex: function(index) { 83 deleteItemAtIndex: function(index) {
84 ManageProfileOverlay.showDeleteDialog(this.dataModel.item(index)); 84 ManageProfileOverlay.showDeleteDialog(this.dataModel.item(index));
85 }, 85 },
86
87 /** @inheritDoc */
88 activateItemAtIndex: function(index) {
89 ManageProfileOverlay.showManageDialog(this.dataModel.item(index));
90 },
86 }; 91 };
87 92
88 return { 93 return {
89 ProfileList: ProfileList 94 ProfileList: ProfileList
90 }; 95 };
91 }); 96 });
92 97
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/autofill_options_list.js ('k') | chrome/browser/resources/shared/js/cr/ui/list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698