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

Side by Side Diff: Source/web/PopupMenuTest.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle 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
« no previous file with comments | « Source/web/PopupMenuImpl.cpp ('k') | Source/web/WebAXObject.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 * 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 virtual LayoutUnit clientPaddingRight() const { return 0; } 116 virtual LayoutUnit clientPaddingRight() const { return 0; }
117 virtual int listSize() const { return m_listSize; } 117 virtual int listSize() const { return m_listSize; }
118 virtual int selectedIndex() const { return m_selectIndex; } 118 virtual int selectedIndex() const { return m_selectIndex; }
119 virtual void popupDidHide() { } 119 virtual void popupDidHide() { }
120 virtual bool itemIsSeparator(unsigned listIndex) const { return false; } 120 virtual bool itemIsSeparator(unsigned listIndex) const { return false; }
121 virtual bool itemIsLabel(unsigned listIndex) const { return false; } 121 virtual bool itemIsLabel(unsigned listIndex) const { return false; }
122 virtual bool itemIsSelected(unsigned listIndex) const { return listIndex == m_selectIndex; } 122 virtual bool itemIsSelected(unsigned listIndex) const { return listIndex == m_selectIndex; }
123 virtual void setTextFromItem(unsigned listIndex) { } 123 virtual void setTextFromItem(unsigned listIndex) { }
124 virtual IntRect elementRectRelativeToViewport() const override { return IntR ect(); } 124 virtual IntRect elementRectRelativeToViewport() const override { return IntR ect(); }
125 virtual Element& ownerElement() const override { return *toElement(m_node); } 125 virtual Element& ownerElement() const override { return *toElement(m_node); }
126 virtual LayoutStyle* layoutStyleForItem(Element& element) const override { r eturn nullptr; } 126 virtual ComputedStyle* computedStyleForItem(Element& element) const override { return nullptr; }
127 127
128 virtual FontSelector* fontSelector() const { return 0; } 128 virtual FontSelector* fontSelector() const { return 0; }
129 virtual HostWindow* hostWindow() const { return 0; } 129 virtual HostWindow* hostWindow() const { return 0; }
130 130
131 virtual PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollableArea*, S crollbarOrientation, ScrollbarControlSize) { return nullptr; } 131 virtual PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollableArea*, S crollbarOrientation, ScrollbarControlSize) { return nullptr; }
132 132
133 void setDisabledIndex(unsigned index) { m_disabledIndexSet.insert(index); } 133 void setDisabledIndex(unsigned index) { m_disabledIndexSet.insert(index); }
134 void setFocusedNode(Node* node) { m_node = node; } 134 void setFocusedNode(Node* node) { m_node = node; }
135 void setListSize(int listSize) { m_listSize = listSize; } 135 void setListSize(int listSize) { m_listSize = listSize; }
136 136
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 ASSERT(menuList); 626 ASSERT(menuList);
627 menuList->showPopup(); 627 menuList->showPopup();
628 ASSERT(popupOpen()); 628 ASSERT(popupOpen());
629 PopupListBox* listBox = webView()->selectPopup()->listBox(); 629 PopupListBox* listBox = webView()->selectPopup()->listBox();
630 int ltrWidth = listBox->getRowBaseWidth(0); 630 int ltrWidth = listBox->getRowBaseWidth(0);
631 int rtlWidth = listBox->getRowBaseWidth(1); 631 int rtlWidth = listBox->getRowBaseWidth(1);
632 EXPECT_LT(rtlWidth, ltrWidth); 632 EXPECT_LT(rtlWidth, ltrWidth);
633 } 633 }
634 634
635 } // namespace 635 } // namespace
OLDNEW
« no previous file with comments | « Source/web/PopupMenuImpl.cpp ('k') | Source/web/WebAXObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698