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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 gfx::Rect GetElementBounds(const std::string& element_id); 108 gfx::Rect GetElementBounds(const std::string& element_id);
109 109
110 // Sends a left mouse click in the middle of the element with id |element_id|. 110 // Sends a left mouse click in the middle of the element with id |element_id|.
111 // Returns true if the event was sent, false otherwise (typically because 111 // Returns true if the event was sent, false otherwise (typically because
112 // the element was not found). 112 // the element was not found).
113 bool SimulateElementClick(const std::string& element_id); 113 bool SimulateElementClick(const std::string& element_id);
114 114
115 // Sends a left mouse click at the |point|. 115 // Sends a left mouse click at the |point|.
116 void SimulatePointClick(const gfx::Point& point); 116 void SimulatePointClick(const gfx::Point& point);
117 117
118 // Sends a right mouse click in the middle of the element with id
119 // |element_id|. Returns true if the event was sent, false otherwise
120 // (typically because the element was not found).
121 bool SimulateElementRightClick(const std::string& element_id);
122
123 // Sends a right mouse click at the |point|.
124 void SimulatePointRightClick(const gfx::Point& point);
125
118 // Sends a tap at the |rect|. 126 // Sends a tap at the |rect|.
119 void SimulateRectTap(const gfx::Rect& rect); 127 void SimulateRectTap(const gfx::Rect& rect);
120 128
121 // Simulates |node| being focused. 129 // Simulates |node| being focused.
122 void SetFocused(const blink::WebNode& node); 130 void SetFocused(const blink::WebNode& node);
123 131
124 // Simulates a navigation with a type of reload to the given url. 132 // Simulates a navigation with a type of reload to the given url.
125 void Reload(const GURL& url); 133 void Reload(const GURL& url);
126 134
127 // Returns the IPC message ID of the navigation message. 135 // Returns the IPC message ID of the navigation message.
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; 193 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_;
186 #endif 194 #endif
187 195
188 private: 196 private:
189 void GoToOffset(int offset, const PageState& state); 197 void GoToOffset(int offset, const PageState& state);
190 }; 198 };
191 199
192 } // namespace content 200 } // namespace content
193 201
194 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 202 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
OLDNEW
« 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