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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 bool event_processed) override; | 261 bool event_processed) override; |
262 | 262 |
263 void OnDidHandleKeyEvent() override; | 263 void OnDidHandleKeyEvent() override; |
264 void OnDidOverscroll(const ui::DidOverscrollParams& params) override; | 264 void OnDidOverscroll(const ui::DidOverscrollParams& params) override; |
265 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override; | 265 void OnInputEventAck(std::unique_ptr<InputEventAck> input_event_ack) override; |
266 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, | 266 void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, |
267 InputEventAckState ack_result) override; | 267 InputEventAckState ack_result) override; |
268 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; | 268 void SetInputHandler(RenderWidgetInputHandler* input_handler) override; |
269 void ShowVirtualKeyboard() override; | 269 void ShowVirtualKeyboard() override; |
270 void UpdateTextInputState() override; | 270 void UpdateTextInputState() override; |
| 271 void HandlePotentialTextSuggestionTap() override; |
271 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; | 272 bool WillHandleGestureEvent(const blink::WebGestureEvent& event) override; |
272 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; | 273 bool WillHandleMouseEvent(const blink::WebMouseEvent& event) override; |
273 | 274 |
274 // RenderWidgetScreenMetricsDelegate | 275 // RenderWidgetScreenMetricsDelegate |
275 void Redraw() override; | 276 void Redraw() override; |
276 void Resize(const ResizeParams& resize_params) override; | 277 void Resize(const ResizeParams& resize_params) override; |
277 void SetScreenMetricsEmulationParameters( | 278 void SetScreenMetricsEmulationParameters( |
278 bool enabled, | 279 bool enabled, |
279 const blink::WebDeviceEmulationParams& params) override; | 280 const blink::WebDeviceEmulationParams& params) override; |
280 void SetScreenRects(const gfx::Rect& view_screen_rect, | 281 void SetScreenRects(const gfx::Rect& view_screen_rect, |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 const std::vector<blink::WebCompositionUnderline>& underlines, | 500 const std::vector<blink::WebCompositionUnderline>& underlines, |
500 const gfx::Range& replacement_range, | 501 const gfx::Range& replacement_range, |
501 int selection_start, | 502 int selection_start, |
502 int selection_end); | 503 int selection_end); |
503 virtual void OnImeCommitText( | 504 virtual void OnImeCommitText( |
504 const base::string16& text, | 505 const base::string16& text, |
505 const std::vector<blink::WebCompositionUnderline>& underlines, | 506 const std::vector<blink::WebCompositionUnderline>& underlines, |
506 const gfx::Range& replacement_range, | 507 const gfx::Range& replacement_range, |
507 int relative_cursor_pos); | 508 int relative_cursor_pos); |
508 virtual void OnImeFinishComposingText(bool keep_selection); | 509 virtual void OnImeFinishComposingText(bool keep_selection); |
| 510 virtual void OnImeApplySuggestionReplacement(int document_marker_id, |
| 511 int suggestion_index); |
| 512 virtual void OnImeDeleteSuggestionHighlight(); |
| 513 virtual void OnImeCloseSuggestionMenu(); |
509 | 514 |
510 // Called when the device scale factor is changed, or the layer tree is | 515 // Called when the device scale factor is changed, or the layer tree is |
511 // initialized. | 516 // initialized. |
512 virtual void OnDeviceScaleFactorChanged(); | 517 virtual void OnDeviceScaleFactorChanged(); |
513 | 518 |
514 void OnRepaint(gfx::Size size_to_paint); | 519 void OnRepaint(gfx::Size size_to_paint); |
515 void OnSyntheticGestureCompleted(); | 520 void OnSyntheticGestureCompleted(); |
516 void OnSetTextDirection(blink::WebTextDirection direction); | 521 void OnSetTextDirection(blink::WebTextDirection direction); |
517 void OnGetFPS(); | 522 void OnGetFPS(); |
518 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 523 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 DragEventSourceInfo possible_drag_event_info_; | 852 DragEventSourceInfo possible_drag_event_info_; |
848 | 853 |
849 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 854 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
850 | 855 |
851 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 856 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
852 }; | 857 }; |
853 | 858 |
854 } // namespace content | 859 } // namespace content |
855 | 860 |
856 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 861 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |