Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: content/browser/tab_contents/tab_contents_delegate.h

Issue 6893046: added CTRL+Click and SHIFT+Click handler for context menu, Back and Forward. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: reflected comments. Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/disposition_utils.h ('k') | content/browser/tab_contents/tab_contents_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698