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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 float device_scale_factor() const { return device_scale_factor_; } | 93 float device_scale_factor() const { return device_scale_factor_; } |
94 void GetScreenInfo(blink::WebScreenInfo* results); | 94 void GetScreenInfo(blink::WebScreenInfo* results); |
95 void UpdateCursor(const WebCursor& cursor); | 95 void UpdateCursor(const WebCursor& cursor); |
96 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, | 96 gfx::Point TransformPointToRootCoordSpace(const gfx::Point& point, |
97 cc::SurfaceId surface_id); | 97 cc::SurfaceId surface_id); |
98 | 98 |
99 // Determines whether the root RenderWidgetHostView (and thus the current | 99 // Determines whether the root RenderWidgetHostView (and thus the current |
100 // page) has focus. | 100 // page) has focus. |
101 bool HasFocus(); | 101 bool HasFocus(); |
102 | 102 |
| 103 void NotifyRootViewOfTextInputStateChanged(); |
| 104 |
103 private: | 105 private: |
104 // Handlers for messages received from the parent frame. | 106 // Handlers for messages received from the parent frame. |
105 void OnForwardInputEvent(const blink::WebInputEvent* event); | 107 void OnForwardInputEvent(const blink::WebInputEvent* event); |
106 void OnFrameRectChanged(const gfx::Rect& frame_rect); | 108 void OnFrameRectChanged(const gfx::Rect& frame_rect); |
107 void OnVisibilityChanged(bool visible); | 109 void OnVisibilityChanged(bool visible); |
108 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); | 110 void OnInitializeChildFrame(gfx::Rect frame_rect, float scale_factor); |
109 void OnSatisfySequence(const cc::SurfaceSequence& sequence); | 111 void OnSatisfySequence(const cc::SurfaceSequence& sequence); |
110 void OnRequireSequence(const cc::SurfaceId& id, | 112 void OnRequireSequence(const cc::SurfaceId& id, |
111 const cc::SurfaceSequence& sequence); | 113 const cc::SurfaceSequence& sequence); |
112 | 114 |
(...skipping 11 matching lines...) Expand all Loading... |
124 RenderWidgetHostViewChildFrame* view_; | 126 RenderWidgetHostViewChildFrame* view_; |
125 | 127 |
126 gfx::Rect child_frame_rect_; | 128 gfx::Rect child_frame_rect_; |
127 float device_scale_factor_; | 129 float device_scale_factor_; |
128 }; | 130 }; |
129 | 131 |
130 } // namespace content | 132 } // namespace content |
131 | 133 |
132 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 134 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
133 | 135 |
OLD | NEW |