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

Side by Side Diff: chrome/browser/ui/cocoa/tabs/throbber_view.h

Issue 174883003: mac: Disable CoreAnimation throbbers for now, while I investigate the performance regressions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 #ifndef CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_
6 #define CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_ 6 #define CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 @protocol ThrobberDataDelegate; 10 @protocol ThrobberDataDelegate;
11 11
12 // Draws an image animating down to the bottom and then another image 12 // Draws an image animating down to the bottom and then another image
13 // animating up from the bottom. Stops once the animation is complete. 13 // animating up from the bottom. Stops once the animation is complete.
14 14
15 @interface ThrobberView : NSView { 15 @interface ThrobberView : NSView {
16 @private 16 @private
17 id<ThrobberDataDelegate> dataDelegate_; 17 id<ThrobberDataDelegate> dataDelegate_;
18 } 18 }
19 19
20 // Creates a filmstrip view with |frame| and image |image|.
21 + (id)filmstripThrobberViewWithFrame:(NSRect)frame
22 image:(NSImage*)image;
23
20 // Creates a toast view with |frame| and specified images. 24 // Creates a toast view with |frame| and specified images.
21 + (id)toastThrobberViewWithFrame:(NSRect)frame 25 + (id)toastThrobberViewWithFrame:(NSRect)frame
22 beforeImage:(NSImage*)beforeImage 26 beforeImage:(NSImage*)beforeImage
23 afterImage:(NSImage*)afterImage; 27 afterImage:(NSImage*)afterImage;
24 28
25 @end 29 @end
26 30
27 #endif // CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_ 31 #endif // CHROME_BROWSER_UI_COCOA_TABS_THROBBER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_strip_controller.mm ('k') | chrome/browser/ui/cocoa/tabs/throbber_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698