Chromium Code Reviews| 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 <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 #include <vector> | 6 #include <vector> |
| 7 #import "chrome/browser/ui/cocoa/draggable_button.h" | 7 #import "chrome/browser/ui/cocoa/draggable_button.h" |
| 8 #import "chrome/browser/ui/cocoa/themed_window.h" | 8 #import "chrome/browser/ui/cocoa/themed_window.h" |
| 9 #include "ui/base/window_open_disposition.h" | 9 #include "ui/base/window_open_disposition.h" |
| 10 | 10 |
| 11 @class BookmarkBarFolderController; | 11 @class BookmarkBarFolderController; |
| 12 @class BookmarkButton; | 12 @class BookmarkButton; |
| 13 @class BrowserWindowController; | 13 @class BrowserWindowController; |
| 14 class ThemeService; | 14 class Profile; |
| 15 | 15 |
| 16 namespace bookmarks { | 16 namespace bookmarks { |
| 17 class BookmarkModel; | 17 class BookmarkModel; |
| 18 class BookmarkNode; | 18 class BookmarkNode; |
| 19 } | 19 } |
| 20 | 20 |
| 21 // Protocol for a BookmarkButton's delegate, responsible for doing | 21 // Protocol for a BookmarkButton's delegate, responsible for doing |
| 22 // things on behalf of a bookmark button. | 22 // things on behalf of a bookmark button. |
| 23 @protocol BookmarkButtonDelegate | 23 @protocol BookmarkButtonDelegate |
| 24 | 24 |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 123 // TODO(viettrungluu,jrg): instead of this, make buttons move around. | 123 // TODO(viettrungluu,jrg): instead of this, make buttons move around. |
| 124 // http://crbug.com/35968 | 124 // http://crbug.com/35968 |
| 125 - (CGFloat)indicatorPosForDragToPoint:(NSPoint)point; | 125 - (CGFloat)indicatorPosForDragToPoint:(NSPoint)point; |
| 126 | 126 |
| 127 // Used to tell the controller that room should be made for a drop. | 127 // Used to tell the controller that room should be made for a drop. |
| 128 - (void)setDropInsertionPos:(CGFloat)where; | 128 - (void)setDropInsertionPos:(CGFloat)where; |
| 129 | 129 |
| 130 // Used to tell the controller to stop making room for a drop. | 130 // Used to tell the controller to stop making room for a drop. |
| 131 - (void)clearDropInsertionPos; | 131 - (void)clearDropInsertionPos; |
| 132 | 132 |
| 133 // Return the theme service associated with this browser window. | 133 // Return the profile associated with this browser window. |
|
groby-ooo-7-16
2015/12/11 02:32:00
The implementer of the protocol has a profile avai
| |
| 134 - (ThemeService*)themeService; | 134 - (Profile*)profile; |
| 135 | 135 |
| 136 // Called just before a child folder puts itself on screen. | 136 // Called just before a child folder puts itself on screen. |
| 137 - (void)childFolderWillShow:(id<BookmarkButtonControllerProtocol>)child; | 137 - (void)childFolderWillShow:(id<BookmarkButtonControllerProtocol>)child; |
| 138 | 138 |
| 139 // Called just before a child folder closes. | 139 // Called just before a child folder closes. |
| 140 - (void)childFolderWillClose:(id<BookmarkButtonControllerProtocol>)child; | 140 - (void)childFolderWillClose:(id<BookmarkButtonControllerProtocol>)child; |
| 141 | 141 |
| 142 // Return a controller's folder controller for a subfolder, or nil. | 142 // Return a controller's folder controller for a subfolder, or nil. |
| 143 - (BookmarkBarFolderController*)folderController; | 143 - (BookmarkBarFolderController*)folderController; |
| 144 | 144 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 245 + (BookmarkButton*)draggedButton; | 245 + (BookmarkButton*)draggedButton; |
| 246 | 246 |
| 247 | 247 |
| 248 @end // @interface BookmarkButton | 248 @end // @interface BookmarkButton |
| 249 | 249 |
| 250 | 250 |
| 251 @interface BookmarkButton(TestingAPI) | 251 @interface BookmarkButton(TestingAPI) |
| 252 - (void)beginDrag:(NSEvent*)event; | 252 - (void)beginDrag:(NSEvent*)event; |
| 253 @end | 253 @end |
| 254 | 254 |
| OLD | NEW |