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

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: Created 8 years, 5 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 b542e34174f91cd366c288fd207d6e3fe0f70577..2c6d46cb28c5ca1e30b2e322021dc82dab9f33e2 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
@@ -44,7 +44,7 @@ class ContentSettingImageView
// |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;
@@ -60,6 +60,12 @@ class ContentSettingImageView
// TouchableLocationBarView.
virtual int GetBuiltInHorizontalPadding() const OVERRIDE;
+ protected:
+ virtual SkColor button_border_color() const;
+ 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