| 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_TABS_TAB_STRIP_MODEL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_MODEL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_DELEGATE_H_ | 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_DELEGATE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "content/common/page_transition_types.h" | 9 #include "content/public/common/page_transition_types.h" |
| 10 | 10 |
| 11 class Browser; | 11 class Browser; |
| 12 class DockInfo; | 12 class DockInfo; |
| 13 class GURL; | 13 class GURL; |
| 14 class Profile; | 14 class Profile; |
| 15 class SiteInstance; | 15 class SiteInstance; |
| 16 class TabContents; | 16 class TabContents; |
| 17 class TabContentsWrapper; | 17 class TabContentsWrapper; |
| 18 namespace gfx { | 18 namespace gfx { |
| 19 class Rect; | 19 class Rect; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // Creates an appropriate TabContents for the given URL. This is handled by | 59 // Creates an appropriate TabContents for the given URL. This is handled by |
| 60 // the delegate since the TabContents may require special circumstances to | 60 // the delegate since the TabContents may require special circumstances to |
| 61 // exist for it to be constructed (e.g. a parent HWND). | 61 // exist for it to be constructed (e.g. a parent HWND). |
| 62 // If |defer_load| is true, the navigation controller doesn't load the url. | 62 // If |defer_load| is true, the navigation controller doesn't load the url. |
| 63 // If |instance| is not null, its process is used to render the tab. | 63 // If |instance| is not null, its process is used to render the tab. |
| 64 virtual TabContentsWrapper* CreateTabContentsForURL( | 64 virtual TabContentsWrapper* CreateTabContentsForURL( |
| 65 const GURL& url, | 65 const GURL& url, |
| 66 const GURL& referrer, | 66 const GURL& referrer, |
| 67 Profile* profile, | 67 Profile* profile, |
| 68 PageTransition::Type transition, | 68 content::PageTransition transition, |
| 69 bool defer_load, | 69 bool defer_load, |
| 70 SiteInstance* instance) const = 0; | 70 SiteInstance* instance) const = 0; |
| 71 | 71 |
| 72 // Returns whether some contents can be duplicated. | 72 // Returns whether some contents can be duplicated. |
| 73 virtual bool CanDuplicateContentsAt(int index) = 0; | 73 virtual bool CanDuplicateContentsAt(int index) = 0; |
| 74 | 74 |
| 75 // Duplicates the contents at the provided index and places it into its own | 75 // Duplicates the contents at the provided index and places it into its own |
| 76 // window. | 76 // window. |
| 77 virtual void DuplicateContentsAt(int index) = 0; | 77 virtual void DuplicateContentsAt(int index) = 0; |
| 78 | 78 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 virtual bool CanCloseTab() const = 0; | 113 virtual bool CanCloseTab() const = 0; |
| 114 | 114 |
| 115 // Returns true if the tab strip can use large icons. | 115 // Returns true if the tab strip can use large icons. |
| 116 virtual bool LargeIconsPermitted() const = 0; | 116 virtual bool LargeIconsPermitted() const = 0; |
| 117 | 117 |
| 118 protected: | 118 protected: |
| 119 virtual ~TabStripModelDelegate() {} | 119 virtual ~TabStripModelDelegate() {} |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_DELEGATE_H_ | 122 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_DELEGATE_H_ |
| OLD | NEW |