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

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

Issue 159743002: Select when disabled should not allow value change and popup is disabled (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Select disable attribute handling in parseAttribute Created 6 years, 10 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 int optionToListIndex(int optionIndex) const; 104 int optionToListIndex(int optionIndex) const;
105 int activeSelectionStartListIndex() const; 105 int activeSelectionStartListIndex() const;
106 int activeSelectionEndListIndex() const; 106 int activeSelectionEndListIndex() const;
107 void setActiveSelectionAnchorIndex(int); 107 void setActiveSelectionAnchorIndex(int);
108 void setActiveSelectionEndIndex(int); 108 void setActiveSelectionEndIndex(int);
109 void updateListBoxSelection(bool deselectOtherOptions); 109 void updateListBoxSelection(bool deselectOtherOptions);
110 110
111 // For use in the implementation of HTMLOptionElement. 111 // For use in the implementation of HTMLOptionElement.
112 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected); 112 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected);
113 bool anonymousIndexedSetter(unsigned, PassRefPtr<HTMLOptionElement>, Excepti onState&); 113 bool anonymousIndexedSetter(unsigned, PassRefPtr<HTMLOptionElement>, Excepti onState&);
114 virtual bool isDisabledFormControl() const OVERRIDE;
114 115
115 protected: 116 protected:
116 HTMLSelectElement(Document&, HTMLFormElement*); 117 HTMLSelectElement(Document&, HTMLFormElement*);
117 118
118 private: 119 private:
119 virtual const AtomicString& formControlType() const OVERRIDE; 120 virtual const AtomicString& formControlType() const OVERRIDE;
120 121
121 virtual bool shouldShowFocusRingOnMouseFocus() const OVERRIDE; 122 virtual bool shouldShowFocusRingOnMouseFocus() const OVERRIDE;
122 123
123 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusDirection) OVERRIDE; 124 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusDirection) OVERRIDE;
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 bool m_multiple; 206 bool m_multiple;
206 bool m_activeSelectionState; 207 bool m_activeSelectionState;
207 mutable bool m_shouldRecalcListItems; 208 mutable bool m_shouldRecalcListItems;
208 }; 209 };
209 210
210 DEFINE_NODE_TYPE_CASTS(HTMLSelectElement, hasTagName(HTMLNames::selectTag)); 211 DEFINE_NODE_TYPE_CASTS(HTMLSelectElement, hasTagName(HTMLNames::selectTag));
211 212
212 } // namespace 213 } // namespace
213 214
214 #endif 215 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698