| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_H__ | 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H__ |
| 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H__ | 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H__ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 // Determine what drag actions are possible for the specified strip. | 111 // Determine what drag actions are possible for the specified strip. |
| 112 virtual int GetDragActions() const = 0; | 112 virtual int GetDragActions() const = 0; |
| 113 | 113 |
| 114 // Creates an appropriate TabContents for the given URL. This is handled by | 114 // Creates an appropriate TabContents for the given URL. This is handled by |
| 115 // the delegate since the TabContents may require special circumstances to | 115 // the delegate since the TabContents may require special circumstances to |
| 116 // exist for it to be constructed (e.g. a parent HWND). | 116 // exist for it to be constructed (e.g. a parent HWND). |
| 117 // If |defer_load| is true, the navigation controller doesn't load the url. | 117 // If |defer_load| is true, the navigation controller doesn't load the url. |
| 118 // If |instance| is not null, its process is used to render the tab. | 118 // If |instance| is not null, its process is used to render the tab. |
| 119 virtual TabContents* CreateTabContentsForURL( | 119 virtual TabContents* CreateTabContentsForURL( |
| 120 const GURL& url, | 120 const GURL& url, |
| 121 const GURL& referrer, |
| 121 Profile* profile, | 122 Profile* profile, |
| 122 PageTransition::Type transition, | 123 PageTransition::Type transition, |
| 123 bool defer_load, | 124 bool defer_load, |
| 124 SiteInstance* instance) const = 0; | 125 SiteInstance* instance) const = 0; |
| 125 | 126 |
| 126 // Show the web application context menu at the provided point. |p| is in | 127 // Show the web application context menu at the provided point. |p| is in |
| 127 // screen coordinate system. | 128 // screen coordinate system. |
| 128 virtual void ShowApplicationMenu(const gfx::Point& p) = 0; | 129 virtual void ShowApplicationMenu(const gfx::Point& p) = 0; |
| 129 | 130 |
| 130 // Return whether some contents can be duplicated. | 131 // Return whether some contents can be duplicated. |
| (...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 530 | 531 |
| 531 // Our observers. | 532 // Our observers. |
| 532 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; | 533 typedef ObserverList<TabStripModelObserver> TabStripModelObservers; |
| 533 TabStripModelObservers observers_; | 534 TabStripModelObservers observers_; |
| 534 | 535 |
| 535 DISALLOW_EVIL_CONSTRUCTORS(TabStripModel); | 536 DISALLOW_EVIL_CONSTRUCTORS(TabStripModel); |
| 536 }; | 537 }; |
| 537 | 538 |
| 538 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H__ | 539 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H__ |
| 539 | 540 |
| OLD | NEW |