OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 virtual LayoutUnit clientPaddingLeft() const { return 0; } | 118 virtual LayoutUnit clientPaddingLeft() const { return 0; } |
119 virtual LayoutUnit clientPaddingRight() const { return 0; } | 119 virtual LayoutUnit clientPaddingRight() const { return 0; } |
120 virtual int listSize() const { return m_listSize; } | 120 virtual int listSize() const { return m_listSize; } |
121 virtual int selectedIndex() const { return m_selectIndex; } | 121 virtual int selectedIndex() const { return m_selectIndex; } |
122 virtual void popupDidHide() { } | 122 virtual void popupDidHide() { } |
123 virtual bool itemIsSeparator(unsigned listIndex) const { return false; } | 123 virtual bool itemIsSeparator(unsigned listIndex) const { return false; } |
124 virtual bool itemIsLabel(unsigned listIndex) const { return false; } | 124 virtual bool itemIsLabel(unsigned listIndex) const { return false; } |
125 virtual bool itemIsSelected(unsigned listIndex) const { return listIndex ==
m_selectIndex; } | 125 virtual bool itemIsSelected(unsigned listIndex) const { return listIndex ==
m_selectIndex; } |
126 virtual bool valueShouldChangeOnHotTrack() const { return false; } | 126 virtual bool valueShouldChangeOnHotTrack() const { return false; } |
127 virtual void setTextFromItem(unsigned listIndex) { } | 127 virtual void setTextFromItem(unsigned listIndex) { } |
128 virtual IntRect elementRectRelativeToRootView() const override { return IntR
ect(); } | 128 virtual IntRect elementRectRelativeToViewport() const override { return IntR
ect(); } |
129 virtual Element& ownerElement() const override { return *toElement(m_node);
} | 129 virtual Element& ownerElement() const override { return *toElement(m_node);
} |
130 virtual LayoutStyle* layoutStyleForItem(Element& element) const override { r
eturn nullptr; } | 130 virtual LayoutStyle* layoutStyleForItem(Element& element) const override { r
eturn nullptr; } |
131 | 131 |
132 virtual FontSelector* fontSelector() const { return 0; } | 132 virtual FontSelector* fontSelector() const { return 0; } |
133 virtual HostWindow* hostWindow() const { return 0; } | 133 virtual HostWindow* hostWindow() const { return 0; } |
134 | 134 |
135 virtual PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollableArea*, S
crollbarOrientation, ScrollbarControlSize) { return nullptr; } | 135 virtual PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollableArea*, S
crollbarOrientation, ScrollbarControlSize) { return nullptr; } |
136 | 136 |
137 void setDisabledIndex(unsigned index) { m_disabledIndexSet.insert(index); } | 137 void setDisabledIndex(unsigned index) { m_disabledIndexSet.insert(index); } |
138 void setFocusedNode(Node* node) { m_node = node; } | 138 void setFocusedNode(Node* node) { m_node = node; } |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 ASSERT(menuList); | 635 ASSERT(menuList); |
636 menuList->showPopup(); | 636 menuList->showPopup(); |
637 ASSERT(popupOpen()); | 637 ASSERT(popupOpen()); |
638 PopupListBox* listBox = webView()->selectPopup()->listBox(); | 638 PopupListBox* listBox = webView()->selectPopup()->listBox(); |
639 int ltrWidth = listBox->getRowBaseWidth(0); | 639 int ltrWidth = listBox->getRowBaseWidth(0); |
640 int rtlWidth = listBox->getRowBaseWidth(1); | 640 int rtlWidth = listBox->getRowBaseWidth(1); |
641 EXPECT_LT(rtlWidth, ltrWidth); | 641 EXPECT_LT(rtlWidth, ltrWidth); |
642 } | 642 } |
643 | 643 |
644 } // namespace | 644 } // namespace |
OLD | NEW |