OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_BROWSER_TABSTRIP_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_TABSTRIP_H_ |
6 #define CHROME_BROWSER_UI_BROWSER_TABSTRIP_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_TABSTRIP_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "content/public/common/page_transition_types.h" | 9 #include "content/public/common/page_transition_types.h" |
10 #include "webkit/glue/window_open_disposition.h" | 10 #include "webkit/glue/window_open_disposition.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 int GetIndexOfTab(const Browser* browser, const content::WebContents* contents); | 29 int GetIndexOfTab(const Browser* browser, const content::WebContents* contents); |
30 | 30 |
31 TabContents* GetActiveTabContents(const Browser* browser); | 31 TabContents* GetActiveTabContents(const Browser* browser); |
32 content::WebContents* GetActiveWebContents(const Browser* browser); | 32 content::WebContents* GetActiveWebContents(const Browser* browser); |
33 | 33 |
34 TabContents* GetTabContentsAt(const Browser* browser, int index); | 34 TabContents* GetTabContentsAt(const Browser* browser, int index); |
35 content::WebContents* GetWebContentsAt(const Browser* browser, int index); | 35 content::WebContents* GetWebContentsAt(const Browser* browser, int index); |
36 | 36 |
37 void ActivateTabAt(Browser* browser, int index, bool user_gesture); | 37 void ActivateTabAt(Browser* browser, int index, bool user_gesture); |
38 | 38 |
| 39 TabContents* AddBlankTab(Browser* browser, bool foreground); |
| 40 TabContents* AddBlankTabAt(Browser* browser, int index, bool foreground); |
| 41 |
39 // Used by extensions. | 42 // Used by extensions. |
40 bool IsTabStripEditable(Browser* browser); | 43 bool IsTabStripEditable(Browser* browser); |
41 | 44 |
42 // Adds a selected tab with the specified URL and transition, returns the | 45 // Adds a selected tab with the specified URL and transition, returns the |
43 // created TabContents. | 46 // created TabContents. |
44 TabContents* AddSelectedTabWithURL(Browser* browser, | 47 TabContents* AddSelectedTabWithURL(Browser* browser, |
45 const GURL& url, | 48 const GURL& url, |
46 content::PageTransition transition); | 49 content::PageTransition transition); |
47 | 50 |
48 // Adds |tab_contents| to |browser|'s tabstrip. | 51 // Adds |tab_contents| to |browser|'s tabstrip. |
(...skipping 20 matching lines...) Expand all Loading... |
69 TabContents* TabContentsFactory( | 72 TabContents* TabContentsFactory( |
70 Profile* profile, | 73 Profile* profile, |
71 content::SiteInstance* site_instance, | 74 content::SiteInstance* site_instance, |
72 int routing_id, | 75 int routing_id, |
73 const content::WebContents* base_web_contents, | 76 const content::WebContents* base_web_contents, |
74 content::SessionStorageNamespace* session_storage_namespace); | 77 content::SessionStorageNamespace* session_storage_namespace); |
75 | 78 |
76 } // namespace chrome | 79 } // namespace chrome |
77 | 80 |
78 #endif // CHROME_BROWSER_UI_BROWSER_TABSTRIP_H_ | 81 #endif // CHROME_BROWSER_UI_BROWSER_TABSTRIP_H_ |
OLD | NEW |