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

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

Issue 2147963004: AX: Don't use listIndex in AXListBoxOption class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 95
96 void optionElementChildrenChanged(const HTMLOptionElement&); 96 void optionElementChildrenChanged(const HTMLOptionElement&);
97 97
98 void invalidateSelectedItems(); 98 void invalidateSelectedItems();
99 99
100 using ListItems = HeapVector<Member<HTMLElement>>; 100 using ListItems = HeapVector<Member<HTMLElement>>;
101 // We prefer |optionList()| to |listItems()|. 101 // We prefer |optionList()| to |listItems()|.
102 const ListItems& listItems() const; 102 const ListItems& listItems() const;
103 103
104 void accessKeyAction(bool sendMouseEvents) override; 104 void accessKeyAction(bool sendMouseEvents) override;
105 void accessKeySetSelectedIndex(int); 105 void selectOptionByAccessKey(HTMLOptionElement*);
106 106
107 void setOption(unsigned index, HTMLOptionElement*, ExceptionState&); 107 void setOption(unsigned index, HTMLOptionElement*, ExceptionState&);
108 108
109 Element* namedItem(const AtomicString& name); 109 Element* namedItem(const AtomicString& name);
110 HTMLOptionElement* item(unsigned index); 110 HTMLOptionElement* item(unsigned index);
111 111
112 void scrollToSelection(); 112 void scrollToSelection();
113 void scrollToOption(HTMLOptionElement*); 113 void scrollToOption(HTMLOptionElement*);
114 114
115 bool canSelectAll() const; 115 bool canSelectAll() const;
116 void selectAll(); 116 void selectAll();
117 int listToOptionIndex(int listIndex) const;
118 void listBoxOnChange(); 117 void listBoxOnChange();
119 int optionToListIndex(int optionIndex) const; 118 int optionToListIndex(int optionIndex) const;
120 int activeSelectionEndListIndex() const; 119 int activeSelectionEndListIndex() const;
121 HTMLOptionElement* activeSelectionEnd() const; 120 HTMLOptionElement* activeSelectionEnd() const;
122 void setActiveSelectionAnchor(HTMLOptionElement*); 121 void setActiveSelectionAnchor(HTMLOptionElement*);
123 void setActiveSelectionEnd(HTMLOptionElement*); 122 void setActiveSelectionEnd(HTMLOptionElement*);
124 123
125 // For use in the implementation of HTMLOptionElement. 124 // For use in the implementation of HTMLOptionElement.
126 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected); 125 void optionSelectionStateChanged(HTMLOptionElement*, bool optionIsSelected);
127 void optionInserted(HTMLOptionElement&, bool optionIsSelected); 126 void optionInserted(HTMLOptionElement&, bool optionIsSelected);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 293
295 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption); 294 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, FirstSelectableOption);
296 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption); 295 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, LastSelectableOption);
297 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption); 296 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, NextSelectableOption);
298 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption); 297 FRIEND_TEST_ALL_PREFIXES(HTMLSelectElementTest, PreviousSelectableOption);
299 }; 298 };
300 299
301 } // namespace blink 300 } // namespace blink
302 301
303 #endif // HTMLSelectElement_h 302 #endif // HTMLSelectElement_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLOptionElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLSelectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698