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

Unified Diff: chrome/browser/ui/views/location_bar/content_setting_image_view.h

Issue 10821114: Refactor the content setting view to allow a subclass for the web intents button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 4 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 side-by-side diff with in-line comments
Download patch
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..87b34d966f812aca7a12699c7c8674d49797bb66 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
@@ -43,7 +43,7 @@ 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);
+ void Update(TabContents* tab_contents);
// views::View overrides:
virtual gfx::Size GetPreferredSize() OVERRIDE;
@@ -59,6 +59,12 @@ class ContentSettingImageView : public views::ImageView,
// TouchableLocationBarView.
virtual int GetBuiltInHorizontalPadding() const OVERRIDE;
+ protected:
+ virtual SkColor button_border_color() const;
sky 2012/08/07 03:33:00 virtual methods shouldn't be named named with unix
Greg Billock 2012/08/07 19:29:04 Done.
+ virtual SkColor gradient_top_color() const;
+ virtual SkColor gradient_bottom_color() const;
+ virtual void OnClick();
+
private:
// views::ImageView overrides:
virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698