| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 virtual Browser* CreateNewStripWithContents( | 798 virtual Browser* CreateNewStripWithContents( |
| 799 TabContentsWrapper* detached_contents, | 799 TabContentsWrapper* detached_contents, |
| 800 const gfx::Rect& window_bounds, | 800 const gfx::Rect& window_bounds, |
| 801 const DockInfo& dock_info, | 801 const DockInfo& dock_info, |
| 802 bool maximize); | 802 bool maximize); |
| 803 virtual int GetDragActions() const; | 803 virtual int GetDragActions() const; |
| 804 // Construct a TabContents for a given URL, profile and transition type. | 804 // Construct a TabContents for a given URL, profile and transition type. |
| 805 // If instance is not null, its process will be used to render the tab. | 805 // If instance is not null, its process will be used to render the tab. |
| 806 virtual TabContentsWrapper* CreateTabContentsForURL( | 806 virtual TabContentsWrapper* CreateTabContentsForURL( |
| 807 const GURL& url, | 807 const GURL& url, |
| 808 const GURL& referrer, | 808 const content::Referrer& referrer, |
| 809 Profile* profile, | 809 Profile* profile, |
| 810 content::PageTransition transition, | 810 content::PageTransition transition, |
| 811 bool defer_load, | 811 bool defer_load, |
| 812 SiteInstance* instance) const; | 812 SiteInstance* instance) const; |
| 813 virtual bool CanDuplicateContentsAt(int index); | 813 virtual bool CanDuplicateContentsAt(int index); |
| 814 virtual void DuplicateContentsAt(int index); | 814 virtual void DuplicateContentsAt(int index); |
| 815 virtual void CloseFrameAfterDragSession(); | 815 virtual void CloseFrameAfterDragSession(); |
| 816 virtual void CreateHistoricalTab(TabContentsWrapper* contents); | 816 virtual void CreateHistoricalTab(TabContentsWrapper* contents); |
| 817 virtual bool RunUnloadListenerBeforeClosing(TabContentsWrapper* contents); | 817 virtual bool RunUnloadListenerBeforeClosing(TabContentsWrapper* contents); |
| 818 virtual bool CanCloseContents(std::vector<int>* indices); | 818 virtual bool CanCloseContents(std::vector<int>* indices); |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 | 1428 |
| 1429 scoped_refptr<FullscreenController> fullscreen_controller_; | 1429 scoped_refptr<FullscreenController> fullscreen_controller_; |
| 1430 | 1430 |
| 1431 // True if the browser window has been shown at least once. | 1431 // True if the browser window has been shown at least once. |
| 1432 bool window_has_shown_; | 1432 bool window_has_shown_; |
| 1433 | 1433 |
| 1434 DISALLOW_COPY_AND_ASSIGN(Browser); | 1434 DISALLOW_COPY_AND_ASSIGN(Browser); |
| 1435 }; | 1435 }; |
| 1436 | 1436 |
| 1437 #endif // CHROME_BROWSER_UI_BROWSER_H_ | 1437 #endif // CHROME_BROWSER_UI_BROWSER_H_ |
| OLD | NEW |