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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 // A browser should call this function or ImeCommitText: | 418 // A browser should call this function or ImeCommitText: |
419 // * when it receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag | 419 // * when it receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag |
420 // (on Windows); | 420 // (on Windows); |
421 // * when it receives a "commit" signal of GtkIMContext (on Linux); | 421 // * when it receives a "commit" signal of GtkIMContext (on Linux); |
422 // * when insertText of NSTextInput is called (on Mac). | 422 // * when insertText of NSTextInput is called (on Mac). |
423 void ImeFinishComposingText(bool keep_selection); | 423 void ImeFinishComposingText(bool keep_selection); |
424 | 424 |
425 // Cancels an ongoing composition. | 425 // Cancels an ongoing composition. |
426 void ImeCancelComposition(); | 426 void ImeCancelComposition(); |
427 | 427 |
| 428 void ApplySuggestionReplacement(int documentMarkerID, int suggestionIndex); |
| 429 void DeleteSuggestionHighlight(); |
| 430 void SuggestionMenuClosed(); |
| 431 |
428 bool ignore_input_events() const { | 432 bool ignore_input_events() const { |
429 return ignore_input_events_; | 433 return ignore_input_events_; |
430 } | 434 } |
431 | 435 |
432 // Whether forwarded WebInputEvents should be dropped. | 436 // Whether forwarded WebInputEvents should be dropped. |
433 bool ShouldDropInputEvents() const; | 437 bool ShouldDropInputEvents() const; |
434 | 438 |
435 bool has_touch_handler() const { return has_touch_handler_; } | 439 bool has_touch_handler() const { return has_touch_handler_; } |
436 | 440 |
437 // Set the RenderView background transparency. | 441 // Set the RenderView background transparency. |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 bool OnSwapCompositorFrame(const IPC::Message& message); | 628 bool OnSwapCompositorFrame(const IPC::Message& message); |
625 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); | 629 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); |
626 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); | 630 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); |
627 void OnSetCursor(const WebCursor& cursor); | 631 void OnSetCursor(const WebCursor& cursor); |
628 void OnTextInputStateChanged(const TextInputState& params); | 632 void OnTextInputStateChanged(const TextInputState& params); |
629 | 633 |
630 void OnImeCompositionRangeChanged( | 634 void OnImeCompositionRangeChanged( |
631 const gfx::Range& range, | 635 const gfx::Range& range, |
632 const std::vector<gfx::Rect>& character_bounds); | 636 const std::vector<gfx::Rect>& character_bounds); |
633 void OnImeCancelComposition(); | 637 void OnImeCancelComposition(); |
| 638 void OnShowTextSuggestionMenu( |
| 639 const std::vector<blink::WebTextSuggestionInfo>& suggestionInfos); |
634 void OnLockMouse(bool user_gesture, | 640 void OnLockMouse(bool user_gesture, |
635 bool last_unlocked_by_target, | 641 bool last_unlocked_by_target, |
636 bool privileged); | 642 bool privileged); |
637 void OnUnlockMouse(); | 643 void OnUnlockMouse(); |
638 void OnShowDisambiguationPopup(const gfx::Rect& rect_pixels, | 644 void OnShowDisambiguationPopup(const gfx::Rect& rect_pixels, |
639 const gfx::Size& size, | 645 const gfx::Size& size, |
640 const cc::SharedBitmapId& id); | 646 const cc::SharedBitmapId& id); |
641 void OnSelectionBoundsChanged( | 647 void OnSelectionBoundsChanged( |
642 const ViewHostMsg_SelectionBounds_Params& params); | 648 const ViewHostMsg_SelectionBounds_Params& params); |
643 void OnSetNeedsBeginFrames(bool needs_begin_frames); | 649 void OnSetNeedsBeginFrames(bool needs_begin_frames); |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
898 #endif | 904 #endif |
899 | 905 |
900 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; | 906 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; |
901 | 907 |
902 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); | 908 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); |
903 }; | 909 }; |
904 | 910 |
905 } // namespace content | 911 } // namespace content |
906 | 912 |
907 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ | 913 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ |
OLD | NEW |