class PageActionDecoration : public ImageDecoration,
public ExtensionActionIconFactory::Observer,
- public content::NotificationObserver,
- public ExtensionAction::IconAnimation::Observer {
+ public content::NotificationObserver {
public:
PageActionDecoration(LocationBarViewMac* owner,
Browser* browser,
// Overridden from |LocationBarDecoration|
virtual CGFloat GetWidthForSpace(CGFloat width) OVERRIDE;
- virtual void DrawWithBackgroundInFrame(NSRect background_frame,
- NSRect frame,
- NSView* control_view) OVERRIDE;
virtual bool AcceptsMousePress() OVERRIDE;
virtual bool OnMousePressed(NSRect frame) OVERRIDE;
virtual NSString* GetToolTip() OVERRIDE;
// Show the popup in the frame, with the given URL.
void ShowPopup(const NSRect& frame, const GURL& popup_url);
- // Overridden from ExtensionAction::IconAnimation::Observer.
- virtual void OnIconChanged() OVERRIDE;
-
// Overridden from NotificationObserver:
virtual void Observe(int type,
const content::NotificationSource& source,
// extension.
bool preview_enabled_;
- // Fade-in animation for the icon with observer scoped to this.
- ExtensionAction::IconAnimation::ScopedObserver
- scoped_icon_animation_observer_;
-
// Used to register for notifications received by
// NotificationObserver.
content::NotificationRegistrar registrar_;