Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 122 // Handlers for messages received from the parent frame. | 122 // Handlers for messages received from the parent frame. |
| 123 void OnForwardInputEvent(const blink::WebInputEvent* event); | 123 void OnForwardInputEvent(const blink::WebInputEvent* event); |
| 124 void OnFrameRectChanged(const gfx::Rect& frame_rect); | 124 void OnFrameRectChanged(const gfx::Rect& frame_rect); |
| 125 void OnVisibilityChanged(bool visible); | 125 void OnVisibilityChanged(bool visible); |
| 126 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); | 126 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); |
| 127 void OnSatisfySequence(const cc::SurfaceSequence& sequence); | 127 void OnSatisfySequence(const cc::SurfaceSequence& sequence); |
| 128 void OnRequireSequence(const cc::SurfaceId& id, | 128 void OnRequireSequence(const cc::SurfaceId& id, |
| 129 const cc::SurfaceSequence& sequence); | 129 const cc::SurfaceSequence& sequence); |
| 130 | 130 |
| 131 void SetDeviceScaleFactor(float scale_factor); | 131 void SetDeviceScaleFactor(float scale_factor); |
| 132 void SetSize(gfx::Rect frame_rect); | 132 void SetRect(gfx::Rect frame_rect); |
|
dcheng
2016/03/17 20:21:35
Pass this by const ref.
kenrb
2016/03/18 17:46:10
Done.
| |
| 133 | 133 |
| 134 // The RenderFrameProxyHost that routes messages to the parent frame's | 134 // The RenderFrameProxyHost that routes messages to the parent frame's |
| 135 // renderer process. | 135 // renderer process. |
| 136 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; | 136 RenderFrameProxyHost* frame_proxy_in_parent_renderer_; |
| 137 | 137 |
| 138 // The RenderWidgetHostView for the frame. Initially NULL. | 138 // The RenderWidgetHostView for the frame. Initially NULL. |
| 139 RenderWidgetHostViewChildFrame* view_; | 139 RenderWidgetHostViewChildFrame* view_; |
| 140 | 140 |
| 141 gfx::Rect child_frame_rect_; | 141 gfx::Rect child_frame_rect_; |
| 142 float device_scale_factor_; | 142 float device_scale_factor_; |
| 143 }; | 143 }; |
| 144 | 144 |
| 145 } // namespace content | 145 } // namespace content |
| 146 | 146 |
| 147 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 147 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 148 | 148 |
| OLD | NEW |