| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <functional> | 10 #include <functional> |
| (...skipping 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 #endif | 529 #endif |
| 530 void EnterFullscreenMode(const GURL& origin) override; | 530 void EnterFullscreenMode(const GURL& origin) override; |
| 531 void ExitFullscreenMode(bool will_cause_resize) override; | 531 void ExitFullscreenMode(bool will_cause_resize) override; |
| 532 bool ShouldRouteMessageEvent( | 532 bool ShouldRouteMessageEvent( |
| 533 RenderFrameHost* target_rfh, | 533 RenderFrameHost* target_rfh, |
| 534 SiteInstance* source_site_instance) const override; | 534 SiteInstance* source_site_instance) const override; |
| 535 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; | 535 void EnsureOpenerProxiesExist(RenderFrameHost* source_rfh) override; |
| 536 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( | 536 std::unique_ptr<WebUIImpl> CreateWebUIForRenderFrameHost( |
| 537 const GURL& url) override; | 537 const GURL& url) override; |
| 538 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; | 538 void SetFocusedFrame(FrameTreeNode* node, SiteInstance* source) override; |
| 539 RenderFrameHost* GetFocusedFrameIncludingInnerWebContents() override; |
| 539 void OnFocusedElementChangedInFrame( | 540 void OnFocusedElementChangedInFrame( |
| 540 RenderFrameHostImpl* frame, | 541 RenderFrameHostImpl* frame, |
| 541 const gfx::Rect& bounds_in_root_view) override; | 542 const gfx::Rect& bounds_in_root_view) override; |
| 542 void CreateNewWindow( | 543 void CreateNewWindow( |
| 543 RenderFrameHost* opener, | 544 RenderFrameHost* opener, |
| 544 int32_t render_view_route_id, | 545 int32_t render_view_route_id, |
| 545 int32_t main_frame_route_id, | 546 int32_t main_frame_route_id, |
| 546 int32_t main_frame_widget_route_id, | 547 int32_t main_frame_widget_route_id, |
| 547 const mojom::CreateNewWindowParams& params, | 548 const mojom::CreateNewWindowParams& params, |
| 548 SessionStorageNamespace* session_storage_namespace) override; | 549 SessionStorageNamespace* session_storage_namespace) override; |
| (...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1158 // receive page focus and blur events when the containing window changes focus | 1159 // receive page focus and blur events when the containing window changes focus |
| 1159 // state. | 1160 // state. |
| 1160 | 1161 |
| 1161 // Returns true if |this| is the focused WebContents or an ancestor of the | 1162 // Returns true if |this| is the focused WebContents or an ancestor of the |
| 1162 // focused WebContents. | 1163 // focused WebContents. |
| 1163 bool ContainsOrIsFocusedWebContents(); | 1164 bool ContainsOrIsFocusedWebContents(); |
| 1164 | 1165 |
| 1165 // Returns the root of the WebContents tree. | 1166 // Returns the root of the WebContents tree. |
| 1166 WebContentsImpl* GetOutermostWebContents(); | 1167 WebContentsImpl* GetOutermostWebContents(); |
| 1167 | 1168 |
| 1169 // Walks up the outer WebContents chain and focuses the FrameTreeNode where |
| 1170 // each inner WebContents is attached. |
| 1171 void FocusOuterAttachmentFrameChain(); |
| 1172 |
| 1168 // Navigation helpers -------------------------------------------------------- | 1173 // Navigation helpers -------------------------------------------------------- |
| 1169 // | 1174 // |
| 1170 // These functions are helpers for Navigate() and DidNavigate(). | 1175 // These functions are helpers for Navigate() and DidNavigate(). |
| 1171 | 1176 |
| 1172 // Handles post-navigation tasks in DidNavigate AFTER the entry has been | 1177 // Handles post-navigation tasks in DidNavigate AFTER the entry has been |
| 1173 // committed to the navigation controller. Note that the navigation entry is | 1178 // committed to the navigation controller. Note that the navigation entry is |
| 1174 // not provided since it may be invalid/changed after being committed. The | 1179 // not provided since it may be invalid/changed after being committed. The |
| 1175 // current navigation entry is in the NavigationController at this point. | 1180 // current navigation entry is in the NavigationController at this point. |
| 1176 | 1181 |
| 1177 // Helper for CreateNewWidget/CreateNewFullscreenWidget. | 1182 // Helper for CreateNewWidget/CreateNewFullscreenWidget. |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1645 // Adds/removes a callback called on creation of each new WebContents. | 1650 // Adds/removes a callback called on creation of each new WebContents. |
| 1646 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1651 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1647 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1652 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1648 | 1653 |
| 1649 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); | 1654 DISALLOW_COPY_AND_ASSIGN(FriendWrapper); |
| 1650 }; | 1655 }; |
| 1651 | 1656 |
| 1652 } // namespace content | 1657 } // namespace content |
| 1653 | 1658 |
| 1654 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1659 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |