diff options
author | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 18:49:52 +0000 |
---|---|---|
committer | jcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-23 18:49:52 +0000 |
commit | 6aa376b2bfe85c851edca7fc04a05960bc419051 (patch) | |
tree | 3db99be45acc2670857a2d0555eb239a06312c57 /chrome/browser/views/page_info_window.h | |
parent | 3c0d854087dfc385de5c63875cc1f37ce28fb8de (diff) | |
download | chromium_src-6aa376b2bfe85c851edca7fc04a05960bc419051.zip chromium_src-6aa376b2bfe85c851edca7fc04a05960bc419051.tar.gz chromium_src-6aa376b2bfe85c851edca7fc04a05960bc419051.tar.bz2 |
This CL enables the Page info menu when right-clicking on a page/frame.
For the frame case, the SSL info had to be added to the show menu message (as the navigation entry contains the top frame SSL info).
BUG=2467
TEST=Open a page over HTTPS with multiple frames. Right-click and select shot page info.
Review URL: http://codereview.chromium.org/4034
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2504 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/page_info_window.h')
-rw-r--r-- | chrome/browser/views/page_info_window.h | 33 |
1 files changed, 25 insertions, 8 deletions
diff --git a/chrome/browser/views/page_info_window.h b/chrome/browser/views/page_info_window.h index f2e998c..3f94fec 100644 --- a/chrome/browser/views/page_info_window.h +++ b/chrome/browser/views/page_info_window.h @@ -5,9 +5,11 @@ #ifndef CHROME_BROWSER_VIEWS_PAGE_INFO_WINDOW_H__ #define CHROME_BROWSER_VIEWS_PAGE_INFO_WINDOW_H__ +#include "chrome/browser/navigation_entry.h" #include "chrome/views/dialog_delegate.h" #include "chrome/views/native_button.h" #include "chrome/views/window.h" +#include "googleurl/src/gurl.h" // The page info window displays information regarding the current page, // including security information. @@ -31,11 +33,19 @@ class PageInfoWindow : public ChromeViews::DialogDelegate, }; - // Creates and shows a new PageInfoWindow. - static void Create(Profile* profile, - NavigationEntry* nav_entry, - HWND parent_hwnd, - TabID tab); + // Creates and shows a new page info window for the main page. + static void CreatePageInfo(Profile* profile, + NavigationEntry* nav_entry, + HWND parent_hwnd, + TabID tab); + + // Creates and shows a new page info window for the frame at |url| with the + // specified SSL information. + static void CreateFrameInfo(Profile* profile, + const GURL& url, + const NavigationEntry::SSLStatus& ssl, + HWND parent_hwnd, + TabID tab); static void RegisterPrefs(PrefService* prefs); @@ -43,7 +53,10 @@ class PageInfoWindow : public ChromeViews::DialogDelegate, virtual ~PageInfoWindow(); virtual void Init(Profile* profile, - NavigationEntry* navigation_entry, + const GURL& url, + const NavigationEntry::SSLStatus& ssl, + NavigationEntry::PageType page_type, + bool show_history, HWND parent); // ChromeViews::Window overridden method. @@ -65,8 +78,12 @@ class PageInfoWindow : public ChromeViews::DialogDelegate, private: ChromeViews::View* CreateGeneralTabView(); - ChromeViews::View* CreateSecurityTabView(Profile* profile, - NavigationEntry* navigation_entry); + ChromeViews::View* CreateSecurityTabView( + Profile* profile, + const GURL& url, + const NavigationEntry::SSLStatus& ssl, + NavigationEntry::PageType page_type, + bool show_history); // Offsets the specified rectangle so it is showing on the screen and shifted // from its original location. |