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

Unified Diff: chrome/browser/ui/browser.h

Issue 5716003: View source after POST command isn't what you expected. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Reviewers comments addressed. Created 10 years 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/ui/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index f6f2553119530b0f6d10cc32e4cbbde180d71a1d..c63a4ef349174e0e5a9fcf1ad30625a7353356f9 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -475,7 +475,7 @@ class Browser : public TabHandlerDelegate,
// Page-related commands
void BookmarkCurrentPage();
void SavePage();
- void ViewSource();
+ void ViewSelectedSource();
void ShowFindBar();
// Returns true if the Browser supports the specified feature. The value of
@@ -778,6 +778,7 @@ class Browser : public TabHandlerDelegate,
const GURL& url,
const NavigationEntry::SSLStatus& ssl,
bool show_history);
+ virtual void ViewSourceForTab(TabContents* source);
virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
bool* is_keyboard_shortcut);
virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
@@ -986,6 +987,15 @@ class Browser : public TabHandlerDelegate,
// If this browser should have instant one is created, otherwise does nothing.
void CreateInstantIfNecessary();
+ // Opens view-source tab for given tab contents.
+ void ViewSource(TabContentsWrapper* tab);
+
+ // Inserts contents dupe next to the original contents. This method is used
+ // to insert duplicate tab and view source tab next to the original tab.
+ void InsertContentsDupe(
+ TabContentsWrapper* original_content,
+ TabContentsWrapper* clone_content);
+
// Data members /////////////////////////////////////////////////////////////
NotificationRegistrar registrar_;

Powered by Google App Engine
This is Rietveld 408576698