| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import "chrome/browser/cocoa/bookmark_menu.h" |
| 6 |
| 7 |
| 8 @implementation BookmarkMenu |
| 9 |
| 10 @synthesize node = node_; |
| 11 |
| 12 // Convention in the bookmark bar controller: the bookmark button |
| 13 // cells have a BookmarkNode as their represented object. This object |
| 14 // is placed in a BookmarkMenu at the time a cell is asked for its |
| 15 // menu. |
| 16 - (void)setRepresentedObject:(id)object { |
| 17 if ([object isKindOfClass:[NSValue class]]) { |
| 18 node_ = static_cast<const BookmarkNode*>([object pointerValue]); |
| 19 } |
| 20 } |
| 21 |
| 22 @end |
| OLD | NEW |