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

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: Created 3 years, 12 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 176
177 // Notification that the widget has lost capture. 177 // Notification that the widget has lost capture.
178 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {} 178 virtual void LostCapture(RenderWidgetHostImpl* render_widget_host) {}
179 179
180 // Notification that the widget has lost the mouse lock. 180 // Notification that the widget has lost the mouse lock.
181 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {} 181 virtual void LostMouseLock(RenderWidgetHostImpl* render_widget_host) {}
182 182
183 // Returns true if |render_widget_host| holds the mouse lock. 183 // Returns true if |render_widget_host| holds the mouse lock.
184 virtual bool HasMouseLock(RenderWidgetHostImpl* render_widget_host); 184 virtual bool HasMouseLock(RenderWidgetHostImpl* render_widget_host);
185 185
186 // Returns the widget that holds the mouse lock or nullptr if the mouse isn't
187 // locked.
188 virtual RenderWidgetHostImpl* MouseLockWidget();
189
186 // Called when the widget has sent a compositor proto. This is used in Btlimp 190 // Called when the widget has sent a compositor proto. This is used in Btlimp
187 // mode with the RemoteChannel compositor. 191 // mode with the RemoteChannel compositor.
188 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host, 192 virtual void ForwardCompositorProto(RenderWidgetHostImpl* render_widget_host,
189 const std::vector<uint8_t>& proto) {} 193 const std::vector<uint8_t>& proto) {}
190 194
191 // Called when the visibility of the RenderFrameProxyHost in outer 195 // Called when the visibility of the RenderFrameProxyHost in outer
192 // WebContents changes. This method is only called on an inner WebContents and 196 // WebContents changes. This method is only called on an inner WebContents and
193 // will eventually notify all the RenderWidgetHostViews belonging to that 197 // will eventually notify all the RenderWidgetHostViews belonging to that
194 // WebContents. 198 // WebContents.
195 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {} 199 virtual void OnRenderFrameProxyVisibilityChanged(bool visible) {}
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // if the eTLD+1 is not known for |render_widget_host|. 248 // if the eTLD+1 is not known for |render_widget_host|.
245 virtual bool AddDomainInfoToRapporSample(rappor::Sample* sample); 249 virtual bool AddDomainInfoToRapporSample(rappor::Sample* sample);
246 250
247 protected: 251 protected:
248 virtual ~RenderWidgetHostDelegate() {} 252 virtual ~RenderWidgetHostDelegate() {}
249 }; 253 };
250 254
251 } // namespace content 255 } // namespace content
252 256
253 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_ 257 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698