| 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_RENDER_VIEW_HOST_H_ | 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 bool swapped_out); | 190 bool swapped_out); |
| 191 ~TestRenderViewHost() override; | 191 ~TestRenderViewHost() override; |
| 192 | 192 |
| 193 // RenderViewHostTester implementation. Note that CreateRenderView | 193 // RenderViewHostTester implementation. Note that CreateRenderView |
| 194 // is not specified since it is synonymous with the one from | 194 // is not specified since it is synonymous with the one from |
| 195 // RenderViewHostImpl, see below. | 195 // RenderViewHostImpl, see below. |
| 196 void SimulateWasHidden() override; | 196 void SimulateWasHidden() override; |
| 197 void SimulateWasShown() override; | 197 void SimulateWasShown() override; |
| 198 WebPreferences TestComputeWebkitPrefs() override; | 198 WebPreferences TestComputeWebkitPrefs() override; |
| 199 | 199 |
| 200 void TestOnUpdateStateWithFile( | 200 void TestOnUpdateStateWithFile(const base::FilePath& file_path); |
| 201 int page_id, const base::FilePath& file_path); | |
| 202 | 201 |
| 203 void TestOnStartDragging(const DropData& drop_data); | 202 void TestOnStartDragging(const DropData& drop_data); |
| 204 | 203 |
| 205 // If set, *delete_counter is incremented when this object destructs. | 204 // If set, *delete_counter is incremented when this object destructs. |
| 206 void set_delete_counter(int* delete_counter) { | 205 void set_delete_counter(int* delete_counter) { |
| 207 delete_counter_ = delete_counter; | 206 delete_counter_ = delete_counter; |
| 208 } | 207 } |
| 209 | 208 |
| 210 // The opener frame route id passed to CreateRenderView(). | 209 // The opener frame route id passed to CreateRenderView(). |
| 211 int opener_frame_route_id() const { return opener_frame_route_id_; } | 210 int opener_frame_route_id() const { return opener_frame_route_id_; } |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 private: | 300 private: |
| 302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> | 301 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> |
| 303 ScopedSetSupportedScaleFactors; | 302 ScopedSetSupportedScaleFactors; |
| 304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; | 303 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; |
| 305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); | 304 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); |
| 306 }; | 305 }; |
| 307 | 306 |
| 308 } // namespace content | 307 } // namespace content |
| 309 | 308 |
| 310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ | 309 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ |
| OLD | NEW |