| OLD | NEW |
| 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/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 1432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1443 } | 1443 } |
| 1444 params->features = ConvertWebWindowFeaturesToMojoWindowFeatures(features); | 1444 params->features = ConvertWebWindowFeaturesToMojoWindowFeatures(features); |
| 1445 | 1445 |
| 1446 // We preserve this information before sending the message since |params| is | 1446 // We preserve this information before sending the message since |params| is |
| 1447 // moved on send. | 1447 // moved on send. |
| 1448 bool is_background_tab = | 1448 bool is_background_tab = |
| 1449 params->disposition == WindowOpenDisposition::NEW_BACKGROUND_TAB; | 1449 params->disposition == WindowOpenDisposition::NEW_BACKGROUND_TAB; |
| 1450 bool opened_by_user_gesture = params->user_gesture; | 1450 bool opened_by_user_gesture = params->user_gesture; |
| 1451 | 1451 |
| 1452 mojom::CreateNewWindowReplyPtr reply; | 1452 mojom::CreateNewWindowReplyPtr reply; |
| 1453 RenderThreadImpl::current_render_message_filter()->CreateNewWindow( | 1453 RenderThreadImpl::current_render_message_filter_ui()->CreateNewWindow( |
| 1454 std::move(params), &reply); | 1454 std::move(params), &reply); |
| 1455 if (reply->route_id == MSG_ROUTING_NONE) | 1455 if (reply->route_id == MSG_ROUTING_NONE) |
| 1456 return nullptr; | 1456 return nullptr; |
| 1457 | 1457 |
| 1458 WebUserGestureIndicator::ConsumeUserGesture(); | 1458 WebUserGestureIndicator::ConsumeUserGesture(); |
| 1459 | 1459 |
| 1460 // While this view may be a background extension page, it can spawn a visible | 1460 // While this view may be a background extension page, it can spawn a visible |
| 1461 // render view. So we just assume that the new one is not another background | 1461 // render view. So we just assume that the new one is not another background |
| 1462 // page instead of passing on our own value. | 1462 // page instead of passing on our own value. |
| 1463 // TODO(vangelis): Can we tell if the new view will be a background page? | 1463 // TODO(vangelis): Can we tell if the new view will be a background page? |
| (...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2674 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 2674 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
| 2675 } | 2675 } |
| 2676 | 2676 |
| 2677 std::unique_ptr<InputEventAck> ack(new InputEventAck( | 2677 std::unique_ptr<InputEventAck> ack(new InputEventAck( |
| 2678 InputEventAckSource::MAIN_THREAD, input_event->GetType(), | 2678 InputEventAckSource::MAIN_THREAD, input_event->GetType(), |
| 2679 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 2679 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
| 2680 OnInputEventAck(std::move(ack)); | 2680 OnInputEventAck(std::move(ack)); |
| 2681 } | 2681 } |
| 2682 | 2682 |
| 2683 } // namespace content | 2683 } // namespace content |
| OLD | NEW |