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_hover_state.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_hover_state.h" |
| 6 |
6 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" | 7 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" |
7 | 8 |
8 @interface BookmarkBarFolderHoverState(Private) | 9 @interface BookmarkBarFolderHoverState(Private) |
9 - (void)setHoverState:(HoverState)state; | 10 - (void)setHoverState:(HoverState)state; |
10 - (void)closeBookmarkFolderOnHoverButton:(BookmarkButton*)button; | 11 - (void)closeBookmarkFolderOnHoverButton:(BookmarkButton*)button; |
11 - (void)openBookmarkFolderOnHoverButton:(BookmarkButton*)button; | 12 - (void)openBookmarkFolderOnHoverButton:(BookmarkButton*)button; |
12 @end | 13 @end |
13 | 14 |
14 @implementation BookmarkBarFolderHoverState | 15 @implementation BookmarkBarFolderHoverState |
15 | 16 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Called after a delay to open a new hover folder. | 168 // Called after a delay to open a new hover folder. |
168 // Note: this method is not meant to be invoked directly, only through | 169 // Note: this method is not meant to be invoked directly, only through |
169 // a delayed call to |scheduleOpenBookmarkFolderOnHoverButton:|. | 170 // a delayed call to |scheduleOpenBookmarkFolderOnHoverButton:|. |
170 - (void)openBookmarkFolderOnHoverButton:(BookmarkButton*)button { | 171 - (void)openBookmarkFolderOnHoverButton:(BookmarkButton*)button { |
171 [self setHoverState:kHoverStateOpen]; | 172 [self setHoverState:kHoverStateOpen]; |
172 [[button target] performSelector:@selector(openBookmarkFolderFromButton:) | 173 [[button target] performSelector:@selector(openBookmarkFolderFromButton:) |
173 withObject:button]; | 174 withObject:button]; |
174 } | 175 } |
175 | 176 |
176 @end | 177 @end |
OLD | NEW |