| 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_DEFAULT_TAB_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ |
| 6 #define CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ | 6 #define CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 virtual TabContentsWrapper* AddBlankTabAt(int index, | 31 virtual TabContentsWrapper* AddBlankTabAt(int index, |
| 32 bool foreground) OVERRIDE; | 32 bool foreground) OVERRIDE; |
| 33 virtual Browser* CreateNewStripWithContents( | 33 virtual Browser* CreateNewStripWithContents( |
| 34 TabContentsWrapper* detached_contents, | 34 TabContentsWrapper* detached_contents, |
| 35 const gfx::Rect& window_bounds, | 35 const gfx::Rect& window_bounds, |
| 36 const DockInfo& dock_info, | 36 const DockInfo& dock_info, |
| 37 bool maximize) OVERRIDE; | 37 bool maximize) OVERRIDE; |
| 38 virtual int GetDragActions() const OVERRIDE; | 38 virtual int GetDragActions() const OVERRIDE; |
| 39 virtual TabContentsWrapper* CreateTabContentsForURL( | 39 virtual TabContentsWrapper* CreateTabContentsForURL( |
| 40 const GURL& url, | 40 const GURL& url, |
| 41 const GURL& referrer, | 41 const content::Referrer& referrer, |
| 42 Profile* profile, | 42 Profile* profile, |
| 43 content::PageTransition transition, | 43 content::PageTransition transition, |
| 44 bool defer_load, | 44 bool defer_load, |
| 45 SiteInstance* instance) const OVERRIDE; | 45 SiteInstance* instance) const OVERRIDE; |
| 46 virtual bool CanDuplicateContentsAt(int index) OVERRIDE; | 46 virtual bool CanDuplicateContentsAt(int index) OVERRIDE; |
| 47 virtual void DuplicateContentsAt(int index) OVERRIDE; | 47 virtual void DuplicateContentsAt(int index) OVERRIDE; |
| 48 virtual void CloseFrameAfterDragSession() OVERRIDE; | 48 virtual void CloseFrameAfterDragSession() OVERRIDE; |
| 49 virtual void CreateHistoricalTab(TabContentsWrapper* contents) OVERRIDE; | 49 virtual void CreateHistoricalTab(TabContentsWrapper* contents) OVERRIDE; |
| 50 virtual bool RunUnloadListenerBeforeClosing( | 50 virtual bool RunUnloadListenerBeforeClosing( |
| 51 TabContentsWrapper* contents) OVERRIDE; | 51 TabContentsWrapper* contents) OVERRIDE; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 TabHandlerDelegate* delegate_; | 85 TabHandlerDelegate* delegate_; |
| 86 | 86 |
| 87 scoped_ptr<TabStripModel> model_; | 87 scoped_ptr<TabStripModel> model_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(DefaultTabHandler); | 89 DISALLOW_COPY_AND_ASSIGN(DefaultTabHandler); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 #endif // CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ | 92 #endif // CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ |
| OLD | NEW |