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

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

Issue 1814863002: Make page popups work under OOPIF (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: WebContentsImpl::SendScreenRects simplified Created 4 years, 9 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 RenderWidgetHostImpl* host_; 209 RenderWidgetHostImpl* host_;
210 210
211 // Surface-related state. 211 // Surface-related state.
212 scoped_ptr<cc::SurfaceIdAllocator> id_allocator_; 212 scoped_ptr<cc::SurfaceIdAllocator> id_allocator_;
213 scoped_ptr<cc::SurfaceFactory> surface_factory_; 213 scoped_ptr<cc::SurfaceFactory> surface_factory_;
214 cc::SurfaceId surface_id_; 214 cc::SurfaceId surface_id_;
215 uint32_t next_surface_sequence_; 215 uint32_t next_surface_sequence_;
216 uint32_t last_output_surface_id_; 216 uint32_t last_output_surface_id_;
217 gfx::Size current_surface_size_; 217 gfx::Size current_surface_size_;
218 float current_surface_scale_factor_; 218 float current_surface_scale_factor_;
219 gfx::Rect last_screen_rect_;
219 uint32_t ack_pending_count_; 220 uint32_t ack_pending_count_;
220 cc::ReturnedResourceArray surface_returned_resources_; 221 cc::ReturnedResourceArray surface_returned_resources_;
221 222
222 // frame_connector_ provides a platform abstraction. Messages 223 // frame_connector_ provides a platform abstraction. Messages
223 // sent through it are routed to the embedding renderer process. 224 // sent through it are routed to the embedding renderer process.
224 CrossProcessFrameConnector* frame_connector_; 225 CrossProcessFrameConnector* frame_connector_;
225 226
226 base::WeakPtr<RenderWidgetHostViewChildFrame> AsWeakPtr() { 227 base::WeakPtr<RenderWidgetHostViewChildFrame> AsWeakPtr() {
227 return weak_factory_.GetWeakPtr(); 228 return weak_factory_.GetWeakPtr();
228 } 229 }
229 230
230 private: 231 private:
231 void SubmitSurfaceCopyRequest(const gfx::Rect& src_subrect, 232 void SubmitSurfaceCopyRequest(const gfx::Rect& src_subrect,
232 const gfx::Size& dst_size, 233 const gfx::Size& dst_size,
233 const ReadbackRequestCallback& callback, 234 const ReadbackRequestCallback& callback,
234 const SkColorType preferred_color_type); 235 const SkColorType preferred_color_type);
235 236
236 using FrameSwappedCallbackList = std::deque<scoped_ptr<base::Closure>>; 237 using FrameSwappedCallbackList = std::deque<scoped_ptr<base::Closure>>;
237 // Since frame-drawn callbacks are "fire once", we use std::deque to make 238 // Since frame-drawn callbacks are "fire once", we use std::deque to make
238 // it convenient to swap() when processing the list. 239 // it convenient to swap() when processing the list.
239 FrameSwappedCallbackList frame_swapped_callbacks_; 240 FrameSwappedCallbackList frame_swapped_callbacks_;
240 241
241 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_; 242 base::WeakPtrFactory<RenderWidgetHostViewChildFrame> weak_factory_;
242 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame); 243 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewChildFrame);
243 }; 244 };
244 245
245 } // namespace content 246 } // namespace content
246 247
247 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_ 248 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_WIDGET_HOST_VIEW_CHILD_FRAME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698