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

Side by Side Diff: chrome/browser/cocoa/location_bar/location_bar_view_mac.h

Issue 2973006: Use the extension icon for extension omnibox results instead of the generic (Closed)
Patch Set: fixed mac Created 10 years, 5 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_COCOA_LOCATION_BAR_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_
6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ 6 #define CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 PageTransition::Type transition, 122 PageTransition::Type transition,
123 const GURL& alternate_nav_url); 123 const GURL& alternate_nav_url);
124 virtual void OnChanged(); 124 virtual void OnChanged();
125 virtual void OnInputInProgress(bool in_progress); 125 virtual void OnInputInProgress(bool in_progress);
126 virtual void OnKillFocus(); 126 virtual void OnKillFocus();
127 virtual void OnSetFocus(); 127 virtual void OnSetFocus();
128 virtual SkBitmap GetFavIcon() const; 128 virtual SkBitmap GetFavIcon() const;
129 virtual std::wstring GetTitle() const; 129 virtual std::wstring GetTitle() const;
130 130
131 NSImage* GetTabButtonImage(); 131 NSImage* GetTabButtonImage();
132 NSImage* GetKeywordImage(const std::wstring& keyword);
132 AutocompleteTextField* GetAutocompleteTextField() { return field_; } 133 AutocompleteTextField* GetAutocompleteTextField() { return field_; }
133 134
135
134 // Overridden from NotificationObserver. 136 // Overridden from NotificationObserver.
135 virtual void Observe(NotificationType type, 137 virtual void Observe(NotificationType type,
136 const NotificationSource& source, 138 const NotificationSource& source,
137 const NotificationDetails& details); 139 const NotificationDetails& details);
138 140
139 // Used to display a clickable icon in the location bar. 141 // Used to display a clickable icon in the location bar.
140 class LocationBarImageView { 142 class LocationBarImageView {
141 public: 143 public:
142 explicit LocationBarImageView() : image_(nil), 144 explicit LocationBarImageView() : image_(nil),
143 label_(nil), 145 label_(nil),
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 // Used to register for notifications received by NotificationObserver. 446 // Used to register for notifications received by NotificationObserver.
445 NotificationRegistrar registrar_; 447 NotificationRegistrar registrar_;
446 448
447 // Used to schedule a task for the first run info bubble. 449 // Used to schedule a task for the first run info bubble.
448 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_; 450 ScopedRunnableMethodFactory<LocationBarViewMac> first_run_bubble_;
449 451
450 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 452 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
451 }; 453 };
452 454
453 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_ 455 #endif // CHROME_BROWSER_COCOA_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698