summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/location_bar_view_mac.h
diff options
context:
space:
mode:
authorhawk@chromium.org <hawk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 00:26:37 +0000
committerhawk@chromium.org <hawk@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 00:26:37 +0000
commit0018067c7afbdf516d1845b35a3a245d96910f66 (patch)
tree4be869c69201a6f3804560fa5e9c1136e8755a82 /chrome/browser/cocoa/location_bar_view_mac.h
parent738fae30536f358b22bbcb6a72d9f0c54bf6cf6a (diff)
downloadchromium_src-0018067c7afbdf516d1845b35a3a245d96910f66.zip
chromium_src-0018067c7afbdf516d1845b35a3a245d96910f66.tar.gz
chromium_src-0018067c7afbdf516d1845b35a3a245d96910f66.tar.bz2
Add SSL icons on Mac OS X
BUG=14899 TEST=https sites have a lock icon in the address field, plain http sites do not Review URL: http://codereview.chromium.org/199072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26307 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/location_bar_view_mac.h')
-rw-r--r--chrome/browser/cocoa/location_bar_view_mac.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/location_bar_view_mac.h b/chrome/browser/cocoa/location_bar_view_mac.h
index d765a83..e305544 100644
--- a/chrome/browser/cocoa/location_bar_view_mac.h
+++ b/chrome/browser/cocoa/location_bar_view_mac.h
@@ -12,6 +12,7 @@
#include "chrome/browser/autocomplete/autocomplete_edit.h"
#include "chrome/browser/autocomplete/autocomplete_edit_view_mac.h"
#include "chrome/browser/location_bar.h"
+#include "chrome/browser/toolbar_model.h"
@class AutocompleteTextField;
class BubblePositioner;
@@ -84,6 +85,9 @@ class LocationBarViewMac : public AutocompleteEditController,
NSImage* image);
private:
+ // Set the SSL icon we should be showing.
+ void SetSecurityIcon(ToolbarModel::Icon icon);
+
scoped_ptr<AutocompleteEditViewMac> edit_view_;
CommandUpdater* command_updater_; // Weak, owned by Browser.
@@ -100,6 +104,8 @@ class LocationBarViewMac : public AutocompleteEditController,
Profile* profile_;
+ ToolbarModel* toolbar_model_; // Weak, owned by Browser.
+
// Image used in drawing keyword hint.
scoped_nsobject<NSImage> tab_button_image_;