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

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

Issue 2883033003: Propagate inert state to OOPIFs when a modal dialog is active (Closed)
Patch Set: alexmos comments addressed Created 3 years, 6 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_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Returns the view into which this view is directly embedded. This can 193 // Returns the view into which this view is directly embedded. This can
194 // return nullptr when this view's associated child frame is not connected 194 // return nullptr when this view's associated child frame is not connected
195 // to the frame tree. 195 // to the frame tree.
196 RenderWidgetHostViewBase* GetParentView(); 196 RenderWidgetHostViewBase* GetParentView();
197 197
198 void RegisterFrameSinkId(); 198 void RegisterFrameSinkId();
199 void UnregisterFrameSinkId(); 199 void UnregisterFrameSinkId();
200 200
201 void UpdateViewportIntersection(const gfx::Rect& viewport_intersection); 201 void UpdateViewportIntersection(const gfx::Rect& viewport_intersection);
202 202
203 void SetIsInert();
204
203 bool has_frame() { return has_frame_; } 205 bool has_frame() { return has_frame_; }
204 206
205 ui::TextInputType GetTextInputType() const; 207 ui::TextInputType GetTextInputType() const;
206 bool GetSelectionRange(gfx::Range* range) const; 208 bool GetSelectionRange(gfx::Range* range) const;
207 // This returns the origin of this views's bounding rect in the coordinates 209 // This returns the origin of this views's bounding rect in the coordinates
208 // of the root RenderWidgetHostView. 210 // of the root RenderWidgetHostView.
209 gfx::Point GetViewOriginInRoot() const; 211 gfx::Point GetViewOriginInRoot() const;
210 212
211 protected: 213 protected:
212 friend class RenderWidgetHostView; 214 friend class RenderWidgetHostView;
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 std::unique_ptr<TouchSelectionControllerClientChildFrame> 290 std::unique_ptr<TouchSelectionControllerClientChildFrame>
289 selection_controller_client_; 291 selection_controller_client_;
290 292
291 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 293 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
292 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 294 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
293 }; 295 };
294 296
295 } // namespace content 297 } // namespace content
296 298
297 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 299 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698