• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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/ui/cocoa/bookmarks/bookmark_menu.h"
6
7
8@implementation BookmarkMenu
9
10@synthesize id = id_;
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:[NSNumber class]]) {
18    id_ = static_cast<int64>([object longLongValue]);
19  }
20}
21
22@end
23