| 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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 legacy_window_destroyed_ = true; | 900 legacy_window_destroyed_ = true; |
| 901 } | 901 } |
| 902 #endif | 902 #endif |
| 903 | 903 |
| 904 void RenderWidgetHostViewAura::OnSwapCompositorFrame( | 904 void RenderWidgetHostViewAura::OnSwapCompositorFrame( |
| 905 uint32_t compositor_frame_sink_id, | 905 uint32_t compositor_frame_sink_id, |
| 906 cc::CompositorFrame frame) { | 906 cc::CompositorFrame frame) { |
| 907 TRACE_EVENT0("content", "RenderWidgetHostViewAura::OnSwapCompositorFrame"); | 907 TRACE_EVENT0("content", "RenderWidgetHostViewAura::OnSwapCompositorFrame"); |
| 908 | 908 |
| 909 last_scroll_offset_ = frame.metadata.root_scroll_offset; | 909 last_scroll_offset_ = frame.metadata.root_scroll_offset; |
| 910 if (!frame.delegated_frame_data) | 910 if (frame.render_pass_list.empty()) |
| 911 return; | 911 return; |
| 912 | 912 |
| 913 cc::Selection<gfx::SelectionBound> selection = frame.metadata.selection; | 913 cc::Selection<gfx::SelectionBound> selection = frame.metadata.selection; |
| 914 if (IsUseZoomForDSFEnabled()) { | 914 if (IsUseZoomForDSFEnabled()) { |
| 915 float viewportToDIPScale = 1.0f / current_device_scale_factor_; | 915 float viewportToDIPScale = 1.0f / current_device_scale_factor_; |
| 916 gfx::PointF start_edge_top = selection.start.edge_top(); | 916 gfx::PointF start_edge_top = selection.start.edge_top(); |
| 917 gfx::PointF start_edge_bottom = selection.start.edge_bottom(); | 917 gfx::PointF start_edge_bottom = selection.start.edge_bottom(); |
| 918 gfx::PointF end_edge_top = selection.end.edge_top(); | 918 gfx::PointF end_edge_top = selection.end.edge_top(); |
| 919 gfx::PointF end_edge_bottom = selection.end.edge_bottom(); | 919 gfx::PointF end_edge_bottom = selection.end.edge_bottom(); |
| 920 | 920 |
| (...skipping 1459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2380 | 2380 |
| 2381 void RenderWidgetHostViewAura::SetPopupChild( | 2381 void RenderWidgetHostViewAura::SetPopupChild( |
| 2382 RenderWidgetHostViewAura* popup_child_host_view) { | 2382 RenderWidgetHostViewAura* popup_child_host_view) { |
| 2383 popup_child_host_view_ = popup_child_host_view; | 2383 popup_child_host_view_ = popup_child_host_view; |
| 2384 event_handler_->SetPopupChild( | 2384 event_handler_->SetPopupChild( |
| 2385 popup_child_host_view, | 2385 popup_child_host_view, |
| 2386 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); | 2386 popup_child_host_view ? popup_child_host_view->event_handler() : nullptr); |
| 2387 } | 2387 } |
| 2388 | 2388 |
| 2389 } // namespace content | 2389 } // namespace content |
| OLD | NEW |