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

Side by Side Diff: content/browser/frame_host/cross_process_frame_connector.h

Issue 1980133002: Implement pointer lock API for out-of-process iframes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removing one more override Created 4 years, 7 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // Pass acked touch events to the root view for gesture processing. 100 // Pass acked touch events to the root view for gesture processing.
101 void ForwardProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 101 void ForwardProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
102 InputEventAckState ack_result); 102 InputEventAckState ack_result);
103 103
104 // Determines whether the root RenderWidgetHostView (and thus the current 104 // Determines whether the root RenderWidgetHostView (and thus the current
105 // page) has focus. 105 // page) has focus.
106 bool HasFocus(); 106 bool HasFocus();
107 // Focuses the root RenderWidgetHostView. 107 // Focuses the root RenderWidgetHostView.
108 void FocusRootView(); 108 void FocusRootView();
109 109
110 // Locks the mouse. Returns true if mouse is locked.
111 bool LockMouse();
112
110 // Returns the parent RenderWidgetHostView or nullptr it it doesn't have one. 113 // Returns the parent RenderWidgetHostView or nullptr it it doesn't have one.
111 virtual RenderWidgetHostViewBase* GetParentRenderWidgetHostView(); 114 virtual RenderWidgetHostViewBase* GetParentRenderWidgetHostView();
112 115
113 // Returns the view for the top-level frame under the same WebContents. 116 // Returns the view for the top-level frame under the same WebContents.
114 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); 117 RenderWidgetHostViewBase* GetRootRenderWidgetHostView();
115 118
116 // Exposed for tests. 119 // Exposed for tests.
117 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { 120 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() {
118 return GetRootRenderWidgetHostView(); 121 return GetRootRenderWidgetHostView();
119 } 122 }
(...skipping 19 matching lines...) Expand all
139 RenderWidgetHostViewChildFrame* view_; 142 RenderWidgetHostViewChildFrame* view_;
140 143
141 gfx::Rect child_frame_rect_; 144 gfx::Rect child_frame_rect_;
142 float device_scale_factor_; 145 float device_scale_factor_;
143 }; 146 };
144 147
145 } // namespace content 148 } // namespace content
146 149
147 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 150 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
148 151
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/cross_process_frame_connector.cc » ('j') | content/renderer/render_widget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698