| 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 <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 } | 1216 } |
| 1217 | 1217 |
| 1218 void RenderWidget::WillBeginCompositorFrame() { | 1218 void RenderWidget::WillBeginCompositorFrame() { |
| 1219 TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame"); | 1219 TRACE_EVENT0("gpu", "RenderWidget::willBeginCompositorFrame"); |
| 1220 | 1220 |
| 1221 // The UpdateTextInputState can result in further layout and possibly | 1221 // The UpdateTextInputState can result in further layout and possibly |
| 1222 // enable GPU acceleration so they need to be called before any painting | 1222 // enable GPU acceleration so they need to be called before any painting |
| 1223 // is done. | 1223 // is done. |
| 1224 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); | 1224 UpdateTextInputState(ShowIme::HIDE_IME, ChangeSource::FROM_NON_IME); |
| 1225 UpdateSelectionBounds(); | 1225 UpdateSelectionBounds(); |
| 1226 | |
| 1227 FOR_EACH_OBSERVER(RenderFrameProxy, render_frame_proxies_, | |
| 1228 WillBeginCompositorFrame()); | |
| 1229 } | 1226 } |
| 1230 | 1227 |
| 1231 /////////////////////////////////////////////////////////////////////////////// | 1228 /////////////////////////////////////////////////////////////////////////////// |
| 1232 // RenderWidgetInputHandlerDelegate | 1229 // RenderWidgetInputHandlerDelegate |
| 1233 | 1230 |
| 1234 void RenderWidget::FocusChangeComplete() {} | 1231 void RenderWidget::FocusChangeComplete() {} |
| 1235 | 1232 |
| 1236 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { | 1233 bool RenderWidget::HasTouchEventHandlersAt(const gfx::Point& point) const { |
| 1237 return true; | 1234 return true; |
| 1238 } | 1235 } |
| (...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2274 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { | 2271 void RenderWidget::RegisterVideoHoleFrame(RenderFrameImpl* frame) { |
| 2275 video_hole_frames_.AddObserver(frame); | 2272 video_hole_frames_.AddObserver(frame); |
| 2276 } | 2273 } |
| 2277 | 2274 |
| 2278 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { | 2275 void RenderWidget::UnregisterVideoHoleFrame(RenderFrameImpl* frame) { |
| 2279 video_hole_frames_.RemoveObserver(frame); | 2276 video_hole_frames_.RemoveObserver(frame); |
| 2280 } | 2277 } |
| 2281 #endif // defined(VIDEO_HOLE) | 2278 #endif // defined(VIDEO_HOLE) |
| 2282 | 2279 |
| 2283 } // namespace content | 2280 } // namespace content |
| OLD | NEW |