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

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

Issue 1914603002: Replace ViewHostMsg_TextInputState_Params with content::TextInputState. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Comments Created 4 years, 8 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 30 matching lines...) Expand all
41 #include "ipc/ipc_listener.h" 41 #include "ipc/ipc_listener.h"
42 #include "third_party/WebKit/public/platform/WebDisplayMode.h" 42 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
43 #include "ui/base/ime/text_input_mode.h" 43 #include "ui/base/ime/text_input_mode.h"
44 #include "ui/base/ime/text_input_type.h" 44 #include "ui/base/ime/text_input_type.h"
45 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" 45 #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
46 #include "ui/events/latency_info.h" 46 #include "ui/events/latency_info.h"
47 #include "ui/gfx/native_widget_types.h" 47 #include "ui/gfx/native_widget_types.h"
48 48
49 struct FrameHostMsg_HittestData_Params; 49 struct FrameHostMsg_HittestData_Params;
50 struct ViewHostMsg_SelectionBounds_Params; 50 struct ViewHostMsg_SelectionBounds_Params;
51 struct ViewHostMsg_TextInputState_Params;
52 struct ViewHostMsg_UpdateRect_Params; 51 struct ViewHostMsg_UpdateRect_Params;
53 52
54 namespace base { 53 namespace base {
55 class RefCountedBytes; 54 class RefCountedBytes;
56 } 55 }
57 56
58 namespace blink { 57 namespace blink {
59 class WebInputEvent; 58 class WebInputEvent;
60 #if defined(OS_ANDROID) 59 #if defined(OS_ANDROID)
61 class WebLayer; 60 class WebLayer;
(...skipping 17 matching lines...) Expand all
79 class InputRouter; 78 class InputRouter;
80 class MockRenderWidgetHost; 79 class MockRenderWidgetHost;
81 class RenderWidgetHostDelegate; 80 class RenderWidgetHostDelegate;
82 class RenderWidgetHostOwnerDelegate; 81 class RenderWidgetHostOwnerDelegate;
83 class SyntheticGestureController; 82 class SyntheticGestureController;
84 class TimeoutMonitor; 83 class TimeoutMonitor;
85 class TouchEmulator; 84 class TouchEmulator;
86 class WebCursor; 85 class WebCursor;
87 struct EditCommand; 86 struct EditCommand;
88 struct ResizeParams; 87 struct ResizeParams;
88 struct TextInputState;
89 89
90 // This implements the RenderWidgetHost interface that is exposed to 90 // This implements the RenderWidgetHost interface that is exposed to
91 // embedders of content, and adds things only visible to content. 91 // embedders of content, and adds things only visible to content.
92 class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost, 92 class CONTENT_EXPORT RenderWidgetHostImpl : public RenderWidgetHost,
93 public InputRouterClient, 93 public InputRouterClient,
94 public InputAckHandler, 94 public InputAckHandler,
95 public TouchEmulatorClient, 95 public TouchEmulatorClient,
96 public IPC::Listener { 96 public IPC::Listener {
97 public: 97 public:
98 // |routing_id| must not be MSG_ROUTING_NONE. 98 // |routing_id| must not be MSG_ROUTING_NONE.
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 void OnRenderProcessGone(int status, int error_code); 564 void OnRenderProcessGone(int status, int error_code);
565 void OnClose(); 565 void OnClose();
566 void OnUpdateScreenRectsAck(); 566 void OnUpdateScreenRectsAck();
567 void OnRequestMove(const gfx::Rect& pos); 567 void OnRequestMove(const gfx::Rect& pos);
568 void OnSetTooltipText(const base::string16& tooltip_text, 568 void OnSetTooltipText(const base::string16& tooltip_text,
569 blink::WebTextDirection text_direction_hint); 569 blink::WebTextDirection text_direction_hint);
570 bool OnSwapCompositorFrame(const IPC::Message& message); 570 bool OnSwapCompositorFrame(const IPC::Message& message);
571 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params); 571 void OnUpdateRect(const ViewHostMsg_UpdateRect_Params& params);
572 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet); 572 void OnQueueSyntheticGesture(const SyntheticGesturePacket& gesture_packet);
573 void OnSetCursor(const WebCursor& cursor); 573 void OnSetCursor(const WebCursor& cursor);
574 void OnTextInputStateChanged( 574 void OnTextInputStateChanged(const TextInputState& params);
575 const ViewHostMsg_TextInputState_Params& params);
576 575
577 void OnImeCompositionRangeChanged( 576 void OnImeCompositionRangeChanged(
578 const gfx::Range& range, 577 const gfx::Range& range,
579 const std::vector<gfx::Rect>& character_bounds); 578 const std::vector<gfx::Rect>& character_bounds);
580 void OnImeCancelComposition(); 579 void OnImeCancelComposition();
581 void OnLockMouse(bool user_gesture, 580 void OnLockMouse(bool user_gesture,
582 bool last_unlocked_by_target, 581 bool last_unlocked_by_target,
583 bool privileged); 582 bool privileged);
584 void OnUnlockMouse(); 583 void OnUnlockMouse();
585 void OnShowDisambiguationPopup(const gfx::Rect& rect_pixels, 584 void OnShowDisambiguationPopup(const gfx::Rect& rect_pixels,
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
823 base::TimeDelta new_content_rendering_delay_; 822 base::TimeDelta new_content_rendering_delay_;
824 823
825 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_; 824 base::WeakPtrFactory<RenderWidgetHostImpl> weak_factory_;
826 825
827 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl); 826 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostImpl);
828 }; 827 };
829 828
830 } // namespace content 829 } // namespace content
831 830
832 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_ 831 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.cc ('k') | content/browser/renderer_host/render_widget_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698