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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; | 285 void didMeaningfulLayout(blink::WebMeaningfulLayout layout_type) override; |
286 void didChangeCursor(const blink::WebCursorInfo&) override; | 286 void didChangeCursor(const blink::WebCursorInfo&) override; |
287 void closeWidgetSoon() override; | 287 void closeWidgetSoon() override; |
288 void show(blink::WebNavigationPolicy) override; | 288 void show(blink::WebNavigationPolicy) override; |
289 blink::WebRect windowRect() override; | 289 blink::WebRect windowRect() override; |
290 blink::WebRect viewRect() override; | 290 blink::WebRect viewRect() override; |
291 void setToolTipText(const blink::WebString& text, | 291 void setToolTipText(const blink::WebString& text, |
292 blink::WebTextDirection hint) override; | 292 blink::WebTextDirection hint) override; |
293 void setWindowRect(const blink::WebRect&) override; | 293 void setWindowRect(const blink::WebRect&) override; |
294 blink::WebScreenInfo screenInfo() override; | 294 blink::WebScreenInfo screenInfo() override; |
| 295 void handlePotentialTextSuggestionTap() override; |
295 void resetInputMethod() override; | 296 void resetInputMethod() override; |
296 void didHandleGestureEvent(const blink::WebGestureEvent& event, | 297 void didHandleGestureEvent(const blink::WebGestureEvent& event, |
297 bool event_cancelled) override; | 298 bool event_cancelled) override; |
298 void didOverscroll(const blink::WebFloatSize& overscrollDelta, | 299 void didOverscroll(const blink::WebFloatSize& overscrollDelta, |
299 const blink::WebFloatSize& accumulatedOverscroll, | 300 const blink::WebFloatSize& accumulatedOverscroll, |
300 const blink::WebFloatPoint& position, | 301 const blink::WebFloatPoint& position, |
301 const blink::WebFloatSize& velocity) override; | 302 const blink::WebFloatSize& velocity) override; |
302 void showVirtualKeyboardOnElementFocus() override; | 303 void showVirtualKeyboardOnElementFocus() override; |
303 void convertViewportToWindow(blink::WebRect* rect) override; | 304 void convertViewportToWindow(blink::WebRect* rect) override; |
304 void convertWindowToViewport(blink::WebFloatRect* rect) override; | 305 void convertWindowToViewport(blink::WebFloatRect* rect) override; |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
496 const std::vector<blink::WebCompositionUnderline>& underlines, | 497 const std::vector<blink::WebCompositionUnderline>& underlines, |
497 const gfx::Range& replacement_range, | 498 const gfx::Range& replacement_range, |
498 int selection_start, | 499 int selection_start, |
499 int selection_end); | 500 int selection_end); |
500 virtual void OnImeCommitText( | 501 virtual void OnImeCommitText( |
501 const base::string16& text, | 502 const base::string16& text, |
502 const std::vector<blink::WebCompositionUnderline>& underlines, | 503 const std::vector<blink::WebCompositionUnderline>& underlines, |
503 const gfx::Range& replacement_range, | 504 const gfx::Range& replacement_range, |
504 int relative_cursor_pos); | 505 int relative_cursor_pos); |
505 virtual void OnImeFinishComposingText(bool keep_selection); | 506 virtual void OnImeFinishComposingText(bool keep_selection); |
| 507 virtual void OnApplySuggestionReplacement(int document_marker_id, |
| 508 int suggestion_index); |
| 509 virtual void OnDeleteSuggestionHighlight(); |
| 510 virtual void OnSuggestionMenuClosed(); |
506 | 511 |
507 // Called when the device scale factor is changed, or the layer tree is | 512 // Called when the device scale factor is changed, or the layer tree is |
508 // initialized. | 513 // initialized. |
509 virtual void OnDeviceScaleFactorChanged(); | 514 virtual void OnDeviceScaleFactorChanged(); |
510 | 515 |
511 void OnRepaint(gfx::Size size_to_paint); | 516 void OnRepaint(gfx::Size size_to_paint); |
512 void OnSyntheticGestureCompleted(); | 517 void OnSyntheticGestureCompleted(); |
513 void OnSetTextDirection(blink::WebTextDirection direction); | 518 void OnSetTextDirection(blink::WebTextDirection direction); |
514 void OnGetFPS(); | 519 void OnGetFPS(); |
515 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, | 520 void OnUpdateScreenRects(const gfx::Rect& view_screen_rect, |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
844 DragEventSourceInfo possible_drag_event_info_; | 849 DragEventSourceInfo possible_drag_event_info_; |
845 | 850 |
846 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; | 851 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; |
847 | 852 |
848 DISALLOW_COPY_AND_ASSIGN(RenderWidget); | 853 DISALLOW_COPY_AND_ASSIGN(RenderWidget); |
849 }; | 854 }; |
850 | 855 |
851 } // namespace content | 856 } // namespace content |
852 | 857 |
853 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ | 858 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ |
OLD | NEW |