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

Side by Side Diff: chrome/browser/constrained_window.h

Issue 8186: Plumb the referrer throughout the OpenURL APIs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 1 month 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
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | chrome/browser/debugger/debugger_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_CONSTRAINED_WINDOW_H__ 5 #ifndef CHROME_BROWSER_CONSTRAINED_WINDOW_H__
6 #define CHROME_BROWSER_CONSTRAINED_WINDOW_H__ 6 #define CHROME_BROWSER_CONSTRAINED_WINDOW_H__
7 7
8 #include "chrome/common/page_transition_types.h" 8 #include "chrome/common/page_transition_types.h"
9 #include "webkit/glue/window_open_disposition.h" 9 #include "webkit/glue/window_open_disposition.h"
10 10
(...skipping 23 matching lines...) Expand all
34 // lets the delegate decide what to do. 34 // lets the delegate decide what to do.
35 virtual void AddNewContents(ConstrainedWindow* window, 35 virtual void AddNewContents(ConstrainedWindow* window,
36 TabContents* new_contents, 36 TabContents* new_contents,
37 WindowOpenDisposition disposition, 37 WindowOpenDisposition disposition,
38 const gfx::Rect& initial_pos, 38 const gfx::Rect& initial_pos,
39 bool user_gesture) = 0; 39 bool user_gesture) = 0;
40 40
41 // Called to open a URL in a the specified manner. 41 // Called to open a URL in a the specified manner.
42 virtual void OpenURL(ConstrainedWindow* window, 42 virtual void OpenURL(ConstrainedWindow* window,
43 const GURL& url, 43 const GURL& url,
44 const GURL& referrer,
44 WindowOpenDisposition disposition, 45 WindowOpenDisposition disposition,
45 PageTransition::Type transition) = 0; 46 PageTransition::Type transition) = 0;
46 47
47 // Called when the window is about to be closed. 48 // Called when the window is about to be closed.
48 virtual void WillClose(ConstrainedWindow* window) = 0; 49 virtual void WillClose(ConstrainedWindow* window) = 0;
49 50
50 // Called when the window's contents should be detached into a top-level 51 // Called when the window's contents should be detached into a top-level
51 // window. The delegate is expected to have re-parented the TabContents by 52 // window. The delegate is expected to have re-parented the TabContents by
52 // the time this method returns. 53 // the time this method returns.
53 // |contents_bounds| is the bounds of the TabContents after the detach 54 // |contents_bounds| is the bounds of the TabContents after the detach
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void UpdateWindowTitle() = 0; 130 virtual void UpdateWindowTitle() = 0;
130 131
131 // Returns the current display rectangle (relative to its 132 // Returns the current display rectangle (relative to its
132 // parent). This method is only called from the unit tests to check 133 // parent). This method is only called from the unit tests to check
133 // the location/size of a constrained window. 134 // the location/size of a constrained window.
134 virtual const gfx::Rect& GetCurrentBounds() const = 0; 135 virtual const gfx::Rect& GetCurrentBounds() const = 0;
135 }; 136 };
136 137
137 #endif // #ifndef CHROME_BROWSER_CONSTRAINED_WINDOW_H__ 138 #endif // #ifndef CHROME_BROWSER_CONSTRAINED_WINDOW_H__
138 139
OLDNEW
« no previous file with comments | « chrome/browser/browser_init.cc ('k') | chrome/browser/debugger/debugger_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698