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 897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 // The UpdateTextInputState can result in further layout and possibly | 908 // The UpdateTextInputState can result in further layout and possibly |
909 // enable GPU acceleration so they need to be called before any painting | 909 // enable GPU acceleration so they need to be called before any painting |
910 // is done. | 910 // is done. |
911 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); | 911 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); |
912 UpdateSelectionBounds(); | 912 UpdateSelectionBounds(); |
913 | 913 |
914 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, | 914 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, |
915 WillBeginCompositorFrame()); | 915 WillBeginCompositorFrame()); |
916 } | 916 } |
917 | 917 |
| 918 void RenderWidget::ReportFixedRasterScaleUseCounters( |
| 919 bool has_blurry_content, |
| 920 bool has_potential_performance_regression) { |
| 921 webwidget_->reportFixedRasterScaleUseCounters( |
| 922 has_blurry_content, has_potential_performance_regression); |
| 923 } |
| 924 |
918 /////////////////////////////////////////////////////////////////////////////// | 925 /////////////////////////////////////////////////////////////////////////////// |
919 // RenderWidgetInputHandlerDelegate | 926 // RenderWidgetInputHandlerDelegate |
920 | 927 |
921 void RenderWidget::FocusChangeComplete() { | 928 void RenderWidget::FocusChangeComplete() { |
922 if (owner_delegate_) | 929 if (owner_delegate_) |
923 owner_delegate_->RenderWidgetFocusChangeComplete(); | 930 owner_delegate_->RenderWidgetFocusChangeComplete(); |
924 } | 931 } |
925 | 932 |
926 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { | 933 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { |
927 if (owner_delegate_) | 934 if (owner_delegate_) |
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2085 } | 2092 } |
2086 | 2093 |
2087 float RenderWidget::GetOriginalDeviceScaleFactor() const { | 2094 float RenderWidget::GetOriginalDeviceScaleFactor() const { |
2088 return | 2095 return |
2089 screen_metrics_emulator_ ? | 2096 screen_metrics_emulator_ ? |
2090 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : | 2097 screen_metrics_emulator_->original_screen_info().deviceScaleFactor : |
2091 device_scale_factor_; | 2098 device_scale_factor_; |
2092 } | 2099 } |
2093 | 2100 |
2094 } // namespace content | 2101 } // namespace content |
OLD | NEW |