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

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

Issue 919423002: Audited and renamed uses of methods and variables named RootView (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Build fix 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
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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual LayoutUnit clientPaddingLeft() const { return 0; } 115 virtual LayoutUnit clientPaddingLeft() const { return 0; }
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 bool valueShouldChangeOnHotTrack() const { return false; } 123 virtual bool valueShouldChangeOnHotTrack() const { return false; }
124 virtual void setTextFromItem(unsigned listIndex) { } 124 virtual void setTextFromItem(unsigned listIndex) { }
125 virtual IntRect elementRectRelativeToRootView() const override { return IntR ect(); } 125 virtual IntRect elementRectRelativeToViewport() const override { return IntR ect(); }
126 virtual Element& ownerElement() const override { return *toElement(m_node); } 126 virtual Element& ownerElement() const override { return *toElement(m_node); }
127 virtual LayoutStyle* layoutStyleForItem(Element& element) const override { r eturn nullptr; } 127 virtual LayoutStyle* layoutStyleForItem(Element& element) const override { r eturn nullptr; }
128 128
129 virtual FontSelector* fontSelector() const { return 0; } 129 virtual FontSelector* fontSelector() const { return 0; }
130 virtual HostWindow* hostWindow() const { return 0; } 130 virtual HostWindow* hostWindow() const { return 0; }
131 131
132 virtual PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollableArea*, S crollbarOrientation, ScrollbarControlSize) { return nullptr; } 132 virtual PassRefPtrWillBeRawPtr<Scrollbar> createScrollbar(ScrollableArea*, S crollbarOrientation, ScrollbarControlSize) { return nullptr; }
133 133
134 void setDisabledIndex(unsigned index) { m_disabledIndexSet.insert(index); } 134 void setDisabledIndex(unsigned index) { m_disabledIndexSet.insert(index); }
135 void setFocusedNode(Node* node) { m_node = node; } 135 void setFocusedNode(Node* node) { m_node = node; }
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 ASSERT(menuList); 607 ASSERT(menuList);
608 menuList->showPopup(); 608 menuList->showPopup();
609 ASSERT(popupOpen()); 609 ASSERT(popupOpen());
610 PopupListBox* listBox = webView()->selectPopup()->listBox(); 610 PopupListBox* listBox = webView()->selectPopup()->listBox();
611 int ltrWidth = listBox->getRowBaseWidth(0); 611 int ltrWidth = listBox->getRowBaseWidth(0);
612 int rtlWidth = listBox->getRowBaseWidth(1); 612 int rtlWidth = listBox->getRowBaseWidth(1);
613 EXPECT_LT(rtlWidth, ltrWidth); 613 EXPECT_LT(rtlWidth, ltrWidth);
614 } 614 }
615 615
616 } // namespace 616 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698