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

Side by Side Diff: chrome/browser/views/browser_actions_container.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_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ 5 #ifndef CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_
6 #define CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ 6 #define CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 const SkBitmap& default_icon() const { return default_icon_; } 59 const SkBitmap& default_icon() const { return default_icon_; }
60 60
61 // Overridden from views::View. Return a 0-inset so the icon can draw all the 61 // Overridden from views::View. Return a 0-inset so the icon can draw all the
62 // way to the edge of the view if it wants. 62 // way to the edge of the view if it wants.
63 virtual gfx::Insets GetInsets() const; 63 virtual gfx::Insets GetInsets() const;
64 64
65 // Overridden from views::ButtonListener: 65 // Overridden from views::ButtonListener:
66 virtual void ButtonPressed(views::Button* sender, const views::Event& event); 66 virtual void ButtonPressed(views::Button* sender, const views::Event& event);
67 67
68 // Overridden from ImageLoadingTracker. 68 // Overridden from ImageLoadingTracker.
69 virtual void OnImageLoaded(SkBitmap* image, size_t index); 69 virtual void OnImageLoaded(ImageLoadingTracker* source, SkBitmap* image,
70 size_t index);
70 71
71 // Overridden from NotificationObserver: 72 // Overridden from NotificationObserver:
72 virtual void Observe(NotificationType type, 73 virtual void Observe(NotificationType type,
73 const NotificationSource& source, 74 const NotificationSource& source,
74 const NotificationDetails& details); 75 const NotificationDetails& details);
75 76
76 // MenuButton behavior overrides. These methods all default to TextButton 77 // MenuButton behavior overrides. These methods all default to TextButton
77 // behavior unless this button is a popup. In that case, it uses MenuButton 78 // behavior unless this button is a popup. In that case, it uses MenuButton
78 // behavior. MenuButton has the notion of a child popup being shown where the 79 // behavior. MenuButton has the notion of a child popup being shown where the
79 // button will stay in the pushed state until the "menu" (a popup in this 80 // button will stay in the pushed state until the "menu" (a popup in this
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 474
474 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_; 475 ScopedRunnableMethodFactory<BrowserActionsContainer> task_factory_;
475 476
476 // Handles delayed showing of the overflow menu when hovering. 477 // Handles delayed showing of the overflow menu when hovering.
477 ScopedRunnableMethodFactory<BrowserActionsContainer> show_menu_task_factory_; 478 ScopedRunnableMethodFactory<BrowserActionsContainer> show_menu_task_factory_;
478 479
479 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer); 480 DISALLOW_COPY_AND_ASSIGN(BrowserActionsContainer);
480 }; 481 };
481 482
482 #endif // CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_ 483 #endif // CHROME_BROWSER_VIEWS_BROWSER_ACTIONS_CONTAINER_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/views/browser_actions_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698