| 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 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_HOVER_STATE_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_HOVER_STATE_H_ |
| 7 |
| 5 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 6 | 9 |
| 7 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 8 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" | 11 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_button.h" |
| 9 | 12 |
| 10 // Hover state machine. Encapsulates the hover state for | 13 // Hover state machine. Encapsulates the hover state for |
| 11 // BookmarkBarFolderController. | 14 // BookmarkBarFolderController. |
| 12 // A strict call order is implied with these calls. It is ONLY valid to make | 15 // A strict call order is implied with these calls. It is ONLY valid to make |
| 13 // the following state transitions: | 16 // the following state transitions: |
| 14 // From: To: Via: | 17 // From: To: Via: |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 - (void)scheduleOpenBookmarkFolderOnHoverButton:(BookmarkButton*)hoverButton; | 72 - (void)scheduleOpenBookmarkFolderOnHoverButton:(BookmarkButton*)hoverButton; |
| 70 - (void)cancelPendingOpenBookmarkFolderOnHoverButton; | 73 - (void)cancelPendingOpenBookmarkFolderOnHoverButton; |
| 71 @end | 74 @end |
| 72 | 75 |
| 73 // Exposing these for unit testing purposes. They are used only in tests. | 76 // Exposing these for unit testing purposes. They are used only in tests. |
| 74 @interface BookmarkBarFolderHoverState(TestingAPI) | 77 @interface BookmarkBarFolderHoverState(TestingAPI) |
| 75 // Accessors and setters for button and hover state. | 78 // Accessors and setters for button and hover state. |
| 76 - (BookmarkButton*)hoverButton; | 79 - (BookmarkButton*)hoverButton; |
| 77 - (HoverState)hoverState; | 80 - (HoverState)hoverState; |
| 78 @end | 81 @end |
| 82 |
| 83 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_FOLDER_HOVER_STATE_H_ |
| OLD | NEW |