Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.h

Issue 2650113004: [WIP] Add support for Android SuggestionSpans when editing text (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 ImeApplySuggestionReplacement(int documentMarkerID, int suggestionIndex);
429 void ImeDeleteSuggestionHighlight();
430 void ImeCloseSuggestionMenu();
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 bool OnSwapCompositorFrame(const IPC::Message& message); 632 bool OnSwapCompositorFrame(const IPC::Message& message);
629 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 633 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
630 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); 634 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet);
631 void OnSetCursor(const WebCursor& cursor); 635 void OnSetCursor(const WebCursor& cursor);
632 void OnTextInputStateChanged(const TextInputState& params); 636 void OnTextInputStateChanged(const TextInputState& params);
633 637
634 void OnImeCompositionRangeChanged( 638 void OnImeCompositionRangeChanged(
635 const gfx::Range& range, 639 const gfx::Range& range,
636 const std::vector<gfx::Rect>& character_bounds); 640 const std::vector<gfx::Rect>& character_bounds);
637 void OnImeCancelComposition(); 641 void OnImeCancelComposition();
642 void OnShowTextSuggestionMenu(
643 const std::vector<blink::WebTextSuggestionInfo>& suggestionInfos);
638 void OnLockMouse(bool user_gesture, 644 void OnLockMouse(bool user_gesture,
639 bool last_unlocked_by_target, 645 bool last_unlocked_by_target,
640 bool privileged); 646 bool privileged);
641 void OnUnlockMouse(); 647 void OnUnlockMouse();
642 void OnShowDisambiguationPopup(const gfx::Rect& rect_pixels, 648 void OnShowDisambiguationPopup(const gfx::Rect& rect_pixels,
643 const gfx::Size& size, 649 const gfx::Size& size,
644 const cc::SharedBitmapId& id); 650 const cc::SharedBitmapId& id);
645 void OnSelectionBoundsChanged( 651 void OnSelectionBoundsChanged(
646 const ViewHostMsg_SelectionBounds_Params& params); 652 const ViewHostMsg_SelectionBounds_Params& params);
647 void OnSetNeedsBeginFrames(bool needs_begin_frames); 653 void OnSetNeedsBeginFrames(bool needs_begin_frames);
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 #endif 914 #endif
909 915
910 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 916 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
911 917
912 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 918 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
913 }; 919 };
914 920
915 } // namespace content 921 } // namespace content
916 922
917 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 923 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698