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_UI_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "content/browser/tab_contents/tab_contents_delegate.h" | 10 #include "content/browser/tab_contents/tab_contents_delegate.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // Calling this causes all following events sent from the | 30 // Calling this causes all following events sent from the |
31 // TabContents object to be ignored. It also makes all following | 31 // TabContents object to be ignored. It also makes all following |
32 // calls to profile() return NULL. | 32 // calls to profile() return NULL. |
33 void Detach(); | 33 void Detach(); |
34 | 34 |
35 // TabContentsDelegate declarations. | 35 // TabContentsDelegate declarations. |
36 | 36 |
37 // Deprecated. Use two-arguments variant instead. | 37 // Deprecated. Use two-arguments variant instead. |
38 // TODO(adriansc): Remove this method once refactoring changed all call sites. | 38 // TODO(adriansc): Remove this method once refactoring changed all call sites. |
39 virtual TabContents* OpenURLFromTab(TabContents* source, | 39 virtual TabContents* OpenURLFromTab( |
40 const GURL& url, | 40 TabContents* source, |
41 const GURL& referrer, | 41 const GURL& url, |
42 WindowOpenDisposition disposition, | 42 const GURL& referrer, |
43 PageTransition::Type transition) OVERRIDE; | 43 WindowOpenDisposition disposition, |
| 44 content::PageTransition transition) OVERRIDE; |
44 virtual TabContents* OpenURLFromTab(TabContents* source, | 45 virtual TabContents* OpenURLFromTab(TabContents* source, |
45 const OpenURLParams& params) OVERRIDE; | 46 const OpenURLParams& params) OVERRIDE; |
46 | 47 |
47 virtual void AddNewContents(TabContents* source, | 48 virtual void AddNewContents(TabContents* source, |
48 TabContents* new_contents, | 49 TabContents* new_contents, |
49 WindowOpenDisposition disposition, | 50 WindowOpenDisposition disposition, |
50 const gfx::Rect& initial_pos, | 51 const gfx::Rect& initial_pos, |
51 bool user_gesture); | 52 bool user_gesture); |
52 virtual bool IsPopup(const TabContents* source) const; | 53 virtual bool IsPopup(const TabContents* source) const; |
53 virtual bool ShouldAddNavigationToHistory( | 54 virtual bool ShouldAddNavigationToHistory( |
54 const history::HistoryAddPageArgs& add_page_args, | 55 const history::HistoryAddPageArgs& add_page_args, |
55 NavigationType::Type navigation_type); | 56 NavigationType::Type navigation_type); |
56 | 57 |
57 private: | 58 private: |
58 Profile* profile_; // Weak pointer. Always an original profile. | 59 Profile* profile_; // Weak pointer. Always an original profile. |
59 }; | 60 }; |
60 | 61 |
61 #endif // CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ | 62 #endif // CHROME_BROWSER_UI_WEBUI_HTML_DIALOG_TAB_CONTENTS_DELEGATE_H_ |
OLD | NEW |