|
|
More bookmark bar changes.
* Applied memory cleanliness fix in unit test; follow-up from
http://codereview.chromium.org/149308.
* Move bookmark bar into it's own nib; minor code refactor to
accomodate.
* The toolbar STAR button somehow lost it's action; added it back in.
* Implemented delete bookmark notification callback so we behave
(remove button from the screen) when a bookmark is deleted.
* Added context menus for the bookmark bar and bookmark buttons.
* Hooked up a handful of these menu items. E.g.
- open in new tab, window, incog window
- delete bookmark (finally)
- bookmark manager (which then hits a NOTIMPLEMENTED())
- always show bookmark bar
* Truncate bookmark button text on end, not on middle.
Experimental to look more like Windows.
It looks cleaner but is less Mac-like.
* Add "draws border when mouse goes over" for bookmark buttons. Need
to do it by hand since we have a custom button drawing method.
BUG=crbug.com/8381
TEST=Here's a list:
- Make sure the bookmark buttons don't have a border unless the mouse is over them
- Toolbar "STAR" should now add bookmarks when clicked
- Test context menus on bookmark buttons, and the bar itself
- Confirm a few of the behaviors as listed in the 'what I hooked up'; e.g.
Right click on bookmark --> delete menu item should delete button
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20591
Total comments: 10
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1285 lines, -142 lines) |
Patch |
 |
A |
chrome/app/nibs/en.lproj/BookmarkBar.xib
|
View
|
|
1 chunk |
+854 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/app/nibs/en.lproj/Toolbar.xib
|
View
|
1
2
3
|
10 chunks |
+6 lines, -31 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_bar_bridge.h
|
View
|
1
2
3
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_bar_bridge.mm
|
View
|
1
2
3
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_bar_bridge_unittest.mm
|
View
|
1
2
3
|
4 chunks |
+23 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_bar_controller.h
|
View
|
1
2
3
|
6 chunks |
+18 lines, -14 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_bar_controller.mm
|
View
|
1
2
3
|
15 chunks |
+96 lines, -55 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_bar_controller_unittest.mm
|
View
|
1
2
3
|
6 chunks |
+57 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_bar_view.h
|
View
|
1
2
3
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_bar_view.mm
|
View
|
1
2
3
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_bar_view_unittest.mm
|
View
|
1
2
3
|
1 chunk |
+54 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_button_cell.mm
|
View
|
1
2
3
|
2 chunks |
+26 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/bookmark_button_cell_unittest.mm
|
View
|
1
2
3
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/gradient_button_cell.h
|
View
|
1
2
3
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/gradient_button_cell.mm
|
View
|
1
2
3
|
3 chunks |
+55 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/gradient_button_cell_unittest.mm
|
View
|
1
2
3
|
1 chunk |
+21 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/tab_window_controller.mm
|
View
|
|
2 chunks |
+1 line, -5 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/toolbar_controller.h
|
View
|
1
2
3
|
2 chunks |
+0 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/toolbar_controller.mm
|
View
|
1
2
3
|
2 chunks |
+8 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/cocoa/toolbar_controller_unittest.mm
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/chrome.gyp
|
View
|
1
2
3
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 4 (0 generated)
|