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 CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 6 #define CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 // in the current front-most tab), unless |disposition| indicates the url | 54 // in the current front-most tab), unless |disposition| indicates the url |
55 // should be opened in a new tab or window. | 55 // should be opened in a new tab or window. |
56 // | 56 // |
57 // A NULL source indicates the current tab (callers should probably use | 57 // A NULL source indicates the current tab (callers should probably use |
58 // OpenURL() for these cases which does it for you). | 58 // OpenURL() for these cases which does it for you). |
59 virtual void OpenURLFromTab(TabContents* source, | 59 virtual void OpenURLFromTab(TabContents* source, |
60 const GURL& url, const GURL& referrer, | 60 const GURL& url, const GURL& referrer, |
61 WindowOpenDisposition disposition, | 61 WindowOpenDisposition disposition, |
62 PageTransition::Type transition) = 0; | 62 PageTransition::Type transition) = 0; |
63 | 63 |
64 // Opens a previous page. | |
65 virtual void GoBack(WindowOpenDisposition disposition); | |
Ben Goodger (Google)
2011/06/09 16:21:50
Where is this implemented? I don't see deltas to b
| |
66 | |
67 // Opens a next page. | |
68 virtual void GoForward(WindowOpenDisposition disposition); | |
69 | |
64 // Called to inform the delegate that the tab content's navigation state | 70 // Called to inform the delegate that the tab content's navigation state |
65 // changed. The |changed_flags| indicates the parts of the navigation state | 71 // changed. The |changed_flags| indicates the parts of the navigation state |
66 // that have been updated, and is any combination of the | 72 // that have been updated, and is any combination of the |
67 // |TabContents::InvalidateTypes| bits. | 73 // |TabContents::InvalidateTypes| bits. |
68 virtual void NavigationStateChanged(const TabContents* source, | 74 virtual void NavigationStateChanged(const TabContents* source, |
69 unsigned changed_flags) = 0; | 75 unsigned changed_flags) = 0; |
70 | 76 |
71 // Returns the set of headers to add to the navigation request. Use | 77 // Returns the set of headers to add to the navigation request. Use |
72 // net::HttpUtil::AppendHeaderIfMissing to build the set of headers. | 78 // net::HttpUtil::AppendHeaderIfMissing to build the set of headers. |
73 virtual std::string GetNavigationHeaders(const GURL& url); | 79 virtual std::string GetNavigationHeaders(const GURL& url); |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
309 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); | 315 virtual content::JavaScriptDialogCreator* GetJavaScriptDialogCreator(); |
310 | 316 |
311 // Invoked when a new renderer is created. | 317 // Invoked when a new renderer is created. |
312 virtual void RenderViewCreated(TabContents* source, RenderViewHost* host); | 318 virtual void RenderViewCreated(TabContents* source, RenderViewHost* host); |
313 | 319 |
314 protected: | 320 protected: |
315 virtual ~TabContentsDelegate(); | 321 virtual ~TabContentsDelegate(); |
316 }; | 322 }; |
317 | 323 |
318 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ | 324 #endif // CONTENT_BROWSER_TAB_CONTENTS_TAB_CONTENTS_DELEGATE_H_ |
OLD | NEW |