namespace ui {
class ComboboxModel;
+class EventHandler;
class KeyEvent;
}
virtual void GetUserInput(DialogSection section,
FieldValueMap* output) OVERRIDE;
virtual base::string16 GetCvc() OVERRIDE;
- virtual bool HitTestInput(ServerFieldType type,
- const gfx::Point& screen_point) OVERRIDE;
virtual bool SaveDetailsLocally() OVERRIDE;
virtual const content::NavigationController* ShowSignIn() OVERRIDE;
virtual void HideSignIn() OVERRIDE;
// views::WidgetObserver implementation:
virtual void OnWidgetClosing(views::Widget* widget) OVERRIDE;
+ virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
virtual void OnWidgetBoundsChanged(views::Widget* widget,
const gfx::Rect& new_bounds) OVERRIDE;
DISALLOW_COPY_AND_ASSIGN(DetailsContainerView);
};
- // A view that contains a suggestion (such as a known address) and a link to
- // edit the suggestion.
+ // A view that contains a suggestion (such as a known address).
class SuggestionView : public views::View {
public:
explicit SuggestionView(AutofillDialogViews* autofill_dialog);
views::ImageView* icon_;
// The input set by ShowTextfield.
ExpandingTextfield* textfield_;
- // An "Edit" link that flips to editable inputs rather than suggestion text.
- views::Link* edit_link_;
DISALLOW_COPY_AND_ASSIGN(SuggestionView);
};
// state.
void SetEditabilityForSection(DialogSection section);
+ // Handles mouse presses on the non-client view.
+ void NonClientMousePressed();
+
// The delegate that drives this view. Weak pointer, always non-NULL.
AutofillDialogViewDelegate* const delegate_;
// Delegate for the sign-in dialog's webview.
scoped_ptr<AutofillDialogSignInDelegate> sign_in_delegate_;
+ // Used to tell the delegate when focus moves to hide the Autofill popup.
+ scoped_ptr<ui::EventHandler> event_handler_;
+
DISALLOW_COPY_AND_ASSIGN(AutofillDialogViews);
};