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

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: Added Tests Created 5 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
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 "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "ui/gfx/geometry/rect.h" 10 #include "ui/gfx/geometry/rect.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool HasFocus(); 105 bool HasFocus();
106 106
107 private: 107 private:
108 // Handlers for messages received from the parent frame. 108 // Handlers for messages received from the parent frame.
109 void OnCompositorFrameSwappedACK( 109 void OnCompositorFrameSwappedACK(
110 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); 110 const FrameHostMsg_CompositorFrameSwappedACK_Params& params);
111 void OnReclaimCompositorResources( 111 void OnReclaimCompositorResources(
112 const FrameHostMsg_ReclaimCompositorResources_Params& params); 112 const FrameHostMsg_ReclaimCompositorResources_Params& params);
113 void OnForwardInputEvent(const blink::WebInputEvent* event); 113 void OnForwardInputEvent(const blink::WebInputEvent* event);
114 void OnFrameRectChanged(const gfx::Rect& frame_rect); 114 void OnFrameRectChanged(const gfx::Rect& frame_rect);
115 void OnVisibilityChanged(bool visible);
kenrb 2015/11/11 16:09:33 At some point we might want to roll On*Changed mes
EhsanK 2015/11/11 19:13:18 Acknowledged.
115 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); 116 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor);
116 void OnSatisfySequence(const cc::SurfaceSequence& sequence); 117 void OnSatisfySequence(const cc::SurfaceSequence& sequence);
117 void OnRequireSequence(const cc::SurfaceId& id, 118 void OnRequireSequence(const cc::SurfaceId& id,
118 const cc::SurfaceSequence& sequence); 119 const cc::SurfaceSequence& sequence);
119 120
120 void SetDeviceScaleFactor(float scale_factor); 121 void SetDeviceScaleFactor(float scale_factor);
121 void SetSize(gfx::Rect frame_rect); 122 void SetSize(gfx::Rect frame_rect);
122 123
123 // Retrieve the view for the top-level frame under the same WebContents. 124 // Retrieve the view for the top-level frame under the same WebContents.
124 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); 125 RenderWidgetHostViewBase* GetRootRenderWidgetHostView();
125 126
126 // The RenderFrameProxyHost that routes messages to the parent frame's 127 // The RenderFrameProxyHost that routes messages to the parent frame's
127 // renderer process. 128 // renderer process.
128 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; 129 RenderFrameProxyHost* frame_proxy_in_parent_renderer_;
129 130
130 // The RenderWidgetHostView for the frame. Initially NULL. 131 // The RenderWidgetHostView for the frame. Initially NULL.
131 RenderWidgetHostViewChildFrame* view_; 132 RenderWidgetHostViewChildFrame* view_;
132 133
133 gfx::Rect child_frame_rect_; 134 gfx::Rect child_frame_rect_;
134 float device_scale_factor_; 135 float device_scale_factor_;
135 }; 136 };
136 137
137 } // namespace content 138 } // namespace content
138 139
139 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ 140 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_
140 141
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698