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

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

Issue 2921753002: NOT YET READY: Making chrome.windows.create establish an actual "opener" relationship.
Patch Set: Adding setSelfAsOpener parameter. Created 3 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
« no previous file with comments | « content/public/browser/page_navigator.h ('k') | no next file » | 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) 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 #include "content/public/browser/page_navigator.h" 5 #include "content/public/browser/page_navigator.h"
6 6
7 namespace content { 7 namespace content {
8 8
9 OpenURLParams::OpenURLParams(const GURL& url, 9 OpenURLParams::OpenURLParams(const GURL& url,
10 const Referrer& referrer, 10 const Referrer& referrer,
11 WindowOpenDisposition disposition, 11 WindowOpenDisposition disposition,
12 ui::PageTransition transition, 12 ui::PageTransition transition,
13 bool is_renderer_initiated) 13 bool is_renderer_initiated)
14 : url(url), 14 : url(url),
15 referrer(referrer), 15 referrer(referrer),
16 uses_post(false), 16 uses_post(false),
17 frame_tree_node_id(-1), 17 frame_tree_node_id(-1),
18 disposition(disposition), 18 disposition(disposition),
19 force_new_process_for_new_contents(false),
20 transition(transition), 19 transition(transition),
21 is_renderer_initiated(is_renderer_initiated), 20 is_renderer_initiated(is_renderer_initiated),
22 should_replace_current_entry(false), 21 should_replace_current_entry(false),
23 user_gesture(!is_renderer_initiated), 22 user_gesture(!is_renderer_initiated),
24 started_from_context_menu(false) {} 23 started_from_context_menu(false) {}
25 24
26 OpenURLParams::OpenURLParams(const GURL& url, 25 OpenURLParams::OpenURLParams(const GURL& url,
27 const Referrer& referrer, 26 const Referrer& referrer,
28 WindowOpenDisposition disposition, 27 WindowOpenDisposition disposition,
29 ui::PageTransition transition, 28 ui::PageTransition transition,
30 bool is_renderer_initiated, 29 bool is_renderer_initiated,
31 bool started_from_context_menu) 30 bool started_from_context_menu)
32 : url(url), 31 : url(url),
33 referrer(referrer), 32 referrer(referrer),
34 uses_post(false), 33 uses_post(false),
35 frame_tree_node_id(-1), 34 frame_tree_node_id(-1),
36 disposition(disposition), 35 disposition(disposition),
37 force_new_process_for_new_contents(false),
38 transition(transition), 36 transition(transition),
39 is_renderer_initiated(is_renderer_initiated), 37 is_renderer_initiated(is_renderer_initiated),
40 should_replace_current_entry(false), 38 should_replace_current_entry(false),
41 user_gesture(!is_renderer_initiated), 39 user_gesture(!is_renderer_initiated),
42 started_from_context_menu(started_from_context_menu) {} 40 started_from_context_menu(started_from_context_menu) {}
43 41
44 OpenURLParams::OpenURLParams(const GURL& url, 42 OpenURLParams::OpenURLParams(const GURL& url,
45 const Referrer& referrer, 43 const Referrer& referrer,
46 int frame_tree_node_id, 44 int frame_tree_node_id,
47 WindowOpenDisposition disposition, 45 WindowOpenDisposition disposition,
48 ui::PageTransition transition, 46 ui::PageTransition transition,
49 bool is_renderer_initiated) 47 bool is_renderer_initiated)
50 : url(url), 48 : url(url),
51 referrer(referrer), 49 referrer(referrer),
52 uses_post(false), 50 uses_post(false),
53 frame_tree_node_id(frame_tree_node_id), 51 frame_tree_node_id(frame_tree_node_id),
54 disposition(disposition), 52 disposition(disposition),
55 force_new_process_for_new_contents(false),
56 transition(transition), 53 transition(transition),
57 is_renderer_initiated(is_renderer_initiated), 54 is_renderer_initiated(is_renderer_initiated),
58 should_replace_current_entry(false), 55 should_replace_current_entry(false),
59 user_gesture(!is_renderer_initiated), 56 user_gesture(!is_renderer_initiated),
60 started_from_context_menu(false) {} 57 started_from_context_menu(false) {}
61 58
62 OpenURLParams::OpenURLParams() 59 OpenURLParams::OpenURLParams()
63 : uses_post(false), 60 : uses_post(false),
64 frame_tree_node_id(-1), 61 frame_tree_node_id(-1),
65 disposition(WindowOpenDisposition::UNKNOWN), 62 disposition(WindowOpenDisposition::UNKNOWN),
66 force_new_process_for_new_contents(false),
67 transition(ui::PAGE_TRANSITION_LINK), 63 transition(ui::PAGE_TRANSITION_LINK),
68 is_renderer_initiated(false), 64 is_renderer_initiated(false),
69 should_replace_current_entry(false), 65 should_replace_current_entry(false),
70 user_gesture(true), 66 user_gesture(true),
71 started_from_context_menu(false) {} 67 started_from_context_menu(false) {}
72 68
73 OpenURLParams::OpenURLParams(const OpenURLParams& other) = default; 69 OpenURLParams::OpenURLParams(const OpenURLParams& other) = default;
74 70
75 OpenURLParams::~OpenURLParams() { 71 OpenURLParams::~OpenURLParams() {
76 } 72 }
77 73
78 } // namespace content 74 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/page_navigator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698