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

Unified Diff: chrome/browser/gtk/location_bar_view_gtk.h

Issue 269079: Implement new page action API. (Closed)
Patch Set: compile fixes Created 11 years, 2 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
« no previous file with comments | « chrome/browser/extensions/page_action_apitest.cc ('k') | chrome/browser/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/location_bar_view_gtk.h
diff --git a/chrome/browser/gtk/location_bar_view_gtk.h b/chrome/browser/gtk/location_bar_view_gtk.h
index 3fe531a08af523ac26e6ddc66350c8cd6d1f70d8..32a5f9e4c8debf835f6165e2fca6244b5dfaf11c 100644
--- a/chrome/browser/gtk/location_bar_view_gtk.h
+++ b/chrome/browser/gtk/location_bar_view_gtk.h
@@ -134,6 +134,12 @@ class LocationBarViewGtk : public AutocompleteEditController,
// The icons representing different states for the page action.
std::vector<GdkPixbuf*> pixbufs_;
+ // A cache of the last dynamically generated bitmap and the pixbuf that
+ // corresponds to it. We keep track of both so we can free old pixbufs as
+ // their icons are replaced.
+ SkBitmap* last_icon_skbitmap_;
+ GdkPixbuf* last_icon_pixbuf_;
+
// The object that is waiting for the image loading to complete
// asynchronously. It will delete itself once it is done.
ImageLoadingTracker* tracker_;
« no previous file with comments | « chrome/browser/extensions/page_action_apitest.cc ('k') | chrome/browser/gtk/location_bar_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698