| 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 5634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5645 } | 5645 } |
| 5646 | 5646 |
| 5647 void RenderViewImpl::OnClearFocusedNode() { | 5647 void RenderViewImpl::OnClearFocusedNode() { |
| 5648 if (webview()) | 5648 if (webview()) |
| 5649 webview()->clearFocusedNode(); | 5649 webview()->clearFocusedNode(); |
| 5650 } | 5650 } |
| 5651 | 5651 |
| 5652 void RenderViewImpl::OnSetBackground(const SkBitmap& background) { | 5652 void RenderViewImpl::OnSetBackground(const SkBitmap& background) { |
| 5653 if (webview()) | 5653 if (webview()) |
| 5654 webview()->setIsTransparent(!background.empty()); | 5654 webview()->setIsTransparent(!background.empty()); |
| 5655 if (web_layer_tree_view_) |
| 5656 web_layer_tree_view_->setHasTransparentBackground(!background.empty()); |
| 5655 | 5657 |
| 5656 SetBackground(background); | 5658 SetBackground(background); |
| 5657 } | 5659 } |
| 5658 | 5660 |
| 5659 void RenderViewImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) { | 5661 void RenderViewImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) { |
| 5660 if (accessibility_mode_ == new_mode) | 5662 if (accessibility_mode_ == new_mode) |
| 5661 return; | 5663 return; |
| 5662 accessibility_mode_ = new_mode; | 5664 accessibility_mode_ = new_mode; |
| 5663 if (renderer_accessibility_) { | 5665 if (renderer_accessibility_) { |
| 5664 delete renderer_accessibility_; | 5666 delete renderer_accessibility_; |
| (...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6485 } | 6487 } |
| 6486 #endif | 6488 #endif |
| 6487 | 6489 |
| 6488 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6490 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
| 6489 TransportDIB::Handle dib_handle) { | 6491 TransportDIB::Handle dib_handle) { |
| 6490 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6492 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
| 6491 RenderProcess::current()->ReleaseTransportDIB(dib); | 6493 RenderProcess::current()->ReleaseTransportDIB(dib); |
| 6492 } | 6494 } |
| 6493 | 6495 |
| 6494 } // namespace content | 6496 } // namespace content |
| OLD | NEW |