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