OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/cocoa/bookmarks/bookmark_bar_folder_view.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_view.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.h" | 9 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_folder_target.h" |
10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 10 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
11 #include "components/bookmarks/core/browser/bookmark_pasteboard_helper_mac.h" | 11 #include "components/bookmarks/browser/bookmark_pasteboard_helper_mac.h" |
12 #include "components/bookmarks/core/browser/bookmark_utils.h" | 12 #include "components/bookmarks/browser/bookmark_utils.h" |
13 #include "content/public/browser/user_metrics.h" | 13 #include "content/public/browser/user_metrics.h" |
14 | 14 |
15 using base::UserMetricsAction; | 15 using base::UserMetricsAction; |
16 | 16 |
17 #import "third_party/mozilla/NSPasteboard+Utils.h" | 17 #import "third_party/mozilla/NSPasteboard+Utils.h" |
18 | 18 |
19 @interface BookmarkBarFolderView() | 19 @interface BookmarkBarFolderView() |
20 | 20 |
21 @property(readonly, nonatomic) id<BookmarkButtonControllerProtocol> controller; | 21 @property(readonly, nonatomic) id<BookmarkButtonControllerProtocol> controller; |
22 | 22 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 [dropIndicator_ setBorderType:NSLineBorder]; | 200 [dropIndicator_ setBorderType:NSLineBorder]; |
201 [dropIndicator_ setAlphaValue:0.85]; | 201 [dropIndicator_ setAlphaValue:0.85]; |
202 [self addSubview:dropIndicator_]; | 202 [self addSubview:dropIndicator_]; |
203 } else { | 203 } else { |
204 [dropIndicator_ removeFromSuperview]; | 204 [dropIndicator_ removeFromSuperview]; |
205 dropIndicator_.reset(); | 205 dropIndicator_.reset(); |
206 } | 206 } |
207 } | 207 } |
208 | 208 |
209 @end | 209 @end |
OLD | NEW |