| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 // Gesture and wheel events with unused scroll deltas must be bubbled to | 103 // Gesture and wheel events with unused scroll deltas must be bubbled to |
| 104 // ancestors who may consume the delta. | 104 // ancestors who may consume the delta. |
| 105 void BubbleScrollEvent(const blink::WebInputEvent& event); | 105 void BubbleScrollEvent(const blink::WebInputEvent& event); |
| 106 | 106 |
| 107 // Determines whether the root RenderWidgetHostView (and thus the current | 107 // Determines whether the root RenderWidgetHostView (and thus the current |
| 108 // page) has focus. | 108 // page) has focus. |
| 109 bool HasFocus(); | 109 bool HasFocus(); |
| 110 // Focuses the root RenderWidgetHostView. | 110 // Focuses the root RenderWidgetHostView. |
| 111 void FocusRootView(); | 111 void FocusRootView(); |
| 112 | 112 |
| 113 // Locks the mouse. Returns true if mouse is locked. |
| 114 bool LockMouse(); |
| 115 |
| 113 // Returns the parent RenderWidgetHostView or nullptr it it doesn't have one. | 116 // Returns the parent RenderWidgetHostView or nullptr it it doesn't have one. |
| 114 virtual RenderWidgetHostViewBase* GetParentRenderWidgetHostView(); | 117 virtual RenderWidgetHostViewBase* GetParentRenderWidgetHostView(); |
| 115 | 118 |
| 116 // Returns the view for the top-level frame under the same WebContents. | 119 // Returns the view for the top-level frame under the same WebContents. |
| 117 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); | 120 RenderWidgetHostViewBase* GetRootRenderWidgetHostView(); |
| 118 | 121 |
| 119 // Exposed for tests. | 122 // Exposed for tests. |
| 120 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { | 123 RenderWidgetHostViewBase* GetRootRenderWidgetHostViewForTesting() { |
| 121 return GetRootRenderWidgetHostView(); | 124 return GetRootRenderWidgetHostView(); |
| 122 } | 125 } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 142 RenderWidgetHostViewChildFrame* view_; | 145 RenderWidgetHostViewChildFrame* view_; |
| 143 | 146 |
| 144 gfx::Rect child_frame_rect_; | 147 gfx::Rect child_frame_rect_; |
| 145 float device_scale_factor_; | 148 float device_scale_factor_; |
| 146 }; | 149 }; |
| 147 | 150 |
| 148 } // namespace content | 151 } // namespace content |
| 149 | 152 |
| 150 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ | 153 #endif // CONTENT_BROWSER_FRAME_HOST_CROSS_PROCESS_FRAME_CONNECTOR_H_ |
| 151 | 154 |
| OLD | NEW |