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

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

Issue 1195473005: Let PageClickTracker use onMouseDown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 years, 6 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
« no previous file with comments | « content/public/renderer/render_view_observer.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 de9397b2b2c3819f41fa557758e8eb7401d69630..36ca0be4943546e995869e332d6c10dce154eea1 100644
--- a/content/public/test/render_view_test.h
+++ b/content/public/test/render_view_test.h
@@ -115,6 +115,14 @@ class RenderViewTest : public testing::Test {
// Sends a left mouse click at the |point|.
void SimulatePointClick(const gfx::Point& point);
+ // Sends a right mouse click in the middle of the element with id
+ // |element_id|. Returns true if the event was sent, false otherwise
+ // (typically because the element was not found).
+ bool SimulateElementRightClick(const std::string& element_id);
+
+ // Sends a right mouse click at the |point|.
+ void SimulatePointRightClick(const gfx::Point& point);
+
// Sends a tap at the |rect|.
void SimulateRectTap(const gfx::Rect& rect);
« no previous file with comments | « content/public/renderer/render_view_observer.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698