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 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_ |
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ | 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 | 10 |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 void FinishHandlingImeEvent(); | 221 void FinishHandlingImeEvent(); |
222 | 222 |
223 // Returns whether we currently should handle an IME event. | 223 // Returns whether we currently should handle an IME event. |
224 bool ShouldHandleImeEvent(); | 224 bool ShouldHandleImeEvent(); |
225 | 225 |
226 virtual void InstrumentWillBeginFrame(int frame_id) {} | 226 virtual void InstrumentWillBeginFrame(int frame_id) {} |
227 virtual void InstrumentDidBeginFrame() {} | 227 virtual void InstrumentDidBeginFrame() {} |
228 virtual void InstrumentDidCancelFrame() {} | 228 virtual void InstrumentDidCancelFrame() {} |
229 virtual void InstrumentWillComposite() {} | 229 virtual void InstrumentWillComposite() {} |
230 | 230 |
| 231 // Called by the compositor when page scale animation completed. |
| 232 virtual void DidCompletePageScaleAnimation() {} |
| 233 |
231 // When paused in debugger, we send ack for mouse event early. This ensures | 234 // When paused in debugger, we send ack for mouse event early. This ensures |
232 // that we continue receiving mouse moves and pass them to debugger. Returns | 235 // that we continue receiving mouse moves and pass them to debugger. Returns |
233 // whether we are paused in mouse move event and have sent the ack. | 236 // whether we are paused in mouse move event and have sent the ack. |
234 bool SendAckForMouseMoveFromDebugger(); | 237 bool SendAckForMouseMoveFromDebugger(); |
235 | 238 |
236 // When resumed from pause in debugger while handling mouse move, | 239 // When resumed from pause in debugger while handling mouse move, |
237 // we should not send an extra ack (see SendAckForMouseMoveFromDebugger). | 240 // we should not send an extra ack (see SendAckForMouseMoveFromDebugger). |
238 void IgnoreAckForMouseMoveFromDebugger(); | 241 void IgnoreAckForMouseMoveFromDebugger(); |
239 | 242 |
240 // ScreenMetricsEmulator class manages screen emulation inside a render | 243 // ScreenMetricsEmulator class manages screen emulation inside a render |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
284 | 287 |
285 // |show_ime| should be SHOW_IME_IF_NEEDED iff the update may cause the ime to | 288 // |show_ime| should be SHOW_IME_IF_NEEDED iff the update may cause the ime to |
286 // be displayed, e.g. after a tap on an input field on mobile. | 289 // be displayed, e.g. after a tap on an input field on mobile. |
287 // |change_source| should be FROM_NON_IME when the renderer has to wait for | 290 // |change_source| should be FROM_NON_IME when the renderer has to wait for |
288 // the browser to acknowledge the change before the renderer handles any more | 291 // the browser to acknowledge the change before the renderer handles any more |
289 // IME events. This is when the text change did not originate from the IME in | 292 // IME events. This is when the text change did not originate from the IME in |
290 // the browser side, such as changes by JavaScript or autofill. | 293 // the browser side, such as changes by JavaScript or autofill. |
291 void UpdateTextInputState(ShowIme show_ime, ChangeSource change_source); | 294 void UpdateTextInputState(ShowIme show_ime, ChangeSource change_source); |
292 #endif | 295 #endif |
293 | 296 |
| 297 virtual void FocusChangeComplete() {} |
| 298 |
294 // Checks if the composition range or composition character bounds have been | 299 // Checks if the composition range or composition character bounds have been |
295 // changed. If they are changed, the new value will be sent to the browser | 300 // changed. If they are changed, the new value will be sent to the browser |
296 // process. This method does nothing when the browser process is not able to | 301 // process. This method does nothing when the browser process is not able to |
297 // handle composition range and composition character bounds. | 302 // handle composition range and composition character bounds. |
298 void UpdateCompositionInfo(bool should_update_range); | 303 void UpdateCompositionInfo(bool should_update_range); |
299 | 304 |
300 #if defined(OS_ANDROID) | 305 #if defined(OS_ANDROID) |
301 void DidChangeBodyBackgroundColor(SkColor bg_color); | 306 void DidChangeBodyBackgroundColor(SkColor bg_color); |
302 bool DoesRecordFullLayer() const; | 307 bool DoesRecordFullLayer() const; |
303 #endif | 308 #endif |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 ui::MenuSourceType context_menu_source_type_; | 769 ui::MenuSourceType context_menu_source_type_; |
765 bool has_host_context_menu_location_; | 770 bool has_host_context_menu_location_; |
766 gfx::Point host_context_menu_location_; | 771 gfx::Point host_context_menu_location_; |
767 | 772 |
768 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 773 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
769 }; | 774 }; |
770 | 775 |
771 } // namespace content | 776 } // namespace content |
772 | 777 |
773 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 778 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |