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

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

Issue 2407343002: cocoa browser: fix meaning of "continuous pulsing" (Closed)
Patch Set: setIsContinuousPulsing -> setPulseIsStuckOn Created 4 years, 2 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 - (BOOL)acceptsTrackInFrom:(id)sender; 232 - (BOOL)acceptsTrackInFrom:(id)sender;
233 233
234 // At this time we represent an empty folder (e.g. the string 234 // At this time we represent an empty folder (e.g. the string
235 // '(empty)') as a disabled button with no associated node. 235 // '(empty)') as a disabled button with no associated node.
236 // 236 //
237 // TODO(jrg): improve; things work but are slightly ugly since "empty" 237 // TODO(jrg): improve; things work but are slightly ugly since "empty"
238 // and "one disabled button" are not the same thing. 238 // and "one disabled button" are not the same thing.
239 // http://crbug.com/35967 239 // http://crbug.com/35967
240 - (BOOL)isEmpty; 240 - (BOOL)isEmpty;
241 241
242 // Turn on or off pulsing of a bookmark button. 242 // Stick or unstick the pulse of a bookmark button.
243 // Triggered by the bookmark bubble. 243 // Triggered by the bookmark bubble.
244 - (void)setIsContinuousPulsing:(BOOL)flag; 244 - (void)setPulseIsStuckOn:(BOOL)flag;
245 245
246 // Return continuous pulse state. 246 // Return pulse sticky state.
247 - (BOOL)isContinuousPulsing; 247 - (BOOL)isPulseStuckOn;
248 248
249 // Return the location in screen coordinates where the remove animation should 249 // Return the location in screen coordinates where the remove animation should
250 // be displayed. 250 // be displayed.
251 - (NSPoint)screenLocationForRemoveAnimation; 251 - (NSPoint)screenLocationForRemoveAnimation;
252 252
253 // The BookmarkButton which is currently being dragged, if any. 253 // The BookmarkButton which is currently being dragged, if any.
254 + (BookmarkButton*)draggedButton; 254 + (BookmarkButton*)draggedButton;
255 255
256 256
257 @end // @interface BookmarkButton 257 @end // @interface BookmarkButton
258 258
259 259
260 @interface BookmarkButton(TestingAPI) 260 @interface BookmarkButton(TestingAPI)
261 - (void)beginDrag:(NSEvent*)event; 261 - (void)beginDrag:(NSEvent*)event;
262 @end 262 @end
263 263
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698