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

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

Issue 2112923002: Fix crash when destroying a RenderWidgetHost that holds the pointer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 // Determines whether the root RenderWidgetHostView (and thus the current 108 // Determines whether the root RenderWidgetHostView (and thus the current
109 // page) has focus. 109 // page) has focus.
110 bool HasFocus(); 110 bool HasFocus();
111 // Focuses the root RenderWidgetHostView. 111 // Focuses the root RenderWidgetHostView.
112 void FocusRootView(); 112 void FocusRootView();
113 113
114 // Locks the mouse. Returns true if mouse is locked. 114 // Locks the mouse. Returns true if mouse is locked.
115 bool LockMouse(); 115 bool LockMouse();
116 116
117 // Unlocks the mouse if the mouse is locked.
118 void UnlockMouse();
119
117 // Returns the parent RenderWidgetHostView or nullptr it it doesn't have one. 120 // Returns the parent RenderWidgetHostView or nullptr it it doesn't have one.
118 virtual RenderWidgetHostViewBase* GetParentRenderWidgetHostView(); 121 virtual RenderWidgetHostViewBase* GetParentRenderWidgetHostView();
119 122
120 // Returns the view for the top-level frame under the same WebContents. 123 // Returns the view for the top-level frame under the same WebContents.
121 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); 124 RenderWidgetHostViewBase* GetRootRenderWidgetHostView();
122 125
123 // Exposed for tests. 126 // Exposed for tests.
124 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { 127 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() {
125 return GetRootRenderWidgetHostView(); 128 return GetRootRenderWidgetHostView();
126 } 129 }
(...skipping 21 matching lines...) Expand all
148 gfx::Rect child_frame_rect_; 151 gfx::Rect child_frame_rect_;
149 float device_scale_factor_; 152 float device_scale_factor_;
150 153
151 bool is_scroll_bubbling_; 154 bool is_scroll_bubbling_;
152 }; 155 };
153 156
154 } // namespace content 157 } // namespace content
155 158
156 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 159 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
157 160
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698