| 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 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| (...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1621 UMA_HISTOGRAM_BOOLEAN("PrintPreview.InitiatedByScript", | 1621 UMA_HISTOGRAM_BOOLEAN("PrintPreview.InitiatedByScript", |
| 1622 frame->top() == frame); | 1622 frame->top() == frame); |
| 1623 | 1623 |
| 1624 // Logging whether the top frame is remote is sufficient in this case. If | 1624 // Logging whether the top frame is remote is sufficient in this case. If |
| 1625 // the top frame is local, the printing code will function correctly and | 1625 // the top frame is local, the printing code will function correctly and |
| 1626 // the frame itself will be printed, so the cases this histogram tracks is | 1626 // the frame itself will be printed, so the cases this histogram tracks is |
| 1627 // where printing of a subframe will fail as of now. | 1627 // where printing of a subframe will fail as of now. |
| 1628 UMA_HISTOGRAM_BOOLEAN("PrintPreview.OutOfProcessSubframe", | 1628 UMA_HISTOGRAM_BOOLEAN("PrintPreview.OutOfProcessSubframe", |
| 1629 frame->top()->isWebRemoteFrame()); | 1629 frame->top()->isWebRemoteFrame()); |
| 1630 | 1630 |
| 1631 FOR_EACH_OBSERVER(RenderViewObserver, observers_, | 1631 RenderFrameImpl::FromWebFrame(frame)->ScriptedPrint( |
| 1632 PrintPage(frame, input_handler().handling_input_event())); | 1632 input_handler().handling_input_event()); |
| 1633 } | 1633 } |
| 1634 | 1634 |
| 1635 bool RenderViewImpl::enumerateChosenDirectory( | 1635 bool RenderViewImpl::enumerateChosenDirectory( |
| 1636 const WebString& path, | 1636 const WebString& path, |
| 1637 WebFileChooserCompletion* chooser_completion) { | 1637 WebFileChooserCompletion* chooser_completion) { |
| 1638 int id = enumeration_completion_id_++; | 1638 int id = enumeration_completion_id_++; |
| 1639 enumeration_completions_[id] = chooser_completion; | 1639 enumeration_completions_[id] = chooser_completion; |
| 1640 return Send(new ViewHostMsg_EnumerateDirectory( | 1640 return Send(new ViewHostMsg_EnumerateDirectory( |
| 1641 GetRoutingID(), id, blink::WebStringToFilePath(path))); | 1641 GetRoutingID(), id, blink::WebStringToFilePath(path))); |
| 1642 } | 1642 } |
| (...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3019 if (IsUseZoomForDSFEnabled()) { | 3019 if (IsUseZoomForDSFEnabled()) { |
| 3020 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); | 3020 webview()->setZoomFactorForDeviceScaleFactor(device_scale_factor_); |
| 3021 } else { | 3021 } else { |
| 3022 webview()->setDeviceScaleFactor(device_scale_factor_); | 3022 webview()->setDeviceScaleFactor(device_scale_factor_); |
| 3023 } | 3023 } |
| 3024 webview()->settings()->setPreferCompositingToLCDTextEnabled( | 3024 webview()->settings()->setPreferCompositingToLCDTextEnabled( |
| 3025 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); | 3025 PreferCompositingToLCDText(compositor_deps_, device_scale_factor_)); |
| 3026 } | 3026 } |
| 3027 | 3027 |
| 3028 } // namespace content | 3028 } // namespace content |
| OLD | NEW |