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 24 matching lines...) Expand all Loading... |
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 content::Referrer& 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 content::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; |
52 virtual bool CanCloseContents(std::vector<int>* indices) OVERRIDE; | 52 virtual bool CanCloseContents(std::vector<int>* indices) OVERRIDE; |
53 virtual bool CanBookmarkAllTabs() const OVERRIDE; | 53 virtual bool CanBookmarkAllTabs() const OVERRIDE; |
54 virtual void BookmarkAllTabs() OVERRIDE; | 54 virtual void BookmarkAllTabs() OVERRIDE; |
55 virtual bool CanCloseTab() const OVERRIDE; | 55 virtual bool CanCloseTab() const OVERRIDE; |
(...skipping 27 matching lines...) Expand all 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 |