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/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 6483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6494 OnSetActive(false); | 6494 OnSetActive(false); |
6495 } | 6495 } |
6496 } | 6496 } |
6497 | 6497 |
6498 void RenderViewImpl::SetDeviceScaleFactorForTesting(float factor) { | 6498 void RenderViewImpl::SetDeviceScaleFactorForTesting(float factor) { |
6499 SetDeviceScaleFactor(factor); | 6499 SetDeviceScaleFactor(factor); |
6500 if (!auto_resize_mode_) | 6500 if (!auto_resize_mode_) |
6501 AutoResizeCompositor(); | 6501 AutoResizeCompositor(); |
6502 } | 6502 } |
6503 | 6503 |
| 6504 void RenderViewImpl::EnableAutoResizeForTesting(const gfx::Size& min_size, |
| 6505 const gfx::Size& max_size) { |
| 6506 OnEnableAutoResize(min_size, max_size); |
| 6507 } |
| 6508 |
| 6509 void RenderViewImpl::DisableAutoResizeForTesting(const gfx::Size& new_size) { |
| 6510 OnDisableAutoResize(new_size); |
| 6511 } |
| 6512 |
6504 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6513 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
6505 TransportDIB::Handle dib_handle) { | 6514 TransportDIB::Handle dib_handle) { |
6506 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6515 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
6507 RenderProcess::current()->ReleaseTransportDIB(dib); | 6516 RenderProcess::current()->ReleaseTransportDIB(dib); |
6508 } | 6517 } |
6509 | 6518 |
6510 void RenderViewImpl::DidCommitCompositorFrame() { | 6519 void RenderViewImpl::DidCommitCompositorFrame() { |
6511 RenderWidget::DidCommitCompositorFrame(); | 6520 RenderWidget::DidCommitCompositorFrame(); |
6512 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); | 6521 FOR_EACH_OBSERVER(RenderViewObserver, observers_, DidCommitCompositorFrame()); |
6513 } | 6522 } |
(...skipping 16 matching lines...) Expand all Loading... |
6530 WebURL url = icon_urls[i].iconURL(); | 6539 WebURL url = icon_urls[i].iconURL(); |
6531 if (!url.isEmpty()) | 6540 if (!url.isEmpty()) |
6532 urls.push_back(FaviconURL(url, | 6541 urls.push_back(FaviconURL(url, |
6533 ToFaviconType(icon_urls[i].iconType()))); | 6542 ToFaviconType(icon_urls[i].iconType()))); |
6534 } | 6543 } |
6535 SendUpdateFaviconURL(urls); | 6544 SendUpdateFaviconURL(urls); |
6536 } | 6545 } |
6537 | 6546 |
6538 | 6547 |
6539 } // namespace content | 6548 } // namespace content |
OLD | NEW |