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

Issue 357005: Implement Bookmark All Tabs... using the BookmarkEditorController and determi... (Closed)

Created:
11 years, 1 month ago by mrossetti
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Implement Bookmark All Tabs... Added an abstraction of BookmarkEditorController called BookmarkEditorBaseController, from which BookmarkEditorController and the new BookmarkAllTabsController derive. The bookmark/folder name, URL and OK button now use bindings/KVO. Added BookmarkAllTabs.xib which is nearly identical to BookmarkEditor.xib. Changed unit test since an empty bookmark name is now acceptable. Added unit test for the Bookmark All Tabs... BookmarkEditor.xib changes: Removed the bookmark name and url as outlets and instead bound their values to controller's displayName and displayURL respectively. Bound the OK button enabling to the controller's okEnabled. BUG=25099 TEST=Open two or more tabs. Bring up a contextual menu by control-clicking on one of the tabs. Choose the Bookmark All Tabs... menu item. A dialog will be presented in which you can type a folder name and select the parent folder in which the new folder will be placed. By default, the most recently touched folder will be selected as the parent. Click OK. Now check to parent folder to see that the newly created folder has been added and then check within that folder to see that the open tabs have been added. Perform the above operation again only this time choose the Bookmark All Tabs... menu item found in the Bookmarks menu. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=31200

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 25

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 26

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1784 lines, -452 lines) Patch
A chrome/app/nibs/BookmarkAllTabs.xib View 1 2 3 1 chunk +802 lines, -0 lines 0 comments Download
M chrome/app/nibs/BookmarkEditor.xib View 1 2 3 4 5 5 chunks +63 lines, -24 lines 0 comments Download
A chrome/browser/cocoa/bookmark_all_tabs_controller.h View 5 1 chunk +44 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/bookmark_all_tabs_controller.mm View 5 1 chunk +90 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/bookmark_all_tabs_controller_unittest.mm View 5 1 chunk +81 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/bookmark_editor_base_controller.h View 5 1 chunk +97 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/bookmark_editor_base_controller.mm View 5 1 chunk +398 lines, -0 lines 0 comments Download
A chrome/browser/cocoa/bookmark_editor_base_controller_unittest.mm View 1 chunk +149 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/bookmark_editor_controller.h View 1 2 3 4 5 2 chunks +5 lines, -40 lines 0 comments Download
M chrome/browser/cocoa/bookmark_editor_controller.mm View 1 2 3 4 5 3 chunks +45 lines, -385 lines 0 comments Download
M chrome/browser/cocoa/bookmark_editor_controller_unittest.mm View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/chrome.gyp View 5 6 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
mrossetti
11 years, 1 month ago (2009-11-04 04:17:51 UTC) #1
pink (ping after 24hrs)
Was there a reason why you needed to create nearly identical nibs? Was there nothing ...
11 years, 1 month ago (2009-11-04 14:24:16 UTC) #2
pink (ping after 24hrs)
Sigh, it submitted before I was ready. http://codereview.chromium.org/357005/diff/2001/3005 File chrome/browser/cocoa/bookmark_editor_controller.mm (right): http://codereview.chromium.org/357005/diff/2001/3005#newcode376 Line 376: Browser* ...
11 years, 1 month ago (2009-11-04 14:26:39 UTC) #3
John Grabowski
http://codereview.chromium.org/357005/diff/2001/3006 File chrome/browser/cocoa/bookmark_editor_controller.h (right): http://codereview.chromium.org/357005/diff/2001/3006#newcode43 Line 43: IBOutlet NSButton* okButton_; place with other IBOutlets http://codereview.chromium.org/357005/diff/2001/3005 ...
11 years, 1 month ago (2009-11-04 18:22:10 UTC) #4
mrossetti
All issues addressed. Added an abstraction of the BookmarkEditorController and a new controller based on ...
11 years, 1 month ago (2009-11-05 18:14:55 UTC) #5
mrossetti
Uploaded missing files.
11 years, 1 month ago (2009-11-05 20:04:22 UTC) #6
John Grabowski
Almost there. Please add some more simple unit tests, merge in dmac's CL, and I'll ...
11 years, 1 month ago (2009-11-05 21:11:03 UTC) #7
mrossetti
Merged with latest from dmaclach. http://codereview.chromium.org/357005/diff/4008/8009 File chrome/browser/cocoa/bookmark_all_tabs_controller.h (right): http://codereview.chromium.org/357005/diff/4008/8009#newcode13 Line 13: typedef std::vector<ActiveTabNameURLPair> ActiveTabsNameURLPairList; ...
11 years, 1 month ago (2009-11-06 01:58:57 UTC) #8
John Grabowski
11 years, 1 month ago (2009-11-06 02:06:19 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698