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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2417783005: [Master/Overview CL] Make PageScaleFactor work for oopif subframe.
Patch Set: Rebase to master@{#429656}. Created 4 years, 1 month 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
« no previous file with comments | « content/renderer/input/input_handler_wrapper.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_RENDER_FRAME_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 // Out-of-process child frames receive a signal from RenderWidgetCompositor 254 // Out-of-process child frames receive a signal from RenderWidgetCompositor
255 // when a compositor frame has committed. 255 // when a compositor frame has committed.
256 void DidCommitCompositorFrame(); 256 void DidCommitCompositorFrame();
257 257
258 // Draw commands have been issued by RenderWidgetCompositor. 258 // Draw commands have been issued by RenderWidgetCompositor.
259 void DidCommitAndDrawCompositorFrame(); 259 void DidCommitAndDrawCompositorFrame();
260 260
261 // TODO(jam): this is a temporary getter until all the code is transitioned 261 // TODO(jam): this is a temporary getter until all the code is transitioned
262 // to using RenderFrame instead of RenderView. 262 // to using RenderFrame instead of RenderView.
263 RenderViewImpl* render_view() { return render_view_.get(); } 263 RenderViewImpl* render_view() { return render_view_; }
264 264
265 const blink::WebHistoryItem& current_history_item() { 265 const blink::WebHistoryItem& current_history_item() {
266 return current_history_item_; 266 return current_history_item_;
267 } 267 }
268 268
269 RendererWebCookieJarImpl* cookie_jar() { return &cookie_jar_; } 269 RendererWebCookieJarImpl* cookie_jar() { return &cookie_jar_; }
270 270
271 // Returns the RenderWidget associated with this frame. 271 // Returns the RenderWidget associated with this frame.
272 RenderWidget* GetRenderWidget(); 272 RenderWidget* GetRenderWidget();
273 273
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 void didObserveLoadingBehavior( 596 void didObserveLoadingBehavior(
597 blink::WebLoadingBehaviorFlag behavior) override; 597 blink::WebLoadingBehaviorFlag behavior) override;
598 void didCreateScriptContext(blink::WebLocalFrame* frame, 598 void didCreateScriptContext(blink::WebLocalFrame* frame,
599 v8::Local<v8::Context> context, 599 v8::Local<v8::Context> context,
600 int extension_group, 600 int extension_group,
601 int world_id) override; 601 int world_id) override;
602 void willReleaseScriptContext(blink::WebLocalFrame* frame, 602 void willReleaseScriptContext(blink::WebLocalFrame* frame,
603 v8::Local<v8::Context> context, 603 v8::Local<v8::Context> context,
604 int world_id) override; 604 int world_id) override;
605 void didChangeScrollOffset(blink::WebLocalFrame* frame) override; 605 void didChangeScrollOffset(blink::WebLocalFrame* frame) override;
606 void didRestorePageScaleFactorOnLoad(float page_scale) override;
606 void willInsertBody(blink::WebLocalFrame* frame) override; 607 void willInsertBody(blink::WebLocalFrame* frame) override;
607 void reportFindInPageMatchCount(int request_id, 608 void reportFindInPageMatchCount(int request_id,
608 int count, 609 int count,
609 bool final_update) override; 610 bool final_update) override;
610 void reportFindInPageSelection(int request_id, 611 void reportFindInPageSelection(int request_id,
611 int active_match_ordinal, 612 int active_match_ordinal,
612 const blink::WebRect& sel) override; 613 const blink::WebRect& sel) override;
613 void requestStorageQuota(blink::WebStorageQuotaType type, 614 void requestStorageQuota(blink::WebStorageQuotaType type,
614 unsigned long long requested_size, 615 unsigned long long requested_size,
615 blink::WebStorageQuotaCallbacks callbacks) override; 616 blink::WebStorageQuotaCallbacks callbacks) override;
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1100 // When a frame is created by the browser process, it is for a pending 1101 // When a frame is created by the browser process, it is for a pending
1101 // navigation. In this case, it is not immediately attached to the frame tree 1102 // navigation. In this case, it is not immediately attached to the frame tree
1102 // if there is a RenderFrameProxy for the same frame. It is inserted into the 1103 // if there is a RenderFrameProxy for the same frame. It is inserted into the
1103 // frame tree at the time the pending navigation commits. 1104 // frame tree at the time the pending navigation commits.
1104 // Frames added by the parent document are created from the renderer process 1105 // Frames added by the parent document are created from the renderer process
1105 // and are immediately inserted in the frame tree. 1106 // and are immediately inserted in the frame tree.
1106 // TODO(dcheng): Remove this once we have FrameTreeHandle and can use the 1107 // TODO(dcheng): Remove this once we have FrameTreeHandle and can use the
1107 // Blink Web* layer to check for provisional frames. 1108 // Blink Web* layer to check for provisional frames.
1108 bool in_frame_tree_; 1109 bool in_frame_tree_;
1109 1110
1110 base::WeakPtr<RenderViewImpl> render_view_; 1111 RenderViewImpl* render_view_;
1111 int routing_id_; 1112 int routing_id_;
1112 1113
1113 // If this frame was created to replace a proxy, this will store the routing 1114 // If this frame was created to replace a proxy, this will store the routing
1114 // id of the proxy to replace at commit-time, at which time it will be 1115 // id of the proxy to replace at commit-time, at which time it will be
1115 // cleared. 1116 // cleared.
1116 // TODO(creis): Remove this after switching to PlzNavigate. 1117 // TODO(creis): Remove this after switching to PlzNavigate.
1117 int proxy_routing_id_; 1118 int proxy_routing_id_;
1118 1119
1119 // Non-null when the RenderFrame is a local root for compositing, input, 1120 // Non-null when the RenderFrame is a local root for compositing, input,
1120 // layout, etc. A local frame is also a local root iff it does not have a 1121 // layout, etc. A local frame is also a local root iff it does not have a
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
1340 bool browser_side_navigation_pending_ = false; 1341 bool browser_side_navigation_pending_ = false;
1341 1342
1342 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1343 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1343 1344
1344 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1345 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1345 }; 1346 };
1346 1347
1347 } // namespace content 1348 } // namespace content
1348 1349
1349 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1350 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/input/input_handler_wrapper.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698