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

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: Added navigation controller test. 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..b2384f0a1825bcec49387fe47a4c12dd465c3f1c 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -475,7 +475,8 @@ class Browser : public TabHandlerDelegate,
// Page-related commands
void BookmarkCurrentPage();
void SavePage();
- void ViewSource();
+ void ViewSelectedSource();
+ void ViewSource(TabContentsWrapper* tab);
yurys 2010/12/14 16:37:06 Can you make this method private?
void ShowFindBar();
// Returns true if the Browser supports the specified feature. The value of
@@ -778,6 +779,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 +988,12 @@ class Browser : public TabHandlerDelegate,
// If this browser should have instant one is created, otherwise does nothing.
void CreateInstantIfNecessary();
+ // 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