| 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 5646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5657 } | 5657 } |
| 5658 | 5658 |
| 5659 void RenderViewImpl::OnClearFocusedNode() { | 5659 void RenderViewImpl::OnClearFocusedNode() { |
| 5660 if (webview()) | 5660 if (webview()) |
| 5661 webview()->clearFocusedNode(); | 5661 webview()->clearFocusedNode(); |
| 5662 } | 5662 } |
| 5663 | 5663 |
| 5664 void RenderViewImpl::OnSetBackground(const SkBitmap& background) { | 5664 void RenderViewImpl::OnSetBackground(const SkBitmap& background) { |
| 5665 if (webview()) | 5665 if (webview()) |
| 5666 webview()->setIsTransparent(!background.empty()); | 5666 webview()->setIsTransparent(!background.empty()); |
| 5667 if (web_layer_tree_view_) |
| 5668 web_layer_tree_view_->setHasTransparentBackground(!background.empty()); |
| 5667 | 5669 |
| 5668 SetBackground(background); | 5670 SetBackground(background); |
| 5669 } | 5671 } |
| 5670 | 5672 |
| 5671 void RenderViewImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) { | 5673 void RenderViewImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) { |
| 5672 if (accessibility_mode_ == new_mode) | 5674 if (accessibility_mode_ == new_mode) |
| 5673 return; | 5675 return; |
| 5674 accessibility_mode_ = new_mode; | 5676 accessibility_mode_ = new_mode; |
| 5675 if (renderer_accessibility_) { | 5677 if (renderer_accessibility_) { |
| 5676 delete renderer_accessibility_; | 5678 delete renderer_accessibility_; |
| (...skipping 829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6506 } | 6508 } |
| 6507 #endif | 6509 #endif |
| 6508 | 6510 |
| 6509 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6511 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
| 6510 TransportDIB::Handle dib_handle) { | 6512 TransportDIB::Handle dib_handle) { |
| 6511 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6513 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
| 6512 RenderProcess::current()->ReleaseTransportDIB(dib); | 6514 RenderProcess::current()->ReleaseTransportDIB(dib); |
| 6513 } | 6515 } |
| 6514 | 6516 |
| 6515 } // namespace content | 6517 } // namespace content |
| OLD | NEW |