OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #import "chrome/browser/cocoa/bookmark_bar_view.h" | 5 #import "chrome/browser/cocoa/bookmark_bar_view.h" |
6 | 6 |
7 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" | 7 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" |
8 #import "chrome/browser/browser_theme_provider.h" | 8 #import "chrome/browser/browser_theme_provider.h" |
9 #import "chrome/browser/cocoa/bookmark_bar_controller.h" | 9 #import "chrome/browser/cocoa/bookmark_bar_controller.h" |
10 #import "chrome/browser/cocoa/bookmark_button.h" | 10 #import "chrome/browser/cocoa/bookmark_button.h" |
11 #import "chrome/browser/cocoa/bookmark_folder_target.h" | 11 #import "chrome/browser/cocoa/bookmark_folder_target.h" |
12 #import "chrome/browser/cocoa/themed_window.h" | 12 #import "chrome/browser/cocoa/themed_window.h" |
| 13 #import "chrome/browser/cocoa/view_id_util.h" |
13 #import "third_party/mozilla/NSPasteboard+Utils.h" | 14 #import "third_party/mozilla/NSPasteboard+Utils.h" |
14 | 15 |
15 @interface BookmarkBarView (Private) | 16 @interface BookmarkBarView (Private) |
16 - (void)themeDidChangeNotification:(NSNotification*)aNotification; | 17 - (void)themeDidChangeNotification:(NSNotification*)aNotification; |
17 - (void)updateTheme:(ThemeProvider*)themeProvider; | 18 - (void)updateTheme:(ThemeProvider*)themeProvider; |
18 @end | 19 @end |
19 | 20 |
20 @implementation BookmarkBarView | 21 @implementation BookmarkBarView |
21 | 22 |
22 @synthesize dropIndicatorShown = dropIndicatorShown_; | 23 @synthesize dropIndicatorShown = dropIndicatorShown_; |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 if ([self performDragOperationForURL:info]) | 243 if ([self performDragOperationForURL:info]) |
243 return YES; | 244 return YES; |
244 } | 245 } |
245 return NO; | 246 return NO; |
246 } | 247 } |
247 | 248 |
248 - (void)setController:(id)controller { | 249 - (void)setController:(id)controller { |
249 controller_ = controller; | 250 controller_ = controller; |
250 } | 251 } |
251 | 252 |
| 253 // Tag is used solely for ViewID. Override to prevent changing of it. |
| 254 - (NSInteger)tag { |
| 255 return view_id_util::ViewIDToTag(VIEW_ID_BOOKMARK_BAR); |
| 256 } |
| 257 |
252 @end // @implementation BookmarkBarView | 258 @end // @implementation BookmarkBarView |
OLD | NEW |