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