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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLSelectElement.h

Issue 1955963002: [Autofill] Send events to fields being autofilled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * (C) 1999 Antti Koivisto (koivisto@kde.org) 4 * (C) 1999 Antti Koivisto (koivisto@kde.org)
5 * (C) 2000 Dirk Mueller (mueller@kde.org) 5 * (C) 2000 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 void provisionalSelectionChanged(unsigned); 148 void provisionalSelectionChanged(unsigned);
149 void popupDidHide(); 149 void popupDidHide();
150 bool popupIsVisible() const { return m_popupIsVisible; } 150 bool popupIsVisible() const { return m_popupIsVisible; }
151 int optionIndexToBeShown() const; 151 int optionIndexToBeShown() const;
152 void showPopup(); 152 void showPopup();
153 void hidePopup(); 153 void hidePopup();
154 PopupMenu* popup() const { return m_popup.get(); } 154 PopupMenu* popup() const { return m_popup.get(); }
155 155
156 void resetTypeAheadSessionForTesting(); 156 void resetTypeAheadSessionForTesting();
157 157
158 void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType, InputDevic eCapabilities* sourceCapabilities) override;
159 void dispatchBlurEvent(Element* newFocusedElement, WebFocusType, InputDevice Capabilities* sourceCapabilities) override;
160
158 DECLARE_VIRTUAL_TRACE(); 161 DECLARE_VIRTUAL_TRACE();
159 162
160 protected: 163 protected:
161 HTMLSelectElement(Document&, HTMLFormElement*); 164 HTMLSelectElement(Document&, HTMLFormElement*);
162 165
163 private: 166 private:
164 const AtomicString& formControlType() const override; 167 const AtomicString& formControlType() const override;
165 168
166 bool shouldShowFocusRingOnMouseFocus() const override; 169 bool shouldShowFocusRingOnMouseFocus() const override;
167 170
168 void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType, InputDevic eCapabilities* sourceCapabilities) override;
169 void dispatchBlurEvent(Element* newFocusedElement, WebFocusType, InputDevice Capabilities* sourceCapabilities) override;
170
171 bool canStartSelection() const override { return false; } 171 bool canStartSelection() const override { return false; }
172 172
173 bool isEnumeratable() const override { return true; } 173 bool isEnumeratable() const override { return true; }
174 bool isInteractiveContent() const override; 174 bool isInteractiveContent() const override;
175 bool supportsAutofocus() const override; 175 bool supportsAutofocus() const override;
176 bool supportLabels() const override { return true; } 176 bool supportLabels() const override { return true; }
177 177
178 FormControlState saveFormControlState() const override; 178 FormControlState saveFormControlState() const override;
179 void restoreFormControlState(const FormControlState&) override; 179 void restoreFormControlState(const FormControlState&) override;
180 180
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 272
273 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption); 273 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption);
274 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption); 274 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption);
275 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption); 275 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption);
276 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption); 276 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption);
277 }; 277 };
278 278
279 } // namespace blink 279 } // namespace blink
280 280
281 #endif // HTMLSelectElement_h 281 #endif // HTMLSelectElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698