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

Side by Side Diff: Source/core/rendering/RenderMenuList.h

Issue 736883002: Implement <select> Popup Menu using PagePopup (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed tests for mac Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/page/PagePopupClient.h ('k') | Source/core/rendering/RenderMenuList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of the select element renderer in WebCore. 2 * This file is part of the select element renderer in WebCore.
3 * 3 *
4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 4 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 virtual LayoutUnit clientPaddingRight() const override; 90 virtual LayoutUnit clientPaddingRight() const override;
91 virtual int listSize() const override; 91 virtual int listSize() const override;
92 virtual int selectedIndex() const override; 92 virtual int selectedIndex() const override;
93 virtual void popupDidHide() override; 93 virtual void popupDidHide() override;
94 virtual bool itemIsSeparator(unsigned listIndex) const override; 94 virtual bool itemIsSeparator(unsigned listIndex) const override;
95 virtual bool itemIsLabel(unsigned listIndex) const override; 95 virtual bool itemIsLabel(unsigned listIndex) const override;
96 virtual bool itemIsSelected(unsigned listIndex) const override; 96 virtual bool itemIsSelected(unsigned listIndex) const override;
97 virtual void setTextFromItem(unsigned listIndex) override; 97 virtual void setTextFromItem(unsigned listIndex) override;
98 virtual void listBoxSelectItem(int listIndex, bool allowMultiplySelections, bool shift, bool fireOnChangeNow = true) override; 98 virtual void listBoxSelectItem(int listIndex, bool allowMultiplySelections, bool shift, bool fireOnChangeNow = true) override;
99 virtual bool multiple() const override; 99 virtual bool multiple() const override;
100 virtual IntRect elementRectRelativeToRootView() const override;
101 virtual Element& ownerElement() const override;
102 virtual RenderStyle* renderStyleForItem(Element&) const override;
100 103
101 virtual bool hasLineIfEmpty() const override { return true; } 104 virtual bool hasLineIfEmpty() const override { return true; }
102 105
103 // Flexbox defines baselines differently than regular blocks. 106 // Flexbox defines baselines differently than regular blocks.
104 // For backwards compatibility, menulists need to do the regular block behav ior. 107 // For backwards compatibility, menulists need to do the regular block behav ior.
105 virtual int baselinePosition(FontBaseline baseline, bool firstLine, LineDire ctionMode direction, LinePositionMode position) const override 108 virtual int baselinePosition(FontBaseline baseline, bool firstLine, LineDire ctionMode direction, LinePositionMode position) const override
106 { 109 {
107 return RenderBlock::baselinePosition(baseline, firstLine, direction, pos ition); 110 return RenderBlock::baselinePosition(baseline, firstLine, direction, pos ition);
108 } 111 }
109 virtual int firstLineBoxBaseline() const override { return RenderBlock::firs tLineBoxBaseline(); } 112 virtual int firstLineBoxBaseline() const override { return RenderBlock::firs tLineBoxBaseline(); }
(...skipping 21 matching lines...) Expand all
131 134
132 RefPtrWillBeMember<PopupMenu> m_popup; 135 RefPtrWillBeMember<PopupMenu> m_popup;
133 bool m_popupIsVisible; 136 bool m_popupIsVisible;
134 }; 137 };
135 138
136 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList()); 139 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderMenuList, isMenuList());
137 140
138 } 141 }
139 142
140 #endif 143 #endif
OLDNEW
« no previous file with comments | « Source/core/page/PagePopupClient.h ('k') | Source/core/rendering/RenderMenuList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698