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 924 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
935 // The UpdateTextInputState can result in further layout and possibly | 935 // The UpdateTextInputState can result in further layout and possibly |
936 // enable GPU acceleration so they need to be called before any painting | 936 // enable GPU acceleration so they need to be called before any painting |
937 // is done. | 937 // is done. |
938 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); | 938 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); |
939 UpdateSelectionBounds(); | 939 UpdateSelectionBounds(); |
940 | 940 |
941 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, | 941 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, |
942 WillBeginCompositorFrame()); | 942 WillBeginCompositorFrame()); |
943 } | 943 } |
944 | 944 |
945 void RenderWidget::ReportFixedRasterScaleUseCounters( | |
946 bool has_blurry_content, | |
947 bool has_potential_performance_regression) { | |
948 webwidget_->reportFixedRasterScaleUseCounters( | |
949 has_blurry_content, has_potential_performance_regression); | |
950 } | |
951 | |
952 /////////////////////////////////////////////////////////////////////////////// | 945 /////////////////////////////////////////////////////////////////////////////// |
953 // RenderWidgetInputHandlerDelegate | 946 // RenderWidgetInputHandlerDelegate |
954 | 947 |
955 void RenderWidget::FocusChangeComplete() { | 948 void RenderWidget::FocusChangeComplete() { |
956 if (owner_delegate_) | 949 if (owner_delegate_) |
957 owner_delegate_->RenderWidgetFocusChangeComplete(); | 950 owner_delegate_->RenderWidgetFocusChangeComplete(); |
958 } | 951 } |
959 | 952 |
960 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { | 953 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { |
961 if (owner_delegate_) | 954 if (owner_delegate_) |
(...skipping 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2132 void RenderWidget::requestPointerUnlock() { | 2125 void RenderWidget::requestPointerUnlock() { |
2133 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); | 2126 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); |
2134 } | 2127 } |
2135 | 2128 |
2136 bool RenderWidget::isPointerLocked() { | 2129 bool RenderWidget::isPointerLocked() { |
2137 return mouse_lock_dispatcher_->IsMouseLockedTo( | 2130 return mouse_lock_dispatcher_->IsMouseLockedTo( |
2138 webwidget_mouse_lock_target_.get()); | 2131 webwidget_mouse_lock_target_.get()); |
2139 } | 2132 } |
2140 | 2133 |
2141 } // namespace content | 2134 } // namespace content |
OLD | NEW |