| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |