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

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

Issue 2592243002: Perform direct routing of mouse events when the pointer is locked. (Closed)
Patch Set: addressing comments 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_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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 // Notification that the widget has lost capture. 178 // Notification that the widget has lost capture.
179 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {} 179 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {}
180 180
181 // Notification that the widget has lost the mouse lock. 181 // Notification that the widget has lost the mouse lock.
182 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {} 182 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {}
183 183
184 // Returns true if |render_widget_host| holds the mouse lock. 184 // Returns true if |render_widget_host| holds the mouse lock.
185 virtual bool HasMouseLock(RenderWidgetHostImpl* render_widget_host); 185 virtual bool HasMouseLock(RenderWidgetHostImpl* render_widget_host);
186 186
187 // Returns the widget that holds the mouse lock or nullptr if the mouse isn't
188 // locked.
189 virtual RenderWidgetHostImpl* GetMouseLockWidget();
190
187 // Called when the visibility of the RenderFrameProxyHost in outer 191 // Called when the visibility of the RenderFrameProxyHost in outer
188 // WebContents changes. This method is only called on an inner WebContents and 192 // WebContents changes. This method is only called on an inner WebContents and
189 // will eventually notify all the RenderWidgetHostViews belonging to that 193 // will eventually notify all the RenderWidgetHostViews belonging to that
190 // WebContents. 194 // WebContents.
191 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} 195 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {}
192 196
193 // Update the renderer's cache of the screen rect of the view and window. 197 // Update the renderer's cache of the screen rect of the view and window.
194 virtual void SendScreenRects() {} 198 virtual void SendScreenRects() {}
195 199
196 // Notifies that the main frame in the renderer has performed the first paint 200 // Notifies that the main frame in the renderer has performed the first paint
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // not a WebContents, returns nullptr. 253 // not a WebContents, returns nullptr.
250 virtual WebContents* GetAsWebContents(); 254 virtual WebContents* GetAsWebContents();
251 255
252 protected: 256 protected:
253 virtual ~RenderWidgetHostDelegate() {} 257 virtual ~RenderWidgetHostDelegate() {}
254 }; 258 };
255 259
256 } // namespace content 260 } // namespace content
257 261
258 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 262 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « content/browser/pointer_lock_browsertest_mac.mm ('k') | content/browser/renderer_host/render_widget_host_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698