summaryrefslogtreecommitdiffstats
path: root/ui/views/event_utils.h
diff options
context:
space:
mode:
authordbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-28 09:51:44 +0000
committerdbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-28 09:51:44 +0000
commit08a0073bb8b13399d112db41ed57c2c2aa87375d (patch)
treef03d1f652ebb7d2857b8093864cde19b5beb2a4e /ui/views/event_utils.h
parentbba8921b1bbfb8da79bd8484df6c5b952363c367 (diff)
downloadchromium_src-08a0073bb8b13399d112db41ed57c2c2aa87375d.zip
chromium_src-08a0073bb8b13399d112db41ed57c2c2aa87375d.tar.gz
chromium_src-08a0073bb8b13399d112db41ed57c2c2aa87375d.tar.bz2
Fix autofill popup stickiness.
Unhandled clicks while the autofill popup is showing should dismiss it. Additionally, forward mouse events that aren't directly useful to the popup. R=estade@chromium.org,sadrul@chromium.org,sky@chromium.org BUG=259529 Review URL: https://chromiumcodereview.appspot.com/19458003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@219974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/event_utils.h')
-rw-r--r--ui/views/event_utils.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/ui/views/event_utils.h b/ui/views/event_utils.h
new file mode 100644
index 0000000..3527c50
--- /dev/null
+++ b/ui/views/event_utils.h
@@ -0,0 +1,25 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_VIEWS_EVENT_UTILS_H_
+#define UI_VIEWS_EVENT_UTILS_H_
+
+#include "ui/gfx/native_widget_types.h"
+#include "ui/views/views_export.h"
+
+namespace ui {
+class LocatedEvent;
+}
+
+namespace views {
+
+// Reposts a located event natively. Returns false when |event| could not be
+// reposted. |event| should be in screen coordinates. |window| is the target
+// window that the event will be forwarded to. Only some events are supported.
+VIEWS_EXPORT bool RepostLocatedEvent(gfx::NativeWindow window,
+ const ui::LocatedEvent& event);
+
+} // namespace views
+
+#endif // UI_VIEWS_EVENT_UTILS_H_