| 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 "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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id, | 93 virtual void SetChildFrameSurface(const cc::SurfaceId& surface_id, |
| 94 const gfx::Size& frame_size, | 94 const gfx::Size& frame_size, |
| 95 float scale_factor, | 95 float scale_factor, |
| 96 const cc::SurfaceSequence& sequence); | 96 const cc::SurfaceSequence& sequence); |
| 97 | 97 |
| 98 gfx::Rect ChildFrameRect(); | 98 gfx::Rect ChildFrameRect(); |
| 99 float device_scale_factor() const { return device_scale_factor_; } | 99 float device_scale_factor() const { return device_scale_factor_; } |
| 100 void GetScreenInfo(blink::WebScreenInfo* results); | 100 void GetScreenInfo(blink::WebScreenInfo* results); |
| 101 void UpdateCursor(const WebCursor& cursor); | 101 void UpdateCursor(const WebCursor& cursor); |
| 102 | 102 |
| 103 // Determines whether the root RenderWidgetHostView (and thus the current |
| 104 // page) has focus. |
| 105 bool HasFocus(); |
| 106 |
| 103 private: | 107 private: |
| 104 // Handlers for messages received from the parent frame. | 108 // Handlers for messages received from the parent frame. |
| 105 void OnCompositorFrameSwappedACK( | 109 void OnCompositorFrameSwappedACK( |
| 106 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); | 110 const FrameHostMsg_CompositorFrameSwappedACK_Params& params); |
| 107 void OnReclaimCompositorResources( | 111 void OnReclaimCompositorResources( |
| 108 const FrameHostMsg_ReclaimCompositorResources_Params& params); | 112 const FrameHostMsg_ReclaimCompositorResources_Params& params); |
| 109 void OnForwardInputEvent(const blink::WebInputEvent* event); | 113 void OnForwardInputEvent(const blink::WebInputEvent* event); |
| 110 void OnFrameRectChanged(const gfx::Rect& frame_rect); | 114 void OnFrameRectChanged(const gfx::Rect& frame_rect); |
| 111 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); | 115 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); |
| 112 void OnSatisfySequence(const cc::SurfaceSequence& sequence); | 116 void OnSatisfySequence(const cc::SurfaceSequence& sequence); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 127 RenderWidgetHostViewChildFrame* view_; | 131 RenderWidgetHostViewChildFrame* view_; |
| 128 | 132 |
| 129 gfx::Rect child_frame_rect_; | 133 gfx::Rect child_frame_rect_; |
| 130 float device_scale_factor_; | 134 float device_scale_factor_; |
| 131 }; | 135 }; |
| 132 | 136 |
| 133 } // namespace content | 137 } // namespace content |
| 134 | 138 |
| 135 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 139 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 136 | 140 |
| OLD | NEW |