| 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 5723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5734 } | 5734 } |
| 5735 | 5735 |
| 5736 void RenderViewImpl::OnClearFocusedNode() { | 5736 void RenderViewImpl::OnClearFocusedNode() { |
| 5737 if (webview()) | 5737 if (webview()) |
| 5738 webview()->clearFocusedNode(); | 5738 webview()->clearFocusedNode(); |
| 5739 } | 5739 } |
| 5740 | 5740 |
| 5741 void RenderViewImpl::OnSetBackground(const SkBitmap& background) { | 5741 void RenderViewImpl::OnSetBackground(const SkBitmap& background) { |
| 5742 if (webview()) | 5742 if (webview()) |
| 5743 webview()->setIsTransparent(!background.empty()); | 5743 webview()->setIsTransparent(!background.empty()); |
| 5744 if (web_layer_tree_view_) |
| 5745 web_layer_tree_view_->setHasTransparentBackground(!background.empty()); |
| 5744 | 5746 |
| 5745 SetBackground(background); | 5747 SetBackground(background); |
| 5746 } | 5748 } |
| 5747 | 5749 |
| 5748 void RenderViewImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) { | 5750 void RenderViewImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) { |
| 5749 if (accessibility_mode_ == new_mode) | 5751 if (accessibility_mode_ == new_mode) |
| 5750 return; | 5752 return; |
| 5751 accessibility_mode_ = new_mode; | 5753 accessibility_mode_ = new_mode; |
| 5752 if (renderer_accessibility_) { | 5754 if (renderer_accessibility_) { |
| 5753 delete renderer_accessibility_; | 5755 delete renderer_accessibility_; |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6583 } | 6585 } |
| 6584 #endif | 6586 #endif |
| 6585 | 6587 |
| 6586 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6588 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
| 6587 TransportDIB::Handle dib_handle) { | 6589 TransportDIB::Handle dib_handle) { |
| 6588 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6590 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
| 6589 RenderProcess::current()->ReleaseTransportDIB(dib); | 6591 RenderProcess::current()->ReleaseTransportDIB(dib); |
| 6590 } | 6592 } |
| 6591 | 6593 |
| 6592 } // namespace content | 6594 } // namespace content |
| OLD | NEW |