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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 // For use in the implementation of HTMLOptionElement. | 105 // For use in the implementation of HTMLOptionElement. |
106 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected); | 106 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected); |
107 | 107 |
108 protected: | 108 protected: |
109 HTMLSelectElement(const QualifiedName&, Document*, HTMLFormElement*); | 109 HTMLSelectElement(const QualifiedName&, Document*, HTMLFormElement*); |
110 | 110 |
111 private: | 111 private: |
112 virtual const AtomicString& formControlType() const; | 112 virtual const AtomicString& formControlType() const; |
113 | 113 |
114 virtual bool isKeyboardFocusable(KeyboardEvent*) const; | 114 virtual bool isKeyboardFocusable(KeyboardEvent*) const; |
115 virtual bool isMouseFocusable() const; | |
116 | 115 |
117 virtual void dispatchFocusEvent(PassRefPtr<Node> oldFocusedNode, FocusDirect
ion) OVERRIDE; | 116 virtual void dispatchFocusEvent(PassRefPtr<Node> oldFocusedNode, FocusDirect
ion) OVERRIDE; |
118 virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode); | 117 virtual void dispatchBlurEvent(PassRefPtr<Node> newFocusedNode); |
119 | 118 |
120 virtual bool canStartSelection() const { return false; } | 119 virtual bool canStartSelection() const { return false; } |
121 | 120 |
122 virtual bool isEnumeratable() const { return true; } | 121 virtual bool isEnumeratable() const { return true; } |
123 virtual bool supportLabels() const OVERRIDE { return true; } | 122 virtual bool supportLabels() const OVERRIDE { return true; } |
124 | 123 |
125 virtual FormControlState saveFormControlState() const OVERRIDE; | 124 virtual FormControlState saveFormControlState() const OVERRIDE; |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 { | 216 { |
218 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLSelectElement(node)); | 217 ASSERT_WITH_SECURITY_IMPLICATION(!node || isHTMLSelectElement(node)); |
219 return static_cast<const HTMLSelectElement*>(node); | 218 return static_cast<const HTMLSelectElement*>(node); |
220 } | 219 } |
221 | 220 |
222 void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch
anyone doing an unnecessary cast. | 221 void toHTMLSelectElement(const HTMLSelectElement*); // This overload will catch
anyone doing an unnecessary cast. |
223 | 222 |
224 } // namespace | 223 } // namespace |
225 | 224 |
226 #endif | 225 #endif |
OLD | NEW |