| 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 | 172 |
| 172 // IPC::Sender | 173 // IPC::Sender |
| 173 bool Send(IPC::Message* msg) override; | 174 bool Send(IPC::Message* msg) override; |
| 174 | 175 |
| 175 // IPC::Listener | 176 // IPC::Listener |
| 176 bool OnMessageReceived(const IPC::Message& msg) override; | 177 bool OnMessageReceived(const IPC::Message& msg) override; |
| 177 | 178 |
| 178 // BrowserAccessibilityDelegate | 179 // BrowserAccessibilityDelegate |
| 179 void AccessibilitySetFocus(int acc_obj_id) override; | 180 void AccessibilitySetFocus(int acc_obj_id) override; |
| 180 void AccessibilityDoDefaultAction(int acc_obj_id) override; | 181 void AccessibilityDoDefaultAction(int acc_obj_id) override; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 // FrameTreeNode. The proper way to check whether a frame is loading is to | 241 // FrameTreeNode. The proper way to check whether a frame is loading is to |
| 241 // call FrameTreeNode::IsLoading. | 242 // call FrameTreeNode::IsLoading. |
| 242 bool is_loading() const { return is_loading_; } | 243 bool is_loading() const { return is_loading_; } |
| 243 | 244 |
| 244 // This returns the RenderFrameHost's owned RenderWidgetHost if it has one, | 245 // This returns the RenderFrameHost's owned RenderWidgetHost if it has one, |
| 245 // or else it returns nullptr. | 246 // or else it returns nullptr. |
| 246 // If the RenderFrameHost is the page's main frame, this returns instead a | 247 // If the RenderFrameHost is the page's main frame, this returns instead a |
| 247 // pointer to the RenderViewHost (which inherits RenderWidgetHost). | 248 // pointer to the RenderViewHost (which inherits RenderWidgetHost). |
| 248 RenderWidgetHostImpl* GetRenderWidgetHost(); | 249 RenderWidgetHostImpl* GetRenderWidgetHost(); |
| 249 | 250 |
| 250 // This returns the RenderWidgetHostView that can be used to control | |
| 251 // focus and visibility for this frame. | |
| 252 RenderWidgetHostView* GetView(); | |
| 253 | 251 |
| 254 // This function is called when this is a swapped out RenderFrameHost that | 252 // This function is called when this is a swapped out RenderFrameHost that |
| 255 // lives in the same process as the parent frame. The | 253 // lives in the same process as the parent frame. The |
| 256 // |cross_process_frame_connector| allows the non-swapped-out | 254 // |cross_process_frame_connector| allows the non-swapped-out |
| 257 // RenderFrameHost for a frame to communicate with the parent process | 255 // RenderFrameHost for a frame to communicate with the parent process |
| 258 // so that it may composite drawing data. | 256 // so that it may composite drawing data. |
| 259 // | 257 // |
| 260 // Ownership is not transfered. | 258 // Ownership is not transfered. |
| 261 void set_cross_process_frame_connector( | 259 void set_cross_process_frame_connector( |
| 262 CrossProcessFrameConnector* cross_process_frame_connector) { | 260 CrossProcessFrameConnector* cross_process_frame_connector) { |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 890 | 888 |
| 891 // NOTE: This must be the last member. | 889 // NOTE: This must be the last member. |
| 892 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 890 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 893 | 891 |
| 894 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 892 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 895 }; | 893 }; |
| 896 | 894 |
| 897 } // namespace content | 895 } // namespace content |
| 898 | 896 |
| 899 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 897 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |