| 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 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 5692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5703 } | 5703 } |
| 5704 | 5704 |
| 5705 void RenderViewImpl::OnClearFocusedNode() { | 5705 void RenderViewImpl::OnClearFocusedNode() { |
| 5706 if (webview()) | 5706 if (webview()) |
| 5707 webview()->clearFocusedNode(); | 5707 webview()->clearFocusedNode(); |
| 5708 } | 5708 } |
| 5709 | 5709 |
| 5710 void RenderViewImpl::OnSetBackground(const SkBitmap& background) { | 5710 void RenderViewImpl::OnSetBackground(const SkBitmap& background) { |
| 5711 if (webview()) | 5711 if (webview()) |
| 5712 webview()->setIsTransparent(!background.empty()); | 5712 webview()->setIsTransparent(!background.empty()); |
| 5713 if (web_layer_tree_view_) | |
| 5714 web_layer_tree_view_->setHasTransparentBackground(!background.empty()); | |
| 5715 | 5713 |
| 5716 SetBackground(background); | 5714 SetBackground(background); |
| 5717 } | 5715 } |
| 5718 | 5716 |
| 5719 void RenderViewImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) { | 5717 void RenderViewImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) { |
| 5720 if (accessibility_mode_ == new_mode) | 5718 if (accessibility_mode_ == new_mode) |
| 5721 return; | 5719 return; |
| 5722 accessibility_mode_ = new_mode; | 5720 accessibility_mode_ = new_mode; |
| 5723 if (renderer_accessibility_) { | 5721 if (renderer_accessibility_) { |
| 5724 delete renderer_accessibility_; | 5722 delete renderer_accessibility_; |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6554 } | 6552 } |
| 6555 #endif | 6553 #endif |
| 6556 | 6554 |
| 6557 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6555 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
| 6558 TransportDIB::Handle dib_handle) { | 6556 TransportDIB::Handle dib_handle) { |
| 6559 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6557 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
| 6560 RenderProcess::current()->ReleaseTransportDIB(dib); | 6558 RenderProcess::current()->ReleaseTransportDIB(dib); |
| 6561 } | 6559 } |
| 6562 | 6560 |
| 6563 } // namespace content | 6561 } // namespace content |
| OLD | NEW |