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

Unified Diff: chrome/browser/cocoa/location_bar_view_mac.h

Issue 515027: Fixes bug where a Page Action icon was not being properly displayed upon page... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Second upload to get try server. Created 11 years 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 | « no previous file | chrome/browser/cocoa/location_bar_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/location_bar_view_mac.h
===================================================================
--- chrome/browser/cocoa/location_bar_view_mac.h (revision 35229)
+++ chrome/browser/cocoa/location_bar_view_mac.h (working copy)
@@ -33,7 +33,8 @@
class LocationBarViewMac : public AutocompleteEditController,
public LocationBar,
- public LocationBarTesting {
+ public LocationBarTesting,
+ public NotificationObserver {
public:
LocationBarViewMac(AutocompleteTextField* field,
const BubblePositioner* bubble_positioner,
@@ -96,6 +97,11 @@
const bool show_search_hint,
NSImage* image);
+ // Overridden from NotificationObserver.
+ virtual void Observe(NotificationType type,
+ const NotificationSource& source,
+ const NotificationDetails& details);
+
// Used to display a clickable icon in the location bar.
class LocationBarImageView {
public:
@@ -325,6 +331,9 @@
// The transition type to use for the navigation.
PageTransition::Type transition_;
+ // Used to register for notifications received by NotificationObserver.
+ NotificationRegistrar registrar_;
+
DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
};
« no previous file with comments | « no previous file | chrome/browser/cocoa/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698