| 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 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2241 | 2241 |
| 2242 RenderWidget::OnResize(params); | 2242 RenderWidget::OnResize(params); |
| 2243 | 2243 |
| 2244 if (old_visible_viewport_size != visible_viewport_size_) | 2244 if (old_visible_viewport_size != visible_viewport_size_) |
| 2245 has_scrolled_focused_editable_node_into_rect_ = false; | 2245 has_scrolled_focused_editable_node_into_rect_ = false; |
| 2246 } | 2246 } |
| 2247 | 2247 |
| 2248 void RenderViewImpl::OnSetBackgroundOpaque(bool opaque) { | 2248 void RenderViewImpl::OnSetBackgroundOpaque(bool opaque) { |
| 2249 if (frame_widget_) | 2249 if (frame_widget_) |
| 2250 frame_widget_->setIsTransparent(!opaque); | 2250 frame_widget_->setIsTransparent(!opaque); |
| 2251 if (compositor_) | |
| 2252 compositor_->setHasTransparentBackground(!opaque); | |
| 2253 } | 2251 } |
| 2254 | 2252 |
| 2255 void RenderViewImpl::OnSetActive(bool active) { | 2253 void RenderViewImpl::OnSetActive(bool active) { |
| 2256 if (webview()) | 2254 if (webview()) |
| 2257 webview()->setIsActive(active); | 2255 webview()->setIsActive(active); |
| 2258 } | 2256 } |
| 2259 | 2257 |
| 2260 blink::WebWidget* RenderViewImpl::GetWebWidget() const { | 2258 blink::WebWidget* RenderViewImpl::GetWebWidget() const { |
| 2261 if (frame_widget_) | 2259 if (frame_widget_) |
| 2262 return frame_widget_; | 2260 return frame_widget_; |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2720 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); | 2718 INPUT_EVENT_ACK_STATE_NOT_CONSUMED); |
| 2721 } | 2719 } |
| 2722 | 2720 |
| 2723 std::unique_ptr<InputEventAck> ack( | 2721 std::unique_ptr<InputEventAck> ack( |
| 2724 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), | 2722 new InputEventAck(InputEventAckSource::MAIN_THREAD, input_event->type(), |
| 2725 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); | 2723 INPUT_EVENT_ACK_STATE_NOT_CONSUMED)); |
| 2726 OnInputEventAck(std::move(ack)); | 2724 OnInputEventAck(std::move(ack)); |
| 2727 } | 2725 } |
| 2728 | 2726 |
| 2729 } // namespace content | 2727 } // namespace content |
| OLD | NEW |