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

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

Issue 1414663011: Notifying the Out of Process Renderer about Visibility Change of a Remote Frame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed the Call to WebRemoteFrameImpl::close() and WebViewHelper::reset() in the Destructor of the … Created 4 years, 11 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
« no previous file with comments | « no previous file | content/browser/frame_host/cross_process_frame_connector.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 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 bool HasFocus(); 110 bool HasFocus();
111 111
112 private: 112 private:
113 // Handlers for messages received from the parent frame. 113 // Handlers for messages received from the parent frame.
114 void OnCompositorFrameSwappedACK( 114 void OnCompositorFrameSwappedACK(
115 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); 115 const FrameHostMsg_CompositorFrameSwappedACK_Params& params);
116 void OnReclaimCompositorResources( 116 void OnReclaimCompositorResources(
117 const FrameHostMsg_ReclaimCompositorResources_Params& params); 117 const FrameHostMsg_ReclaimCompositorResources_Params& params);
118 void OnForwardInputEvent(const blink::WebInputEvent* event); 118 void OnForwardInputEvent(const blink::WebInputEvent* event);
119 void OnFrameRectChanged(const gfx::Rect& frame_rect); 119 void OnFrameRectChanged(const gfx::Rect& frame_rect);
120 void OnVisibilityChanged(bool visible);
120 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); 121 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor);
121 void OnSatisfySequence(const cc::SurfaceSequence& sequence); 122 void OnSatisfySequence(const cc::SurfaceSequence& sequence);
122 void OnRequireSequence(const cc::SurfaceId& id, 123 void OnRequireSequence(const cc::SurfaceId& id,
123 const cc::SurfaceSequence& sequence); 124 const cc::SurfaceSequence& sequence);
124 125
125 void SetDeviceScaleFactor(float scale_factor); 126 void SetDeviceScaleFactor(float scale_factor);
126 void SetSize(gfx::Rect frame_rect); 127 void SetSize(gfx::Rect frame_rect);
127 128
128 // Retrieve the view for the top-level frame under the same WebContents. 129 // Retrieve the view for the top-level frame under the same WebContents.
129 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); 130 RenderWidgetHostViewBase* GetRootRenderWidgetHostView();
130 131
131 // The RenderFrameProxyHost that routes messages to the parent frame's 132 // The RenderFrameProxyHost that routes messages to the parent frame's
132 // renderer process. 133 // renderer process.
133 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; 134 RenderFrameProxyHost* frame_proxy_in_parent_renderer_;
134 135
135 // The RenderWidgetHostView for the frame. Initially NULL. 136 // The RenderWidgetHostView for the frame. Initially NULL.
136 RenderWidgetHostViewChildFrame* view_; 137 RenderWidgetHostViewChildFrame* view_;
137 138
138 gfx::Rect child_frame_rect_; 139 gfx::Rect child_frame_rect_;
139 float device_scale_factor_; 140 float device_scale_factor_;
140 }; 141 };
141 142
142 } // namespace content 143 } // namespace content
143 144
144 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 145 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
145 146
OLDNEW
« no previous file with comments | « no previous file | content/browser/frame_host/cross_process_frame_connector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698