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

Unified Diff: ui/aura/test/event_generator.cc

Issue 23477022: Two changes to desktop aura for tooltips: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2013 Created 7 years, 4 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 | « ui/aura/test/event_generator.h ('k') | ui/views/corewm/tooltip_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/event_generator.cc
diff --git a/ui/aura/test/event_generator.cc b/ui/aura/test/event_generator.cc
index fd6c2c68c9c8728d5b745029881938fa8566a4b9..d111220ced59c6999bad816ed3b8c150ea34d42d 100644
--- a/ui/aura/test/event_generator.cc
+++ b/ui/aura/test/event_generator.cc
@@ -145,6 +145,14 @@ void EventGenerator::ReleaseRightButton() {
ReleaseButton(ui::EF_RIGHT_MOUSE_BUTTON);
}
+void EventGenerator::SendMouseExit() {
+ gfx::Point exit_location(current_location_);
+ ConvertPointToTarget(current_root_window_, &exit_location);
+ ui::MouseEvent mouseev(ui::ET_MOUSE_EXITED, exit_location, exit_location,
+ flags_);
+ Dispatch(&mouseev);
+}
+
void EventGenerator::MoveMouseToInHost(const gfx::Point& point_in_host) {
const ui::EventType event_type = (flags_ & ui::EF_LEFT_MOUSE_BUTTON) ?
ui::ET_MOUSE_DRAGGED : ui::ET_MOUSE_MOVED;
« no previous file with comments | « ui/aura/test/event_generator.h ('k') | ui/views/corewm/tooltip_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698