| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 const base::string16& javascript, | 161 const base::string16& javascript, |
| 162 const JavaScriptResultCallback& callback, | 162 const JavaScriptResultCallback& callback, |
| 163 int world_id) override; | 163 int world_id) override; |
| 164 void ActivateFindInPageResultForAccessibility(int request_id) override; | 164 void ActivateFindInPageResultForAccessibility(int request_id) override; |
| 165 RenderViewHost* GetRenderViewHost() override; | 165 RenderViewHost* GetRenderViewHost() override; |
| 166 ServiceRegistry* GetServiceRegistry() override; | 166 ServiceRegistry* GetServiceRegistry() override; |
| 167 blink::WebPageVisibilityState GetVisibilityState() override; | 167 blink::WebPageVisibilityState GetVisibilityState() override; |
| 168 void InsertVisualStateCallback( | 168 void InsertVisualStateCallback( |
| 169 const VisualStateCallback& callback) override; | 169 const VisualStateCallback& callback) override; |
| 170 bool IsRenderFrameLive() override; | 170 bool IsRenderFrameLive() override; |
| 171 RenderWidgetHostView* GetView() override; |
| 171 #if defined(OS_ANDROID) | 172 #if defined(OS_ANDROID) |
| 172 void ActivateNearestFindResult(int request_id, float x, float y) override; | 173 void ActivateNearestFindResult(int request_id, float x, float y) override; |
| 173 void RequestFindMatchRects(int current_version) override; | 174 void RequestFindMatchRects(int current_version) override; |
| 174 #endif | 175 #endif |
| 175 | 176 |
| 176 // IPC::Sender | 177 // IPC::Sender |
| 177 bool Send(IPC::Message* msg) override; | 178 bool Send(IPC::Message* msg) override; |
| 178 | 179 |
| 179 // IPC::Listener | 180 // IPC::Listener |
| 180 bool OnMessageReceived(const IPC::Message& msg) override; | 181 bool OnMessageReceived(const IPC::Message& msg) override; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 // FrameTreeNode. The proper way to check whether a frame is loading is to | 245 // FrameTreeNode. The proper way to check whether a frame is loading is to |
| 245 // call FrameTreeNode::IsLoading. | 246 // call FrameTreeNode::IsLoading. |
| 246 bool is_loading() const { return is_loading_; } | 247 bool is_loading() const { return is_loading_; } |
| 247 | 248 |
| 248 // This returns the RenderFrameHost's owned RenderWidgetHost if it has one, | 249 // This returns the RenderFrameHost's owned RenderWidgetHost if it has one, |
| 249 // or else it returns nullptr. | 250 // or else it returns nullptr. |
| 250 // If the RenderFrameHost is the page's main frame, this returns instead a | 251 // If the RenderFrameHost is the page's main frame, this returns instead a |
| 251 // pointer to the RenderViewHost (which inherits RenderWidgetHost). | 252 // pointer to the RenderViewHost (which inherits RenderWidgetHost). |
| 252 RenderWidgetHostImpl* GetRenderWidgetHost(); | 253 RenderWidgetHostImpl* GetRenderWidgetHost(); |
| 253 | 254 |
| 254 // This returns the RenderWidgetHostView that can be used to control | |
| 255 // focus and visibility for this frame. | |
| 256 RenderWidgetHostView* GetView(); | |
| 257 | 255 |
| 258 // This function is called when this is a swapped out RenderFrameHost that | 256 // This function is called when this is a swapped out RenderFrameHost that |
| 259 // lives in the same process as the parent frame. The | 257 // lives in the same process as the parent frame. The |
| 260 // |cross_process_frame_connector| allows the non-swapped-out | 258 // |cross_process_frame_connector| allows the non-swapped-out |
| 261 // RenderFrameHost for a frame to communicate with the parent process | 259 // RenderFrameHost for a frame to communicate with the parent process |
| 262 // so that it may composite drawing data. | 260 // so that it may composite drawing data. |
| 263 // | 261 // |
| 264 // Ownership is not transfered. | 262 // Ownership is not transfered. |
| 265 void set_cross_process_frame_connector( | 263 void set_cross_process_frame_connector( |
| 266 CrossProcessFrameConnector* cross_process_frame_connector) { | 264 CrossProcessFrameConnector* cross_process_frame_connector) { |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 894 | 892 |
| 895 // NOTE: This must be the last member. | 893 // NOTE: This must be the last member. |
| 896 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 894 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 897 | 895 |
| 898 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 896 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 899 }; | 897 }; |
| 900 | 898 |
| 901 } // namespace content | 899 } // namespace content |
| 902 | 900 |
| 903 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 901 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |