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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.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_VIEW_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 23 matching lines...) Expand all
34 #include "ui/gfx/display.h" 34 #include "ui/gfx/display.h"
35 #include "ui/gfx/geometry/rect.h" 35 #include "ui/gfx/geometry/rect.h"
36 #include "ui/gfx/native_widget_types.h" 36 #include "ui/gfx/native_widget_types.h"
37 #include "ui/gfx/range/range.h" 37 #include "ui/gfx/range/range.h"
38 #include "ui/surface/transport_dib.h" 38 #include "ui/surface/transport_dib.h"
39 39
40 class SkBitmap; 40 class SkBitmap;
41 41
42 struct AccessibilityHostMsg_EventParams; 42 struct AccessibilityHostMsg_EventParams;
43 struct ViewHostMsg_SelectionBounds_Params; 43 struct ViewHostMsg_SelectionBounds_Params;
44 struct ViewHostMsg_TextInputState_Params;
45 44
46 namespace media { 45 namespace media {
47 class VideoFrame; 46 class VideoFrame;
48 } 47 }
49 48
50 namespace blink { 49 namespace blink {
51 struct WebScreenInfo; 50 struct WebScreenInfo;
52 class WebMouseEvent; 51 class WebMouseEvent;
53 class WebMouseWheelEvent; 52 class WebMouseWheelEvent;
54 } 53 }
55 54
56 namespace cc { 55 namespace cc {
57 class SurfaceHittestDelegate; 56 class SurfaceHittestDelegate;
58 } 57 }
59 58
60 namespace ui { 59 namespace ui {
61 class LatencyInfo; 60 class LatencyInfo;
62 } 61 }
63 62
64 namespace content { 63 namespace content {
65 class BrowserAccessibilityDelegate; 64 class BrowserAccessibilityDelegate;
66 class BrowserAccessibilityManager; 65 class BrowserAccessibilityManager;
67 class RenderWidgetHostViewBaseObserver; 66 class RenderWidgetHostViewBaseObserver;
68 class SyntheticGesture; 67 class SyntheticGesture;
69 class SyntheticGestureTarget; 68 class SyntheticGestureTarget;
70 class WebCursor; 69 class WebCursor;
71 struct DidOverscrollParams; 70 struct DidOverscrollParams;
72 struct NativeWebKeyboardEvent; 71 struct NativeWebKeyboardEvent;
72 struct TextInputState;
73 73
74 // Basic implementation shared by concrete RenderWidgetHostView subclasses. 74 // Basic implementation shared by concrete RenderWidgetHostView subclasses.
75 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView, 75 class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
76 public IPC::Listener { 76 public IPC::Listener {
77 public: 77 public:
78 ~RenderWidgetHostViewBase() override; 78 ~RenderWidgetHostViewBase() override;
79 79
80 float current_device_scale_factor() const { 80 float current_device_scale_factor() const {
81 return current_device_scale_factor_; 81 return current_device_scale_factor_;
82 } 82 }
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 // helps to position the full screen widget on the correct monitor. 259 // helps to position the full screen widget on the correct monitor.
260 virtual void InitAsFullscreen(RenderWidgetHostView* reference_host_view) = 0; 260 virtual void InitAsFullscreen(RenderWidgetHostView* reference_host_view) = 0;
261 261
262 // Sets the cursor to the one associated with the specified cursor_type 262 // Sets the cursor to the one associated with the specified cursor_type
263 virtual void UpdateCursor(const WebCursor& cursor) = 0; 263 virtual void UpdateCursor(const WebCursor& cursor) = 0;
264 264
265 // Indicates whether the page has finished loading. 265 // Indicates whether the page has finished loading.
266 virtual void SetIsLoading(bool is_loading) = 0; 266 virtual void SetIsLoading(bool is_loading) = 0;
267 267
268 // Updates the state of the input method attached to the view. 268 // Updates the state of the input method attached to the view.
269 virtual void TextInputStateChanged( 269 virtual void TextInputStateChanged(const TextInputState& params) = 0;
270 const ViewHostMsg_TextInputState_Params& params) = 0;
271 270
272 // Cancel the ongoing composition of the input method attached to the view. 271 // Cancel the ongoing composition of the input method attached to the view.
273 virtual void ImeCancelComposition() = 0; 272 virtual void ImeCancelComposition() = 0;
274 273
275 // Notifies the View that the renderer has ceased to exist. 274 // Notifies the View that the renderer has ceased to exist.
276 virtual void RenderProcessGone(base::TerminationStatus status, 275 virtual void RenderProcessGone(base::TerminationStatus status,
277 int error_code) = 0; 276 int error_code) = 0;
278 277
279 // Tells the View to destroy itself. 278 // Tells the View to destroy itself.
280 virtual void Destroy() = 0; 279 virtual void Destroy() = 0;
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 435 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
437 436
438 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 437 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
439 438
440 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 439 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
441 }; 440 };
442 441
443 } // namespace content 442 } // namespace content
444 443
445 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 444 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698