| 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_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
| 6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 | 161 |
| 162 // Simulates user focusing |input|, erasing all text, and typing the | 162 // Simulates user focusing |input|, erasing all text, and typing the |
| 163 // |new_value| instead. Will process input events for autofill. This is a user | 163 // |new_value| instead. Will process input events for autofill. This is a user |
| 164 // gesture. | 164 // gesture. |
| 165 void SimulateUserInputChangeForElement(blink::WebInputElement* input, | 165 void SimulateUserInputChangeForElement(blink::WebInputElement* input, |
| 166 const std::string& new_value); | 166 const std::string& new_value); |
| 167 | 167 |
| 168 // These are all methods from RenderViewImpl that we expose to testing code. | 168 // These are all methods from RenderViewImpl that we expose to testing code. |
| 169 bool OnMessageReceived(const IPC::Message& msg); | 169 bool OnMessageReceived(const IPC::Message& msg); |
| 170 void DidNavigateWithinPage(blink::WebLocalFrame* frame, | 170 void DidNavigateWithinPage(blink::WebLocalFrame* frame, |
| 171 bool is_new_navigation); | 171 bool is_new_navigation, |
| 172 bool content_initiated); |
| 172 blink::WebWidget* GetWebWidget(); | 173 blink::WebWidget* GetWebWidget(); |
| 173 | 174 |
| 174 // Allows a subclass to override the various content client implementations. | 175 // Allows a subclass to override the various content client implementations. |
| 175 virtual ContentClient* CreateContentClient(); | 176 virtual ContentClient* CreateContentClient(); |
| 176 virtual ContentBrowserClient* CreateContentBrowserClient(); | 177 virtual ContentBrowserClient* CreateContentBrowserClient(); |
| 177 virtual ContentRendererClient* CreateContentRendererClient(); | 178 virtual ContentRendererClient* CreateContentRendererClient(); |
| 178 | 179 |
| 179 // Allows a subclass to customize the initial size of the RenderView. | 180 // Allows a subclass to customize the initial size of the RenderView. |
| 180 virtual std::unique_ptr<ResizeParams> InitialSizeParams(); | 181 virtual std::unique_ptr<ResizeParams> InitialSizeParams(); |
| 181 | 182 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 212 std::unique_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; | 213 std::unique_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; |
| 213 #endif | 214 #endif |
| 214 | 215 |
| 215 private: | 216 private: |
| 216 void GoToOffset(int offset, const GURL& url, const PageState& state); | 217 void GoToOffset(int offset, const GURL& url, const PageState& state); |
| 217 }; | 218 }; |
| 218 | 219 |
| 219 } // namespace content | 220 } // namespace content |
| 220 | 221 |
| 221 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 222 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
| OLD | NEW |