| 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 1497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1508 history_list_offset_ = history_offset; | 1508 history_list_offset_ = history_offset; |
| 1509 history_list_length_ = history_length; | 1509 history_list_length_ = history_length; |
| 1510 } | 1510 } |
| 1511 | 1511 |
| 1512 void RenderViewImpl::OnSetInitialFocus(bool reverse) { | 1512 void RenderViewImpl::OnSetInitialFocus(bool reverse) { |
| 1513 if (!webview()) | 1513 if (!webview()) |
| 1514 return; | 1514 return; |
| 1515 webview()->setInitialFocus(reverse); | 1515 webview()->setInitialFocus(reverse); |
| 1516 } | 1516 } |
| 1517 | 1517 |
| 1518 #if defined(OS_MACOSX) | |
| 1519 void RenderViewImpl::OnSetInLiveResize(bool in_live_resize) { | |
| 1520 if (!webview()) | |
| 1521 return; | |
| 1522 if (in_live_resize) | |
| 1523 webview()->willStartLiveResize(); | |
| 1524 else | |
| 1525 webview()->willEndLiveResize(); | |
| 1526 } | |
| 1527 #endif | |
| 1528 | |
| 1529 /////////////////////////////////////////////////////////////////////////////// | 1518 /////////////////////////////////////////////////////////////////////////////// |
| 1530 | 1519 |
| 1531 void RenderViewImpl::SendUpdateState() { | 1520 void RenderViewImpl::SendUpdateState() { |
| 1532 // We don't use this path in OOPIF-enabled modes. | 1521 // We don't use this path in OOPIF-enabled modes. |
| 1533 DCHECK(!SiteIsolationPolicy::UseSubframeNavigationEntries()); | 1522 DCHECK(!SiteIsolationPolicy::UseSubframeNavigationEntries()); |
| 1534 | 1523 |
| 1535 HistoryEntry* entry = history_controller_->GetCurrentEntry(); | 1524 HistoryEntry* entry = history_controller_->GetCurrentEntry(); |
| 1536 if (!entry) | 1525 if (!entry) |
| 1537 return; | 1526 return; |
| 1538 | 1527 |
| (...skipping 2013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3552 if (IsUseZoomForDSFEnabled()) { | 3541 if (IsUseZoomForDSFEnabled()) { |
| 3553 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); | 3542 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); |
| 3554 } else { | 3543 } else { |
| 3555 webview()->setDeviceScaleFactor(device_scale_factor_); | 3544 webview()->setDeviceScaleFactor(device_scale_factor_); |
| 3556 } | 3545 } |
| 3557 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 3546 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
| 3558 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 3547 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
| 3559 } | 3548 } |
| 3560 | 3549 |
| 3561 } // namespace content | 3550 } // namespace content |
| OLD | NEW |