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

Side by Side Diff: content/public/browser/page_navigator.h

Issue 12036003: Move window_open_disposition.h from webkit/ into ui/base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win Created 7 years, 11 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // PageNavigator defines an interface that can be used to express the user's 5 // PageNavigator defines an interface that can be used to express the user's
6 // intention to navigate to a particular URL. The implementing class should 6 // intention to navigate to a particular URL. The implementing class should
7 // perform the navigation. 7 // perform the navigation.
8 8
9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ 9 #ifndef CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_
10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ 10 #define CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_
11 11
12 #include <string> 12 #include <string>
13 13
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "content/public/browser/global_request_id.h" 15 #include "content/public/browser/global_request_id.h"
16 #include "content/public/common/page_transition_types.h" 16 #include "content/public/common/page_transition_types.h"
17 #include "content/public/common/referrer.h" 17 #include "content/public/common/referrer.h"
18 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
19 #include "webkit/glue/window_open_disposition.h" 19 #include "ui/base/window_open_disposition.h"
20 20
21 namespace content { 21 namespace content {
22 22
23 class WebContents; 23 class WebContents;
24 24
25 struct CONTENT_EXPORT OpenURLParams { 25 struct CONTENT_EXPORT OpenURLParams {
26 OpenURLParams(const GURL& url, 26 OpenURLParams(const GURL& url,
27 const Referrer& referrer, 27 const Referrer& referrer,
28 WindowOpenDisposition disposition, 28 WindowOpenDisposition disposition,
29 PageTransition transition, 29 PageTransition transition,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Opens a URL with the given disposition. The transition specifies how this 79 // Opens a URL with the given disposition. The transition specifies how this
80 // navigation should be recorded in the history system (for example, typed). 80 // navigation should be recorded in the history system (for example, typed).
81 // Returns the WebContents the URL is opened in, or NULL if the URL wasn't 81 // Returns the WebContents the URL is opened in, or NULL if the URL wasn't
82 // opened immediately. 82 // opened immediately.
83 virtual WebContents* OpenURL(const OpenURLParams& params) = 0; 83 virtual WebContents* OpenURL(const OpenURLParams& params) = 0;
84 }; 84 };
85 85
86 } 86 }
87 87
88 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_ 88 #endif // CONTENT_PUBLIC_BROWSER_PAGE_NAVIGATOR_H_
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_drag_dest_win.cc ('k') | content/public/browser/web_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698