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 | 7 |
8 #include "content/public/common/page_transition_types.h" | 8 #include "content/public/common/page_transition_types.h" |
9 #include "content/public/browser/navigation_controller.h" | 9 #include "content/public/browser/navigation_controller.h" |
10 #include "webkit/glue/window_open_disposition.h" | 10 #include "webkit/glue/window_open_disposition.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 namespace gfx { | 22 namespace gfx { |
23 class Rect; | 23 class Rect; |
24 } | 24 } |
25 | 25 |
26 namespace chrome { | 26 namespace chrome { |
27 | 27 |
28 content::WebContents* GetActiveWebContents(const Browser* browser); | 28 content::WebContents* GetActiveWebContents(const Browser* browser); |
29 | 29 |
30 content::WebContents* GetWebContentsAt(const Browser* browser, int index); | 30 content::WebContents* GetWebContentsAt(const Browser* browser, int index); |
31 | 31 |
32 void ActivateTabAt(Browser* browser, int index, bool user_gesture); | |
33 | |
34 // Adds a blank tab to the tab strip of the specified browser; an |index| of -1 | 32 // Adds a blank tab to the tab strip of the specified browser; an |index| of -1 |
35 // means to append it to the end of the tab strip. | 33 // means to append it to the end of the tab strip. |
36 void AddBlankTabAt(Browser* browser, int index, bool foreground); | 34 void AddBlankTabAt(Browser* browser, int index, bool foreground); |
37 | 35 |
38 // Adds a selected tab with the specified URL and transition, returns the | 36 // Adds a selected tab with the specified URL and transition, returns the |
39 // created TabContents. | 37 // created TabContents. |
40 content::WebContents* AddSelectedTabWithURL(Browser* browser, | 38 content::WebContents* AddSelectedTabWithURL(Browser* browser, |
41 const GURL& url, | 39 const GURL& url, |
42 content::PageTransition transition); | 40 content::PageTransition transition); |
43 | 41 |
(...skipping 15 matching lines...) Expand all Loading... |
59 // installing all its supporting objects and observers. | 57 // installing all its supporting objects and observers. |
60 TabContents* TabContentsFactory( | 58 TabContents* TabContentsFactory( |
61 Profile* profile, | 59 Profile* profile, |
62 content::SiteInstance* site_instance, | 60 content::SiteInstance* site_instance, |
63 int routing_id, | 61 int routing_id, |
64 const content::WebContents* base_web_contents); | 62 const content::WebContents* base_web_contents); |
65 | 63 |
66 } // namespace chrome | 64 } // namespace chrome |
67 | 65 |
68 #endif // CHROME_BROWSER_UI_BROWSER_TABSTRIP_H_ | 66 #endif // CHROME_BROWSER_UI_BROWSER_TABSTRIP_H_ |
OLD | NEW |