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

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

Issue 74133003: linux-aura: Restore middle-click on new-tab button behaviour. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 1 month 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_tabstrip.h
diff --git a/chrome/browser/ui/browser_tabstrip.h b/chrome/browser/ui/browser_tabstrip.h
index 29612e992d7e0361b6e3c0021aa1b1889eeaa647..a13699dbcbc212b010c5260db9916e3dc0fe7364 100644
--- a/chrome/browser/ui/browser_tabstrip.h
+++ b/chrome/browser/ui/browser_tabstrip.h
@@ -24,6 +24,11 @@ class Rect;
namespace chrome {
+// Adds a tab to the tab strip of the specified browser and loads |url| into it.
+// If |url| is an empty URL, then the new tab-page is laoded. An |index| of -1
+// means to append it to the end of the tab strip.
+void AddURLTabAt(Browser* browser, const GURL& url, int index, bool foreground);
+
// Adds a blank tab to the tab strip of the specified browser; an |index| of -1
// means to append it to the end of the tab strip.
void AddBlankTabAt(Browser* browser, int index, bool foreground);

Powered by Google App Engine
This is Rietveld 408576698