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_TEST_TEST_RENDERER_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDERER_HOST_H_ |
6 #define CONTENT_TEST_TEST_RENDERER_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDERER_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // RenderViewHost. The RenderViewHost must have been created while | 39 // RenderViewHost. The RenderViewHost must have been created while |
40 // RenderViewHost testing was enabled; use a | 40 // RenderViewHost testing was enabled; use a |
41 // RenderViewHostTestEnabler instance (see below) to do this. | 41 // RenderViewHostTestEnabler instance (see below) to do this. |
42 static RenderViewHostTester* For(RenderViewHost* host); | 42 static RenderViewHostTester* For(RenderViewHost* host); |
43 | 43 |
44 // This removes the need to expose | 44 // This removes the need to expose |
45 // RenderViewHostImpl::set_send_accessibility_updated_notifications() | 45 // RenderViewHostImpl::set_send_accessibility_updated_notifications() |
46 // outside of content. | 46 // outside of content. |
47 static void EnableAccessibilityUpdatedNotifications(RenderViewHost* host); | 47 static void EnableAccessibilityUpdatedNotifications(RenderViewHost* host); |
48 | 48 |
49 // If the given TabContents has a pending RVH, returns it, otherwise NULL. | 49 // If the given WebContentsImpl has a pending RVH, returns it, otherwise NULL. |
50 static RenderViewHost* GetPendingForController( | 50 static RenderViewHost* GetPendingForController( |
51 NavigationController* controller); | 51 NavigationController* controller); |
52 | 52 |
53 // This removes the need to expose | 53 // This removes the need to expose |
54 // RenderViewHostImpl::is_swapped_out() outside of content. | 54 // RenderViewHostImpl::is_swapped_out() outside of content. |
55 // | 55 // |
56 // This is safe to call on any RenderViewHost, not just ones | 56 // This is safe to call on any RenderViewHost, not just ones |
57 // constructed while a RenderViewHostTestEnabler is in play. | 57 // constructed while a RenderViewHostTestEnabler is in play. |
58 static bool IsRenderViewHostSwappedOut(RenderViewHost* rvh); | 58 static bool IsRenderViewHostSwappedOut(RenderViewHost* rvh); |
59 | 59 |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
175 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; | 175 scoped_ptr<aura::test::TestStackingClient> test_stacking_client_; |
176 #endif | 176 #endif |
177 RenderViewHostTestEnabler rvh_test_enabler_; | 177 RenderViewHostTestEnabler rvh_test_enabler_; |
178 | 178 |
179 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); | 179 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); |
180 }; | 180 }; |
181 | 181 |
182 } // namespace content | 182 } // namespace content |
183 | 183 |
184 #endif // CONTENT_TEST_TEST_RENDERER_HOST_H_ | 184 #endif // CONTENT_TEST_TEST_RENDERER_HOST_H_ |
OLD | NEW |