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_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ | 5 #ifndef CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ |
6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ | 6 #define CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ |
7 | 7 |
8 // A collection of functions designed for use with content_shell based browser | 8 // A collection of functions designed for use with content_shell based browser |
9 // tests internal to the content/ module. | 9 // tests internal to the content/ module. |
10 // Note: If a function here also works with browser_tests, it should be in | 10 // Note: If a function here also works with browser_tests, it should be in |
(...skipping 24 matching lines...) Expand all Loading... |
35 class ToRenderFrameHost; | 35 class ToRenderFrameHost; |
36 | 36 |
37 // Navigates the frame represented by |node| to |url|, blocking until the | 37 // Navigates the frame represented by |node| to |url|, blocking until the |
38 // navigation finishes. | 38 // navigation finishes. |
39 void NavigateFrameToURL(FrameTreeNode* node, const GURL& url); | 39 void NavigateFrameToURL(FrameTreeNode* node, const GURL& url); |
40 | 40 |
41 // Sets the DialogManager to proceed by default or not when showing a | 41 // Sets the DialogManager to proceed by default or not when showing a |
42 // BeforeUnload dialog. | 42 // BeforeUnload dialog. |
43 void SetShouldProceedOnBeforeUnload(Shell* shell, bool proceed); | 43 void SetShouldProceedOnBeforeUnload(Shell* shell, bool proceed); |
44 | 44 |
| 45 // Extends the ToRenderFrameHost mechanism to FrameTreeNodes. |
| 46 RenderFrameHost* ConvertToRenderFrameHost(FrameTreeNode* frame_tree_node); |
| 47 |
45 // Creates compact textual representations of the state of the frame tree that | 48 // Creates compact textual representations of the state of the frame tree that |
46 // is appropriate for use in assertions. | 49 // is appropriate for use in assertions. |
47 // | 50 // |
48 // The diagrams show frame tree structure, the SiteInstance of current frames, | 51 // The diagrams show frame tree structure, the SiteInstance of current frames, |
49 // presence of pending frames, and the SiteInstances of any and all proxies. | 52 // presence of pending frames, and the SiteInstances of any and all proxies. |
50 // They look like this: | 53 // They look like this: |
51 // | 54 // |
52 // Site A (D pending) -- proxies for B C | 55 // Site A (D pending) -- proxies for B C |
53 // |--Site B --------- proxies for A C | 56 // |--Site B --------- proxies for A C |
54 // +--Site C --------- proxies for B A | 57 // +--Site C --------- proxies for B A |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 cc::SurfaceManager* surface_manager_; | 171 cc::SurfaceManager* surface_manager_; |
169 cc::SurfaceId root_surface_id_; | 172 cc::SurfaceId root_surface_id_; |
170 RenderWidgetHostViewChildFrame* target_view_; | 173 RenderWidgetHostViewChildFrame* target_view_; |
171 | 174 |
172 DISALLOW_COPY_AND_ASSIGN(SurfaceHitTestReadyNotifier); | 175 DISALLOW_COPY_AND_ASSIGN(SurfaceHitTestReadyNotifier); |
173 }; | 176 }; |
174 | 177 |
175 } // namespace content | 178 } // namespace content |
176 | 179 |
177 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ | 180 #endif // CONTENT_TEST_CONTENT_BROWSER_TEST_UTILS_INTERNAL_H_ |
OLD | NEW |