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

Side by Side Diff: chrome/browser/gtk/location_bar_view_gtk.h

Issue 1167004: Adds the source ImageLoadingTracker to OnImageLoaded. I need this in a (Closed)
Patch Set: Created 10 years, 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 <map> 10 #include <map>
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } 187 }
188 188
189 bool IsVisible() { return GTK_WIDGET_VISIBLE(widget()); } 189 bool IsVisible() { return GTK_WIDGET_VISIBLE(widget()); }
190 190
191 // Called to notify the PageAction that it should determine whether to be 191 // Called to notify the PageAction that it should determine whether to be
192 // visible or hidden. |contents| is the TabContents that is active, |url| 192 // visible or hidden. |contents| is the TabContents that is active, |url|
193 // is the current page URL. 193 // is the current page URL.
194 void UpdateVisibility(TabContents* contents, GURL url); 194 void UpdateVisibility(TabContents* contents, GURL url);
195 195
196 // A callback from ImageLoadingTracker for when the image has loaded. 196 // A callback from ImageLoadingTracker for when the image has loaded.
197 virtual void OnImageLoaded(SkBitmap* image, size_t index); 197 virtual void OnImageLoaded(ImageLoadingTracker* source, SkBitmap* image,
198 size_t index);
198 199
199 // Simulate left mouse click on the page action button. 200 // Simulate left mouse click on the page action button.
200 void TestActivatePageAction(); 201 void TestActivatePageAction();
201 202
202 private: 203 private:
203 static gboolean OnButtonPressedThunk(GtkWidget* sender, 204 static gboolean OnButtonPressedThunk(GtkWidget* sender,
204 GdkEvent* event, 205 GdkEvent* event,
205 PageActionViewGtk* page_action_view) { 206 PageActionViewGtk* page_action_view) {
206 return page_action_view->OnButtonPressed(sender, event); 207 return page_action_view->OnButtonPressed(sender, event);
207 } 208 }
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 // Indicate if |tab_to_search_hint_| should be shown. 378 // Indicate if |tab_to_search_hint_| should be shown.
378 bool show_keyword_hint_; 379 bool show_keyword_hint_;
379 380
380 // Indicate if |type_to_search_hint_| should be shown. 381 // Indicate if |type_to_search_hint_| should be shown.
381 bool show_search_hint_; 382 bool show_search_hint_;
382 383
383 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); 384 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk);
384 }; 385 };
385 386
386 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ 387 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/browser_actions_toolbar_gtk.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