OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/ui/blocked_content/blocked_window_params.h" | 5 #include "chrome/browser/ui/blocked_content/blocked_window_params.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
| 8 #include "chrome/browser/ui/browser_navigator_params.h" |
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
9 #include "content/public/browser/render_process_host.h" | 10 #include "content/public/browser/render_process_host.h" |
10 #include "content/public/browser/web_contents.h" | 11 #include "content/public/browser/web_contents.h" |
11 #include "third_party/WebKit/public/web/WebWindowFeatures.h" | 12 #include "third_party/WebKit/public/web/WebWindowFeatures.h" |
12 #include "url/gurl.h" | 13 #include "url/gurl.h" |
13 | 14 |
14 BlockedWindowParams::BlockedWindowParams( | 15 BlockedWindowParams::BlockedWindowParams( |
15 const GURL& target_url, | 16 const GURL& target_url, |
16 const content::Referrer& referrer, | 17 const content::Referrer& referrer, |
17 WindowOpenDisposition disposition, | 18 WindowOpenDisposition disposition, |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 nav_params.window_bounds.set_y(features_.y); | 53 nav_params.window_bounds.set_y(features_.y); |
53 if (features_.widthSet) | 54 if (features_.widthSet) |
54 nav_params.window_bounds.set_width(features_.width); | 55 nav_params.window_bounds.set_width(features_.width); |
55 if (features_.heightSet) | 56 if (features_.heightSet) |
56 nav_params.window_bounds.set_height(features_.height); | 57 nav_params.window_bounds.set_height(features_.height); |
57 | 58 |
58 nav_params.disposition = disposition_; | 59 nav_params.disposition = disposition_; |
59 | 60 |
60 return nav_params; | 61 return nav_params; |
61 } | 62 } |
OLD | NEW |