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

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

Issue 1566004: [Mac] Rearrange SSL status icon/label in omnibox. (Closed)
Patch Set: Rohit's points. 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/location_bar_view_mac.h
diff --git a/chrome/browser/cocoa/location_bar_view_mac.h b/chrome/browser/cocoa/location_bar_view_mac.h
index afa4aeca16ab4412ad316f9ac079c85eb812f85b..2e8675aebe55609c64084baed03637d1e2c92696 100644
--- a/chrome/browser/cocoa/location_bar_view_mac.h
+++ b/chrome/browser/cocoa/location_bar_view_mac.h
@@ -153,6 +153,12 @@ class LocationBarViewMac : public AutocompleteEditController,
const NSAttributedString* GetLabel() const { return label_; }
bool IsVisible() const { return visible_; }
+ // Default size when no image is present.
+ virtual NSSize GetDefaultImageSize() const;
+
+ // Returns the size of the image, else the default size.
+ NSSize GetImageSize() const;
+
// Returns the tooltip for this image view or |nil| if there is none.
virtual const NSString* GetToolTip() { return nil; }
@@ -206,14 +212,13 @@ class LocationBarViewMac : public AutocompleteEditController,
void set_preview_enabled(bool enabled) { preview_enabled_ = enabled; }
- bool preview_enabled() { return preview_enabled_; }
+ bool preview_enabled() const { return preview_enabled_; }
- // Returns the size of the image, or a default size if no image available.
// When a new page action is created, all the icons are destroyed and
// recreated; at this point we need to calculate sizes to lay out the
// icons even though no images are available yet. For this case, we return
// the default image size for a page icon.
- virtual NSSize GetPreferredImageSize();
+ virtual NSSize GetDefaultImageSize() const;
// Either notify listeners or show a popup depending on the Page Action.
virtual void OnMousePressed(NSRect bounds);
@@ -389,6 +394,9 @@ class LocationBarViewMac : public AutocompleteEditController,
// A view that shows an icon to the left of the address.
LocationIconView location_icon_view_;
+ // Security info as text which floats left of the page actions.
+ LocationBarImageView security_label_view_;
+
// Any installed Page Actions.
PageActionViewList page_action_views_;
« no previous file with comments | « chrome/browser/cocoa/autocomplete_text_field_unittest.mm ('k') | chrome/browser/cocoa/location_bar_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698