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_widget_host_view_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 device_scale_factor_(0.0f), | 384 device_scale_factor_(0.0f), |
385 last_active_widget_process_id_(ChildProcessHost::kInvalidUniqueID), | 385 last_active_widget_process_id_(ChildProcessHost::kInvalidUniqueID), |
386 last_active_widget_routing_id_(MSG_ROUTING_NONE), | 386 last_active_widget_routing_id_(MSG_ROUTING_NONE), |
387 event_handler_(new RenderWidgetHostViewEventHandler(host_, this, this)), | 387 event_handler_(new RenderWidgetHostViewEventHandler(host_, this, this)), |
388 weak_ptr_factory_(this) { | 388 weak_ptr_factory_(this) { |
389 // GuestViews have two RenderWidgetHostViews and so we need to make sure | 389 // GuestViews have two RenderWidgetHostViews and so we need to make sure |
390 // we don't have FrameSinkId collisions. | 390 // we don't have FrameSinkId collisions. |
391 ImageTransportFactory* factory = ImageTransportFactory::GetInstance(); | 391 ImageTransportFactory* factory = ImageTransportFactory::GetInstance(); |
392 cc::FrameSinkId frame_sink_id = | 392 cc::FrameSinkId frame_sink_id = |
393 is_guest_view_hack_ | 393 is_guest_view_hack_ |
394 ? factory->GetContextFactory()->AllocateFrameSinkId() | 394 ? factory->GetContextFactoryPrivate()->AllocateFrameSinkId() |
395 : cc::FrameSinkId( | 395 : cc::FrameSinkId( |
396 base::checked_cast<uint32_t>(host_->GetProcess()->GetID()), | 396 base::checked_cast<uint32_t>(host_->GetProcess()->GetID()), |
397 base::checked_cast<uint32_t>(host_->GetRoutingID())); | 397 base::checked_cast<uint32_t>(host_->GetRoutingID())); |
398 delegated_frame_host_ = | 398 delegated_frame_host_ = |
399 base::MakeUnique<DelegatedFrameHost>(frame_sink_id, this); | 399 base::MakeUnique<DelegatedFrameHost>(frame_sink_id, this); |
400 | 400 |
401 if (!is_guest_view_hack_) | 401 if (!is_guest_view_hack_) |
402 host_->SetView(this); | 402 host_->SetView(this); |
403 | 403 |
404 // Let the page-level input event router know about our surface ID | 404 // Let the page-level input event router know about our surface ID |
(...skipping 1989 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2394 | 2394 |
2395 void RenderWidgetHostViewAura::SetPopupChild( | 2395 void RenderWidgetHostViewAura::SetPopupChild( |
2396 RenderWidgetHostViewAura* popup_child_host_view) { | 2396 RenderWidgetHostViewAura* popup_child_host_view) { |
2397 popup_child_host_view_ = popup_child_host_view; | 2397 popup_child_host_view_ = popup_child_host_view; |
2398 event_handler_->SetPopupChild( | 2398 event_handler_->SetPopupChild( |
2399 popup_child_host_view, | 2399 popup_child_host_view, |
2400 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); | 2400 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); |
2401 } | 2401 } |
2402 | 2402 |
2403 } // namespace content | 2403 } // namespace content |
OLD | NEW |