| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // Simulates |node| being focused. | 141 // Simulates |node| being focused. |
| 142 void SetFocused(const blink::WebNode& node); | 142 void SetFocused(const blink::WebNode& node); |
| 143 | 143 |
| 144 // Simulates a navigation with a type of reload to the given url. | 144 // Simulates a navigation with a type of reload to the given url. |
| 145 void Reload(const GURL& url); | 145 void Reload(const GURL& url); |
| 146 | 146 |
| 147 // Returns the IPC message ID of the navigation message. | 147 // Returns the IPC message ID of the navigation message. |
| 148 uint32_t GetNavigationIPCType(); | 148 uint32_t GetNavigationIPCType(); |
| 149 | 149 |
| 150 // Resize the view. | 150 // Resize the view. |
| 151 void Resize(gfx::Size new_size, | 151 void Resize(gfx::Size new_size, bool is_fullscreen); |
| 152 gfx::Rect resizer_rect, | |
| 153 bool is_fullscreen); | |
| 154 | 152 |
| 155 // Simulates typing the |ascii_character| into this render view. Also accepts | 153 // Simulates typing the |ascii_character| into this render view. Also accepts |
| 156 // ui::VKEY_BACK for backspace. Will flush the message loop if | 154 // ui::VKEY_BACK for backspace. Will flush the message loop if |
| 157 // |flush_message_loop| is true. | 155 // |flush_message_loop| is true. |
| 158 void SimulateUserTypingASCIICharacter(char ascii_character, | 156 void SimulateUserTypingASCIICharacter(char ascii_character, |
| 159 bool flush_message_loop); | 157 bool flush_message_loop); |
| 160 | 158 |
| 161 // Simulates user focusing |input|, erasing all text, and typing the | 159 // Simulates user focusing |input|, erasing all text, and typing the |
| 162 // |new_value| instead. Will process input events for autofill. This is a user | 160 // |new_value| instead. Will process input events for autofill. This is a user |
| 163 // gesture. | 161 // gesture. |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 std::unique_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; | 210 std::unique_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; |
| 213 #endif | 211 #endif |
| 214 | 212 |
| 215 private: | 213 private: |
| 216 void GoToOffset(int offset, const GURL& url, const PageState& state); | 214 void GoToOffset(int offset, const GURL& url, const PageState& state); |
| 217 }; | 215 }; |
| 218 | 216 |
| 219 } // namespace content | 217 } // namespace content |
| 220 | 218 |
| 221 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 219 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
| OLD | NEW |