summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/tabs/throbbing_image_view.h
blob: c02b81498ad20c0f479b047a0b074eb1b5a5ed33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_UI_COCOA_TABS_THROBBING_IMAGE_VIEW_H_
#define CHROME_BROWSER_UI_COCOA_TABS_THROBBING_IMAGE_VIEW_H_

#import <Cocoa/Cocoa.h>

#include "base/memory/scoped_nsobject.h"
#include "base/memory/scoped_ptr.h"
#include "ui/base/animation/throb_animation.h"

class ThrobbingImageViewAnimationDelegate;

@interface ThrobbingImageView : NSView {
 @protected
  scoped_nsobject<NSImage> backgroundImage_;
  scoped_nsobject<NSImage> throbImage_;
  scoped_ptr<ui::ThrobAnimation> throbAnimation_;

 @private
  scoped_ptr<ThrobbingImageViewAnimationDelegate> delegate_;
}

- (id)initWithFrame:(NSRect)rect
    backgroundImage:(NSImage*)backgroundImage
         throbImage:(NSImage*)throbImage
         durationMS:(int)durationMS;
@end

#endif  // CHROME_BROWSER_UI_COCOA_TABS_THROBBING_IMAGE_VIEW_H_