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

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

Issue 120373005: OnChange event should fire if the multiple selection changes in listbox using mouse (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed unnecessary blank lines in layout test Created 6 years, 12 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 void add(HTMLElement*, HTMLElement* beforeElement, ExceptionState&); 63 void add(HTMLElement*, HTMLElement* beforeElement, ExceptionState&);
64 64
65 using Node::remove; 65 using Node::remove;
66 void remove(int index); 66 void remove(int index);
67 void remove(HTMLOptionElement*); 67 void remove(HTMLOptionElement*);
68 68
69 String value() const; 69 String value() const;
70 void setValue(const String&); 70 void setValue(const String&);
71 71
72 bool isOnChangeFired() const { return m_onChangeFired; }
73 void setOnChangeFired(bool fired) { m_onChangeFired = fired; }
74 bool isLastOnChangeSelectionEmpty() { return m_lastOnChangeSelection.isEmpty (); }
75
72 PassRefPtr<HTMLOptionsCollection> options(); 76 PassRefPtr<HTMLOptionsCollection> options();
73 PassRefPtr<HTMLCollection> selectedOptions(); 77 PassRefPtr<HTMLCollection> selectedOptions();
74 78
75 void optionElementChildrenChanged(); 79 void optionElementChildrenChanged();
76 80
77 void setRecalcListItems(); 81 void setRecalcListItems();
78 void invalidateSelectedItems(); 82 void invalidateSelectedItems();
79 void updateListItemSelectedStates(); 83 void updateListItemSelectedStates();
80 84
81 const Vector<HTMLElement*>& listItems() const; 85 const Vector<HTMLElement*>& listItems() const;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 TypeAhead m_typeAhead; 206 TypeAhead m_typeAhead;
203 int m_size; 207 int m_size;
204 int m_lastOnChangeIndex; 208 int m_lastOnChangeIndex;
205 int m_activeSelectionAnchorIndex; 209 int m_activeSelectionAnchorIndex;
206 int m_activeSelectionEndIndex; 210 int m_activeSelectionEndIndex;
207 bool m_isProcessingUserDrivenChange; 211 bool m_isProcessingUserDrivenChange;
208 bool m_multiple; 212 bool m_multiple;
209 bool m_activeSelectionState; 213 bool m_activeSelectionState;
210 mutable bool m_shouldRecalcListItems; 214 mutable bool m_shouldRecalcListItems;
211 bool m_isParsingInProgress; 215 bool m_isParsingInProgress;
216 bool m_onChangeFired;
212 }; 217 };
213 218
214 DEFINE_NODE_TYPE_CASTS(HTMLSelectElement, hasTagName(HTMLNames::selectTag)); 219 DEFINE_NODE_TYPE_CASTS(HTMLSelectElement, hasTagName(HTMLNames::selectTag));
215 220
216 } // namespace 221 } // namespace
217 222
218 #endif 223 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698