| Index: chrome/browser/ui/views/location_bar/content_setting_image_view.h
|
| diff --git a/chrome/browser/ui/views/location_bar/content_setting_image_view.h b/chrome/browser/ui/views/location_bar/content_setting_image_view.h
|
| index 6542adb640e77a2b9df3c834cd5d5278f15faee7..4657c11b6b1c5e17540e63d91b017c97a9de5eed 100644
|
| --- a/chrome/browser/ui/views/location_bar/content_setting_image_view.h
|
| +++ b/chrome/browser/ui/views/location_bar/content_setting_image_view.h
|
| @@ -17,17 +17,20 @@
|
| class ContentSettingImageModel;
|
| class ContentSettingBubbleContents;
|
| class LocationBarView;
|
| +class TabContents;
|
|
|
| namespace content {
|
| class WebContents;
|
| }
|
|
|
| namespace views {
|
| +class GestureEvent;
|
| class MouseEvent;
|
| }
|
|
|
| namespace ui {
|
| class SlideAnimation;
|
| +enum GestureStatus;
|
| }
|
|
|
| class ContentSettingsDelegateView;
|
| @@ -43,10 +46,12 @@ class ContentSettingImageView : public views::ImageView,
|
|
|
| // |new_navigation| true if this is a new navigation, false if the tab was
|
| // just switched to.
|
| - void UpdateFromWebContents(content::WebContents* web_contents);
|
| + virtual void Update(TabContents* tab_contents);
|
|
|
| // views::View overrides:
|
| virtual gfx::Size GetPreferredSize() OVERRIDE;
|
| + virtual ui::GestureStatus OnGestureEvent(
|
| + const views::GestureEvent& event) OVERRIDE;
|
|
|
| // ui::AnimationDelegate overrides:
|
| virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
|
| @@ -59,6 +64,15 @@ class ContentSettingImageView : public views::ImageView,
|
| // TouchableLocationBarView.
|
| virtual int GetBuiltInHorizontalPadding() const OVERRIDE;
|
|
|
| + protected:
|
| + // Provide styling colors for button look.
|
| + virtual SkColor ButtonBorderColor() const;
|
| + virtual SkColor GradientTopColor() const;
|
| + virtual SkColor GradientBottomColor() const;
|
| +
|
| + // Invoked when the user clicks on the control.
|
| + virtual void OnClick();
|
| +
|
| private:
|
| // views::ImageView overrides:
|
| virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
|
|
|