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

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

Issue 2854051: [Mac] Convert omnibox keyword hint to decoration. (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/location_bar/location_bar_view_mac.h
diff --git a/chrome/browser/cocoa/location_bar/location_bar_view_mac.h b/chrome/browser/cocoa/location_bar/location_bar_view_mac.h
index eb84998f9e79d5f9d0c6cab1f619a6cc540dab88..e07b112e8711b076d54db94a2102979194f7deac 100644
--- a/chrome/browser/cocoa/location_bar/location_bar_view_mac.h
+++ b/chrome/browser/cocoa/location_bar/location_bar_view_mac.h
@@ -29,6 +29,7 @@ class ContentSettingDecoration;
class ContentSettingImageModel;
class EVBubbleDecoration;
@class ExtensionPopupController;
+class KeywordHintDecoration;
class LocationIconDecoration;
class PageActionDecoration;
class Profile;
@@ -126,8 +127,8 @@ class LocationBarViewMac : public AutocompleteEditController,
virtual SkBitmap GetFavIcon() const;
virtual std::wstring GetTitle() const;
- NSImage* GetTabButtonImage();
NSImage* GetKeywordImage(const std::wstring& keyword);
+
AutocompleteTextField* GetAutocompleteTextField() { return field_; }
@@ -189,15 +190,15 @@ class LocationBarViewMac : public AutocompleteEditController,
// The content blocked decorations.
ScopedVector<ContentSettingDecoration> content_setting_decorations_;
+ // Keyword hint decoration displayed on the right-hand side.
+ scoped_ptr<KeywordHintDecoration> keyword_hint_decoration_;
+
Profile* profile_;
Browser* browser_;
ToolbarModel* toolbar_model_; // Weak, owned by Browser.
- // Image used in drawing keyword hint.
- scoped_nsobject<NSImage> tab_button_image_;
-
// The transition type to use for the navigation.
PageTransition::Type transition_;

Powered by Google App Engine
This is Rietveld 408576698