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_widget.h" | 5 #include "content/renderer/render_widget.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
895 // The UpdateTextInputState can result in further layout and possibly | 895 // The UpdateTextInputState can result in further layout and possibly |
896 // enable GPU acceleration so they need to be called before any painting | 896 // enable GPU acceleration so they need to be called before any painting |
897 // is done. | 897 // is done. |
898 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); | 898 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); |
899 UpdateSelectionBounds(); | 899 UpdateSelectionBounds(); |
900 | 900 |
901 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, | 901 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, |
902 WillBeginCompositorFrame()); | 902 WillBeginCompositorFrame()); |
903 } | 903 } |
904 | 904 |
| 905 void RenderWidget::ReportFixedRasterScaleUseCounters( |
| 906 bool has_blurry_content, |
| 907 bool has_potential_performance_regression) { |
| 908 webwidget_->reportFixedRasterScaleUseCounters( |
| 909 has_blurry_content, has_potential_performance_regression); |
| 910 } |
| 911 |
905 /////////////////////////////////////////////////////////////////////////////// | 912 /////////////////////////////////////////////////////////////////////////////// |
906 // RenderWidgetInputHandlerDelegate | 913 // RenderWidgetInputHandlerDelegate |
907 | 914 |
908 void RenderWidget::FocusChangeComplete() { | 915 void RenderWidget::FocusChangeComplete() { |
909 if (owner_delegate_) | 916 if (owner_delegate_) |
910 owner_delegate_->RenderWidgetFocusChangeComplete(); | 917 owner_delegate_->RenderWidgetFocusChangeComplete(); |
911 } | 918 } |
912 | 919 |
913 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { | 920 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { |
914 if (owner_delegate_) | 921 if (owner_delegate_) |
(...skipping 1159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2074 } | 2081 } |
2075 | 2082 |
2076 float RenderWidget::GetOriginalDeviceScaleFactor() const { | 2083 float RenderWidget::GetOriginalDeviceScaleFactor() const { |
2077 return | 2084 return |
2078 screen_metrics_emulator_ ? | 2085 screen_metrics_emulator_ ? |
2079 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : | 2086 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : |
2080 device_scale_factor_; | 2087 device_scale_factor_; |
2081 } | 2088 } |
2082 | 2089 |
2083 } // namespace content | 2090 } // namespace content |
OLD | NEW |