Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: content/public/test/render_view_test.h

Issue 1026493002: Allow only a user gesture to trigger autofill popup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Hide popup. Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/test/render_view_test.h
diff --git a/content/public/test/render_view_test.h b/content/public/test/render_view_test.h
index d512c547bced141a42e460340a1cf1e946f6edbf..e0b44c101ab65b67a5b048904755a0a2a492713a 100644
--- a/content/public/test/render_view_test.h
+++ b/content/public/test/render_view_test.h
@@ -22,6 +22,7 @@
struct ViewMsg_Resize_Params;
namespace blink {
+class WebInputElement;
class WebWidget;
}
@@ -127,6 +128,20 @@ class RenderViewTest : public testing::Test {
gfx::Rect resizer_rect,
bool is_fullscreen);
+ // Simulate typing the |ascii_character| into the browser. Also accepts
+ // ui::VKEY_BACK for backspace.
+ void SimulateUserTypingASCIICharacter(char ascii_character);
+
+ // Should be called after SimulateUserTypingASCIICharacter calls to process
+ // the input for autofill.
+ void ProcessInputForAutofill();
+
+ // Simulates user focusing |input|, erasing all text, and typing the
+ // |new_value| instead. Will process input events for autofill. This is a user
+ // gesture.
+ void SimulateUserInputChangeForElement(blink::WebInputElement* input,
+ const std::string& new_value);
+
// These are all methods from RenderViewImpl that we expose to testing code.
bool OnMessageReceived(const IPC::Message& msg);
void DidNavigateWithinPage(blink::WebLocalFrame* frame,
@@ -170,6 +185,7 @@ class RenderViewTest : public testing::Test {
private:
void GoToOffset(int offset, const PageState& state);
+ void LayoutMainFrame();
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698