diff options
Diffstat (limited to 'chrome/browser/ui/cocoa/bookmarks/bookmark_menu.mm')
-rw-r--r-- | chrome/browser/ui/cocoa/bookmarks/bookmark_menu.mm | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/browser/ui/cocoa/bookmarks/bookmark_menu.mm b/chrome/browser/ui/cocoa/bookmarks/bookmark_menu.mm new file mode 100644 index 0000000..274edc7 --- /dev/null +++ b/chrome/browser/ui/cocoa/bookmarks/bookmark_menu.mm @@ -0,0 +1,22 @@ +// Copyright (c) 2009 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#import "chrome/browser/ui/cocoa/bookmarks/bookmark_menu.h" + + +@implementation BookmarkMenu + +@synthesize id = id_; + +// Convention in the bookmark bar controller: the bookmark button +// cells have a BookmarkNode as their represented object. This object +// is placed in a BookmarkMenu at the time a cell is asked for its +// menu. +- (void)setRepresentedObject:(id)object { + if ([object isKindOfClass:[NSNumber class]]) { + id_ = static_cast<int64>([object longLongValue]); + } +} + +@end |