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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_
6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ 6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 // The current profile (not owned by us). 127 // The current profile (not owned by us).
128 Profile* profile_; 128 Profile* profile_;
129 129
130 // The PageAction that this view represents. The PageAction is not owned by 130 // The PageAction that this view represents. The PageAction is not owned by
131 // us, it resides in the extension of this particular profile. 131 // us, it resides in the extension of this particular profile.
132 const ExtensionAction* page_action_; 132 const ExtensionAction* page_action_;
133 133
134 // The icons representing different states for the page action. 134 // The icons representing different states for the page action.
135 std::vector<GdkPixbuf*> pixbufs_; 135 std::vector<GdkPixbuf*> pixbufs_;
136 136
137 // A cache of the last dynamically generated bitmap and the pixbuf that
138 // corresponds to it. We keep track of both so we can free old pixbufs as
139 // their icons are replaced.
140 SkBitmap* last_icon_skbitmap_;
141 GdkPixbuf* last_icon_pixbuf_;
142
137 // The object that is waiting for the image loading to complete 143 // The object that is waiting for the image loading to complete
138 // asynchronously. It will delete itself once it is done. 144 // asynchronously. It will delete itself once it is done.
139 ImageLoadingTracker* tracker_; 145 ImageLoadingTracker* tracker_;
140 146
141 // The widgets for this page action. 147 // The widgets for this page action.
142 OwnedWidgetGtk event_box_; 148 OwnedWidgetGtk event_box_;
143 OwnedWidgetGtk image_; 149 OwnedWidgetGtk image_;
144 150
145 // The tab id we are currently showing the icon for. 151 // The tab id we are currently showing the icon for.
146 int current_tab_id_; 152 int current_tab_id_;
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 239
234 // Provides colors and rendering mode. 240 // Provides colors and rendering mode.
235 GtkThemeProvider* theme_provider_; 241 GtkThemeProvider* theme_provider_;
236 242
237 NotificationRegistrar registrar_; 243 NotificationRegistrar registrar_;
238 244
239 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); 245 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk);
240 }; 246 };
241 247
242 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ 248 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_
OLDNEW
« 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