| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 SiteInstance* AccessibilityGetSiteInstance() override; | 197 SiteInstance* AccessibilityGetSiteInstance() override; |
| 198 void AccessibilityHitTest(const gfx::Point& point) override; | 198 void AccessibilityHitTest(const gfx::Point& point) override; |
| 199 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override; | 199 void AccessibilitySetAccessibilityFocus(int acc_obj_id) override; |
| 200 void AccessibilityFatalError() override; | 200 void AccessibilityFatalError() override; |
| 201 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 201 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
| 202 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; | 202 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; |
| 203 | 203 |
| 204 // SiteInstanceImpl::Observer | 204 // SiteInstanceImpl::Observer |
| 205 void RenderProcessGone(SiteInstanceImpl* site_instance) override; | 205 void RenderProcessGone(SiteInstanceImpl* site_instance) override; |
| 206 | 206 |
| 207 void SendTextSurroundingSelectionRequest( |
| 208 const TextSurroundingSelectionCallback& callback, |
| 209 int max_length) override; |
| 210 bool HasTextSurroundingSelectionCallback() override; |
| 211 |
| 207 // Creates a RenderFrame in the renderer process. | 212 // Creates a RenderFrame in the renderer process. |
| 208 bool CreateRenderFrame(int proxy_routing_id, | 213 bool CreateRenderFrame(int proxy_routing_id, |
| 209 int opener_routing_id, | 214 int opener_routing_id, |
| 210 int parent_routing_id, | 215 int parent_routing_id, |
| 211 int previous_sibling_routing_id); | 216 int previous_sibling_routing_id); |
| 212 | 217 |
| 213 // Tracks whether the RenderFrame for this RenderFrameHost has been created in | 218 // Tracks whether the RenderFrame for this RenderFrameHost has been created in |
| 214 // the renderer process. This is currently only used for subframes. | 219 // the renderer process. This is currently only used for subframes. |
| 215 // TODO(creis): Use this for main frames as well when RVH goes away. | 220 // TODO(creis): Use this for main frames as well when RVH goes away. |
| 216 void SetRenderFrameCreated(bool created); | 221 void SetRenderFrameCreated(bool created); |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1032 bool should_reuse_web_ui_; | 1037 bool should_reuse_web_ui_; |
| 1033 | 1038 |
| 1034 // PlzNavigate: The LoFi state of the last navigation. This is used during | 1039 // PlzNavigate: The LoFi state of the last navigation. This is used during |
| 1035 // history navigation of subframes to ensure that subframes navigate with the | 1040 // history navigation of subframes to ensure that subframes navigate with the |
| 1036 // same LoFi status as the top-level frame. | 1041 // same LoFi status as the top-level frame. |
| 1037 LoFiState last_navigation_lofi_state_; | 1042 LoFiState last_navigation_lofi_state_; |
| 1038 | 1043 |
| 1039 mojo::Binding<mojom::FrameHost> frame_host_binding_; | 1044 mojo::Binding<mojom::FrameHost> frame_host_binding_; |
| 1040 mojom::FramePtr frame_; | 1045 mojom::FramePtr frame_; |
| 1041 | 1046 |
| 1047 // Callback for responding when |
| 1048 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. |
| 1049 TextSurroundingSelectionCallback text_surrounding_selection_callback_; |
| 1050 |
| 1042 // NOTE: This must be the last member. | 1051 // NOTE: This must be the last member. |
| 1043 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1052 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1044 | 1053 |
| 1045 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1054 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1046 }; | 1055 }; |
| 1047 | 1056 |
| 1048 } // namespace content | 1057 } // namespace content |
| 1049 | 1058 |
| 1050 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1059 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |