From 4d67720512d8cf6b92d350a86f3fbacff45b4c75 Mon Sep 17 00:00:00 2001 From: "jcampan@chromium.org" Date: Sun, 19 Jul 2009 07:37:12 +0000 Subject: Relanding the the refactoring the page info to have a model. BUG=None TEST=Make sure clicking the lock/warning icon when visiting a HTTPS page brings the page info and that it reports the correct info. Also check that the "Page/Frame info" right click menu works as well. TBR=ben Review URL: http://codereview.chromium.org/155753 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21065 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/views/frame/browser_view.cc | 8 ++++++++ chrome/browser/views/frame/browser_view.h | 5 +++++ 2 files changed, 13 insertions(+) (limited to 'chrome/browser/views/frame') diff --git a/chrome/browser/views/frame/browser_view.cc b/chrome/browser/views/frame/browser_view.cc index 9df6216..99ecc8a 100644 --- a/chrome/browser/views/frame/browser_view.cc +++ b/chrome/browser/views/frame/browser_view.cc @@ -967,6 +967,14 @@ void BrowserView::TabContentsFocused(TabContents* tab_contents) { contents_container_->TabContentsFocused(tab_contents); } +void BrowserView::ShowPageInfo(gfx::NativeView parent, + Profile* profile, + const GURL& url, + const NavigationEntry::SSLStatus& ssl, + bool show_history) { + browser::ShowPageInfo(parent, profile, url, ssl, show_history); +} + /////////////////////////////////////////////////////////////////////////////// // BrowserView, BrowserWindowTesting implementation: diff --git a/chrome/browser/views/frame/browser_view.h b/chrome/browser/views/frame/browser_view.h index e2dc48d..1f64249 100644 --- a/chrome/browser/views/frame/browser_view.h +++ b/chrome/browser/views/frame/browser_view.h @@ -244,6 +244,11 @@ class BrowserView : public BrowserWindow, virtual void UserChangedTheme(); virtual int GetExtraRenderViewHeight() const; virtual void TabContentsFocused(TabContents* source); + virtual void ShowPageInfo(gfx::NativeView parent, + Profile* profile, + const GURL& url, + const NavigationEntry::SSLStatus& ssl, + bool show_history); // Overridden from BrowserWindowTesting: virtual BookmarkBarView* GetBookmarkBarView() const; -- cgit v1.1