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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 // The UpdateTextInputState can result in further layout and possibly | 814 // The UpdateTextInputState can result in further layout and possibly |
815 // enable GPU acceleration so they need to be called before any painting | 815 // enable GPU acceleration so they need to be called before any painting |
816 // is done. | 816 // is done. |
817 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); | 817 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); |
818 UpdateSelectionBounds(); | 818 UpdateSelectionBounds(); |
819 | 819 |
820 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, | 820 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, |
821 WillBeginCompositorFrame()); | 821 WillBeginCompositorFrame()); |
822 } | 822 } |
823 | 823 |
824 void RenderWidget::ReportFixedRasterScaleUseCounters( | |
825 bool has_blurry_content, | |
826 bool has_potential_performance_regression) { | |
827 webwidget_->reportFixedRasterScaleUseCounters( | |
828 has_blurry_content, has_potential_performance_regression); | |
829 } | |
830 | |
831 /////////////////////////////////////////////////////////////////////////////// | 824 /////////////////////////////////////////////////////////////////////////////// |
832 // RenderWidgetInputHandlerDelegate | 825 // RenderWidgetInputHandlerDelegate |
833 | 826 |
834 void RenderWidget::FocusChangeComplete() { | 827 void RenderWidget::FocusChangeComplete() { |
835 if (owner_delegate_) | 828 if (owner_delegate_) |
836 owner_delegate_->RenderWidgetFocusChangeComplete(); | 829 owner_delegate_->RenderWidgetFocusChangeComplete(); |
837 } | 830 } |
838 | 831 |
839 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { | 832 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { |
840 if (owner_delegate_) | 833 if (owner_delegate_) |
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1990 void RenderWidget::requestPointerUnlock() { | 1983 void RenderWidget::requestPointerUnlock() { |
1991 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); | 1984 mouse_lock_dispatcher_->UnlockMouse(webwidget_mouse_lock_target_.get()); |
1992 } | 1985 } |
1993 | 1986 |
1994 bool RenderWidget::isPointerLocked() { | 1987 bool RenderWidget::isPointerLocked() { |
1995 return mouse_lock_dispatcher_->IsMouseLockedTo( | 1988 return mouse_lock_dispatcher_->IsMouseLockedTo( |
1996 webwidget_mouse_lock_target_.get()); | 1989 webwidget_mouse_lock_target_.get()); |
1997 } | 1990 } |
1998 | 1991 |
1999 } // namespace content | 1992 } // namespace content |
OLD | NEW |