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 21 matching lines...) Expand all Loading... |
32 virtual Browser* CreateNewStripWithContents( | 32 virtual Browser* CreateNewStripWithContents( |
33 TabContentsWrapper* detached_contents, | 33 TabContentsWrapper* detached_contents, |
34 const gfx::Rect& window_bounds, | 34 const gfx::Rect& window_bounds, |
35 const DockInfo& dock_info, | 35 const DockInfo& dock_info, |
36 bool maximize); | 36 bool maximize); |
37 virtual int GetDragActions() const; | 37 virtual int GetDragActions() const; |
38 virtual TabContentsWrapper* CreateTabContentsForURL( | 38 virtual TabContentsWrapper* CreateTabContentsForURL( |
39 const GURL& url, | 39 const GURL& url, |
40 const GURL& referrer, | 40 const GURL& referrer, |
41 Profile* profile, | 41 Profile* profile, |
42 PageTransition::Type transition, | 42 content::PageTransition transition, |
43 bool defer_load, | 43 bool defer_load, |
44 SiteInstance* instance) const; | 44 SiteInstance* instance) const; |
45 virtual bool CanDuplicateContentsAt(int index); | 45 virtual bool CanDuplicateContentsAt(int index); |
46 virtual void DuplicateContentsAt(int index); | 46 virtual void DuplicateContentsAt(int index); |
47 virtual void CloseFrameAfterDragSession(); | 47 virtual void CloseFrameAfterDragSession(); |
48 virtual void CreateHistoricalTab(TabContentsWrapper* contents); | 48 virtual void CreateHistoricalTab(TabContentsWrapper* contents); |
49 virtual bool RunUnloadListenerBeforeClosing(TabContentsWrapper* contents); | 49 virtual bool RunUnloadListenerBeforeClosing(TabContentsWrapper* contents); |
50 virtual bool CanCloseContents(std::vector<int>* indices); | 50 virtual bool CanCloseContents(std::vector<int>* indices); |
51 virtual bool CanBookmarkAllTabs() const; | 51 virtual bool CanBookmarkAllTabs() const; |
52 virtual void BookmarkAllTabs(); | 52 virtual void BookmarkAllTabs(); |
(...skipping 27 matching lines...) Expand all Loading... |
80 | 80 |
81 private: | 81 private: |
82 TabHandlerDelegate* delegate_; | 82 TabHandlerDelegate* delegate_; |
83 | 83 |
84 scoped_ptr<TabStripModel> model_; | 84 scoped_ptr<TabStripModel> model_; |
85 | 85 |
86 DISALLOW_COPY_AND_ASSIGN(DefaultTabHandler); | 86 DISALLOW_COPY_AND_ASSIGN(DefaultTabHandler); |
87 }; | 87 }; |
88 | 88 |
89 #endif // CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ | 89 #endif // CHROME_BROWSER_TABS_DEFAULT_TAB_HANDLER_H_ |
OLD | NEW |