diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-15 18:05:16 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-15 18:05:16 +0000 |
commit | 31682283d0eefd0b64065144478b0b6a4eda093e (patch) | |
tree | ef12420b8f1dd403c748ad9673a6f57df7a59ace /chrome/browser/tab_contents/navigation_controller.h | |
parent | c651176e09906e3aa6986e282011babe4ed8777e (diff) | |
download | chromium_src-31682283d0eefd0b64065144478b0b6a4eda093e.zip chromium_src-31682283d0eefd0b64065144478b0b6a4eda093e.tar.gz chromium_src-31682283d0eefd0b64065144478b0b6a4eda093e.tar.bz2 |
Enable the context menu and developer menu "View source" items at the same time.
This fixes issue 2028 which didn't enable the context menu item for new tabs.
BUG=2028
TEST=Open a new tab and verify that the 'View page source' context menu is enabled.
Original review: http://codereview.chromium.org/541016
Patch by Aaron Kemp
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@36367 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/navigation_controller.h')
-rw-r--r-- | chrome/browser/tab_contents/navigation_controller.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/navigation_controller.h b/chrome/browser/tab_contents/navigation_controller.h index 5378546..2aba4fe 100644 --- a/chrome/browser/tab_contents/navigation_controller.h +++ b/chrome/browser/tab_contents/navigation_controller.h @@ -176,6 +176,9 @@ class NavigationController { // committed entries. NavigationEntry* GetLastCommittedEntry() const; + // Returns true if the source for the current entry can be viewed. + bool CanViewSource() const; + // Returns the index of the last committed entry. int last_committed_entry_index() const { return last_committed_entry_index_; |