summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/autofill/autofill_popup_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/ui/autofill/autofill_popup_controller.h')
-rw-r--r--chrome/browser/ui/autofill/autofill_popup_controller.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/ui/autofill/autofill_popup_controller.h b/chrome/browser/ui/autofill/autofill_popup_controller.h
index 63a7549..4b4f7c6 100644
--- a/chrome/browser/ui/autofill/autofill_popup_controller.h
+++ b/chrome/browser/ui/autofill/autofill_popup_controller.h
@@ -18,6 +18,10 @@ class Rect;
class RectF;
}
+namespace ui {
+class MouseEvent;
+}
+
namespace autofill {
// This interface provides data to an AutofillPopupView.
@@ -41,6 +45,9 @@ class AutofillPopupController {
// The user has moved the mouse outside of the popup.
virtual void MouseExitedPopup() = 0;
+ // Whether |event| should be reposted to the native window management.
+ virtual bool ShouldRepostEvent(const ui::MouseEvent& event) = 0;
+
// Accepts the suggestion at |index|.
virtual void AcceptSuggestion(size_t index) = 0;
@@ -100,6 +107,9 @@ class AutofillPopupController {
// hovered or has keyboard focus.
virtual int selected_line() const = 0;
+ // Whether the view should be hidden on outside mouse presses.
+ virtual bool hide_on_outside_click() const = 0;
+
protected:
virtual ~AutofillPopupController() {}
};