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

Side by Side Diff: Source/core/html/forms/PopupMenuClient.h

Issue 1013303004: Fix issue on <select> style change when popup is visible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed test expectation Created 5 years, 8 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) 2010 Nokia Corporation and/or its subsidiary(-ies). 2 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
3 * Copyright (C) 2006 Apple Computer, Inc. 3 * Copyright (C) 2006 Apple Computer, Inc.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 virtual String itemToolTip(unsigned listIndex) const = 0; 44 virtual String itemToolTip(unsigned listIndex) const = 0;
45 virtual String itemAccessibilityText(unsigned listIndex) const = 0; 45 virtual String itemAccessibilityText(unsigned listIndex) const = 0;
46 virtual bool itemIsEnabled(unsigned listIndex) const = 0; 46 virtual bool itemIsEnabled(unsigned listIndex) const = 0;
47 virtual PopupMenuStyle itemStyle(unsigned listIndex) const = 0; 47 virtual PopupMenuStyle itemStyle(unsigned listIndex) const = 0;
48 virtual PopupMenuStyle menuStyle() const = 0; 48 virtual PopupMenuStyle menuStyle() const = 0;
49 virtual LayoutUnit clientPaddingLeft() const = 0; 49 virtual LayoutUnit clientPaddingLeft() const = 0;
50 virtual LayoutUnit clientPaddingRight() const = 0; 50 virtual LayoutUnit clientPaddingRight() const = 0;
51 virtual int listSize() const = 0; 51 virtual int listSize() const = 0;
52 virtual int selectedIndex() const = 0; 52 virtual int selectedIndex() const = 0;
53 virtual void popupDidHide() = 0; 53 virtual void popupDidHide() = 0;
54 // A popup is canceled when the popup was hidden without selecting an item.
55 virtual void popupDidCancel() = 0;
54 virtual bool itemIsSeparator(unsigned listIndex) const = 0; 56 virtual bool itemIsSeparator(unsigned listIndex) const = 0;
55 virtual bool itemIsLabel(unsigned listIndex) const = 0; 57 virtual bool itemIsLabel(unsigned listIndex) const = 0;
56 virtual bool itemIsSelected(unsigned listIndex) const = 0; 58 virtual bool itemIsSelected(unsigned listIndex) const = 0;
57 virtual void setTextFromItem(unsigned listIndex) = 0; 59 // Provisional selection is a selection made using arrow keys or type ahead.
60 virtual void provisionalSelectionChanged(unsigned) = 0;
58 virtual IntRect elementRectRelativeToViewport() const = 0; 61 virtual IntRect elementRectRelativeToViewport() const = 0;
59 virtual Element& ownerElement() const = 0; 62 virtual Element& ownerElement() const = 0;
60 virtual const ComputedStyle* computedStyleForItem(Element&) const = 0; 63 virtual const ComputedStyle* computedStyleForItem(Element&) const = 0;
61 64
62 virtual void listBoxSelectItem(int /*listIndex*/, bool /*allowMultiplySelect ions*/, bool /*shift*/, bool /*fireOnChangeNow*/ = true) { ASSERT_NOT_REACHED(); } 65 virtual void listBoxSelectItem(int /*listIndex*/, bool /*allowMultiplySelect ions*/, bool /*shift*/, bool /*fireOnChangeNow*/ = true) { ASSERT_NOT_REACHED(); }
63 virtual bool multiple() const 66 virtual bool multiple() const
64 { 67 {
65 ASSERT_NOT_REACHED(); 68 ASSERT_NOT_REACHED();
66 return false; 69 return false;
67 } 70 }
68 }; 71 };
69 72
70 } 73 }
71 74
72 #endif 75 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698