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

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

Issue 1652483002: Browser Side Text Input State Tracking for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Comments and Fixing Compile Errors Created 4 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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 13 matching lines...) Expand all
24 class Point; 24 class Point;
25 class Rect; 25 class Rect;
26 class Size; 26 class Size;
27 } 27 }
28 28
29 namespace content { 29 namespace content {
30 30
31 class BrowserAccessibilityManager; 31 class BrowserAccessibilityManager;
32 class RenderWidgetHostImpl; 32 class RenderWidgetHostImpl;
33 class RenderWidgetHostInputEventRouter; 33 class RenderWidgetHostInputEventRouter;
34 class RenderWidgetHostViewBase;
34 struct NativeWebKeyboardEvent; 35 struct NativeWebKeyboardEvent;
35 36
36 // 37 //
37 // RenderWidgetHostDelegate 38 // RenderWidgetHostDelegate
38 // 39 //
39 // An interface implemented by an object interested in knowing about the state 40 // An interface implemented by an object interested in knowing about the state
40 // of the RenderWidgetHost. 41 // of the RenderWidgetHost.
41 class CONTENT_EXPORT RenderWidgetHostDelegate { 42 class CONTENT_EXPORT RenderWidgetHostDelegate {
42 public: 43 public:
43 // The RenderWidgetHost has just been created. 44 // The RenderWidgetHost has just been created.
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 // RenderWidgetHost to this function to determine who should ultimately 130 // RenderWidgetHost to this function to determine who should ultimately
130 // consume the event. This facilitates keyboard event routing with 131 // consume the event. This facilitates keyboard event routing with
131 // out-of-process iframes, where multiple RenderWidgetHosts may be involved 132 // out-of-process iframes, where multiple RenderWidgetHosts may be involved
132 // in rendering a page, yet keyboard events all arrive at the main frame's 133 // in rendering a page, yet keyboard events all arrive at the main frame's
133 // RenderWidgetHostView. When a main frame's RenderWidgetHost is passed in, 134 // RenderWidgetHostView. When a main frame's RenderWidgetHost is passed in,
134 // the function returns the focused frame that should consume keyboard 135 // the function returns the focused frame that should consume keyboard
135 // events. In all other cases, the function returns back |receiving_widget|. 136 // events. In all other cases, the function returns back |receiving_widget|.
136 virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost( 137 virtual RenderWidgetHostImpl* GetFocusedRenderWidgetHost(
137 RenderWidgetHostImpl* receiving_widget); 138 RenderWidgetHostImpl* receiving_widget);
138 139
140 // Get the focused RenderWidgetHostView.
141 virtual RenderWidgetHostViewBase* GetFocusedView();
142
139 // Notification that the renderer has become unresponsive. The 143 // Notification that the renderer has become unresponsive. The
140 // delegate can use this notification to show a warning to the user. 144 // delegate can use this notification to show a warning to the user.
141 virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host) {} 145 virtual void RendererUnresponsive(RenderWidgetHostImpl* render_widget_host) {}
142 146
143 // Notification that a previously unresponsive renderer has become 147 // Notification that a previously unresponsive renderer has become
144 // responsive again. The delegate can use this notification to end the 148 // responsive again. The delegate can use this notification to end the
145 // warning shown to the user. 149 // warning shown to the user.
146 virtual void RendererResponsive(RenderWidgetHostImpl* render_widget_host) {} 150 virtual void RendererResponsive(RenderWidgetHostImpl* render_widget_host) {}
147 151
148 // Requests to lock the mouse. Once the request is approved or rejected, 152 // Requests to lock the mouse. Once the request is approved or rejected,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, 184 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host,
181 const std::vector<uint8_t>& proto) {} 185 const std::vector<uint8_t>& proto) {}
182 186
183 protected: 187 protected:
184 virtual ~RenderWidgetHostDelegate() {} 188 virtual ~RenderWidgetHostDelegate() {}
185 }; 189 };
186 190
187 } // namespace content 191 } // namespace content
188 192
189 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 193 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698