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

Side by Side Diff: Source/web/PopupListBox.h

Issue 1013303004: Fix issue on <select> style change when popup is visible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011, Google Inc. All rights reserved. 2 * Copyright (c) 2011, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 255
256 // This is the index of the item marked as "selected" - i.e. displayed in 256 // This is the index of the item marked as "selected" - i.e. displayed in
257 // the widget on the page. 257 // the widget on the page.
258 int m_originalIndex; 258 int m_originalIndex;
259 259
260 // This is the index of the item that the user is hovered over or has 260 // This is the index of the item that the user is hovered over or has
261 // selected using the keyboard in the list. They have not confirmed this 261 // selected using the keyboard in the list. They have not confirmed this
262 // selection by clicking or pressing enter yet however. 262 // selection by clicking or pressing enter yet however.
263 int m_selectedIndex; 263 int m_selectedIndex;
264 264
265 // If >= 0, this is the index we should accept if the popup is "abandoned".
266 // This is used for keyboard navigation, where we want the
267 // selection to change immediately, and is only used if the settings
268 // acceptOnAbandon field is true.
269 int m_acceptedIndexOnAbandon;
270
271 // This is the number of rows visible in the popup. The maximum number 265 // This is the number of rows visible in the popup. The maximum number
272 // visible at a time is defined as being kMaxVisibleRows. For a scrolled 266 // visible at a time is defined as being kMaxVisibleRows. For a scrolled
273 // popup, this can be thought of as the page size in data units. 267 // popup, this can be thought of as the page size in data units.
274 int m_visibleRows; 268 int m_visibleRows;
275 269
276 // Our suggested width, not including scrollbar. 270 // Our suggested width, not including scrollbar.
277 int m_baseWidth; 271 int m_baseWidth;
278 272
279 // The maximum height we can be without being off-screen. 273 // The maximum height we can be without being off-screen.
280 int m_maxHeight; 274 int m_maxHeight;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 RawPtrWillBeMember<PopupContainer> m_container; 307 RawPtrWillBeMember<PopupContainer> m_container;
314 308
315 RefPtrWillBeMember<Scrollbar> m_verticalScrollbar; 309 RefPtrWillBeMember<Scrollbar> m_verticalScrollbar;
316 IntSize m_contentsSize; 310 IntSize m_contentsSize;
317 IntPoint m_scrollOffset; 311 IntPoint m_scrollOffset;
318 }; 312 };
319 313
320 } // namespace blink 314 } // namespace blink
321 315
322 #endif 316 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698