Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(927)

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_button.h

Issue 2073753004: [Mac][Material Design] Improve bookmark folder menu performance. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 10 matching lines...) Expand all
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
25 // Returns a pasteboard item that has all bookmark information. 25 // Returns a pasteboard item that has all bookmark information.
26 - (NSPasteboardItem*)pasteboardItemForDragOfButton:(BookmarkButton*)button; 26 - (NSPasteboardItem*)pasteboardItemForDragOfButton:(BookmarkButton*)button;
27 27
28 // Bookmark buttons pass mouseEntered: and mouseExited: events to 28 // Bookmark buttons pass mouseEntered: and mouseExited: events to
29 // their delegate. This allows the delegate to decide (for example) 29 // their delegate. This allows the delegate to decide (for example)
30 // which one, if any, should perform a hover-open. 30 // which one, if any, should perform a hover-open.
31 - (void)mouseEnteredButton:(id)button event:(NSEvent*)event; 31 - (void)mouseEnteredButton:(BookmarkButton*)button event:(NSEvent*)event;
32 - (void)mouseExitedButton:(id)button event:(NSEvent*)event; 32 - (void)mouseExitedButton:(BookmarkButton*)button event:(NSEvent*)event;
33 33
34 // Returns YES if a drag operation should lock the fullscreen overlay bar 34 // Returns YES if a drag operation should lock the fullscreen overlay bar
35 // visibility before starting. For example, dragging a bookmark button should 35 // visibility before starting. For example, dragging a bookmark button should
36 // not lock the overlay if the bookmark bar is currently showing in detached 36 // not lock the overlay if the bookmark bar is currently showing in detached
37 // mode on the NTP. 37 // mode on the NTP.
38 - (BOOL)dragShouldLockBarVisibility; 38 - (BOOL)dragShouldLockBarVisibility;
39 39
40 // Returns the top-level window for this button. 40 // Returns the top-level window for this button.
41 - (NSWindow*)browserWindow; 41 - (NSWindow*)browserWindow;
42 42
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 + (BookmarkButton*)draggedButton; 247 + (BookmarkButton*)draggedButton;
248 248
249 249
250 @end // @interface BookmarkButton 250 @end // @interface BookmarkButton
251 251
252 252
253 @interface BookmarkButton(TestingAPI) 253 @interface BookmarkButton(TestingAPI)
254 - (void)beginDrag:(NSEvent*)event; 254 - (void)beginDrag:(NSEvent*)event;
255 @end 255 @end
256 256
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698