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

Side by Side Diff: content/public/test/render_view_test.h

Issue 884583002: [autofill] Show autofill popup when focusing a field by tapping near its edge. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bounds-change
Patch Set: Use Blink hit testing Created 5 years, 10 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 unified diff | Download patch
OLDNEW
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 <string> 8 #include <string>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 gfx::Rect GetElementBounds(const std::string& element_id); 103 gfx::Rect GetElementBounds(const std::string& element_id);
104 104
105 // Sends a left mouse click in the middle of the element with id |element_id|. 105 // Sends a left mouse click in the middle of the element with id |element_id|.
106 // Returns true if the event was sent, false otherwise (typically because 106 // Returns true if the event was sent, false otherwise (typically because
107 // the element was not found). 107 // the element was not found).
108 bool SimulateElementClick(const std::string& element_id); 108 bool SimulateElementClick(const std::string& element_id);
109 109
110 // Sends a left mouse click at the |point|. 110 // Sends a left mouse click at the |point|.
111 void SimulatePointClick(const gfx::Point& point); 111 void SimulatePointClick(const gfx::Point& point);
112 112
113 // Sends a tap at the |rect|.
114 void SimulateRectTap(const gfx::Rect& rect);
115
113 // Simulates |node| being focused. 116 // Simulates |node| being focused.
114 void SetFocused(const blink::WebNode& node); 117 void SetFocused(const blink::WebNode& node);
115 118
116 // Simulates a navigation with a type of reload to the given url. 119 // Simulates a navigation with a type of reload to the given url.
117 void Reload(const GURL& url); 120 void Reload(const GURL& url);
118 121
119 // Returns the IPC message ID of the navigation message. 122 // Returns the IPC message ID of the navigation message.
120 uint32 GetNavigationIPCType(); 123 uint32 GetNavigationIPCType();
121 124
122 // Resize the view. 125 // Resize the view.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; 168 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_;
166 #endif 169 #endif
167 170
168 private: 171 private:
169 void GoToOffset(int offset, const PageState& state); 172 void GoToOffset(int offset, const PageState& state);
170 }; 173 };
171 174
172 } // namespace content 175 } // namespace content
173 176
174 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 177 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
OLDNEW
« no previous file with comments | « components/autofill/content/renderer/page_click_tracker.cc ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698