Chromium Code Reviews| 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/browser/renderer_host/render_view_host_impl.h" | 5 #include "content/browser/renderer_host/render_view_host_impl.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 972 WindowOpenDisposition disposition, | 972 WindowOpenDisposition disposition, |
| 973 const gfx::Rect& initial_rect, | 973 const gfx::Rect& initial_rect, |
| 974 bool user_gesture) { | 974 bool user_gesture) { |
| 975 delegate_->ShowCreatedWindow(route_id, disposition, initial_rect, | 975 delegate_->ShowCreatedWindow(route_id, disposition, initial_rect, |
| 976 user_gesture); | 976 user_gesture); |
| 977 Send(new ViewMsg_Move_ACK(route_id)); | 977 Send(new ViewMsg_Move_ACK(route_id)); |
| 978 } | 978 } |
| 979 | 979 |
| 980 void RenderViewHostImpl::OnShowWidget(int route_id, | 980 void RenderViewHostImpl::OnShowWidget(int route_id, |
| 981 const gfx::Rect& initial_rect) { | 981 const gfx::Rect& initial_rect) { |
| 982 if (is_active_) | 982 if (delegate_->GetFrameTree() |
| 983 ->root() | |
| 984 ->render_manager() | |
| 985 ->current_host() | |
| 986 ->is_active()) | |
|
nasko
2016/03/17 17:25:45
Is this the correct check to make here? I think th
kenrb
2016/03/17 18:59:48
If the is_active_ bit is never false on a top-leve
nasko
2016/03/17 19:10:46
Oops, I've read it current_frame_host. I still thi
kenrb
2016/03/17 20:00:06
Possibly it could be used for some kind of UI redr
| |
| 983 delegate_->ShowCreatedWidget(route_id, initial_rect); | 987 delegate_->ShowCreatedWidget(route_id, initial_rect); |
| 984 Send(new ViewMsg_Move_ACK(route_id)); | 988 Send(new ViewMsg_Move_ACK(route_id)); |
| 985 } | 989 } |
| 986 | 990 |
| 987 void RenderViewHostImpl::OnShowFullscreenWidget(int route_id) { | 991 void RenderViewHostImpl::OnShowFullscreenWidget(int route_id) { |
| 988 if (is_active_) | 992 if (is_active_) |
| 989 delegate_->ShowCreatedFullscreenWidget(route_id); | 993 delegate_->ShowCreatedFullscreenWidget(route_id); |
| 990 Send(new ViewMsg_Move_ACK(route_id)); | 994 Send(new ViewMsg_Move_ACK(route_id)); |
| 991 } | 995 } |
| 992 | 996 |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1354 } else { | 1358 } else { |
| 1355 render_view_ready_on_process_launch_ = true; | 1359 render_view_ready_on_process_launch_ = true; |
| 1356 } | 1360 } |
| 1357 } | 1361 } |
| 1358 | 1362 |
| 1359 void RenderViewHostImpl::RenderViewReady() { | 1363 void RenderViewHostImpl::RenderViewReady() { |
| 1360 delegate_->RenderViewReady(this); | 1364 delegate_->RenderViewReady(this); |
| 1361 } | 1365 } |
| 1362 | 1366 |
| 1363 } // namespace content | 1367 } // namespace content |
| OLD | NEW |