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

Side by Side Diff: Source/web/ExternalPopupMenuTest.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: Rebase again 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
« no previous file with comments | « Source/web/ExternalDateTimeChooser.cpp ('k') | Source/web/PopupContainer.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 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "web/ExternalPopupMenu.h" 6 #include "web/ExternalPopupMenu.h"
7 7
8 #include "core/HTMLNames.h" 8 #include "core/HTMLNames.h"
9 #include "core/frame/FrameHost.h" 9 #include "core/frame/FrameHost.h"
10 #include "core/frame/PinchViewport.h" 10 #include "core/frame/PinchViewport.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual LayoutUnit clientPaddingLeft() const override { return 0; } 56 virtual LayoutUnit clientPaddingLeft() const override { return 0; }
57 virtual LayoutUnit clientPaddingRight() const override { return 0; } 57 virtual LayoutUnit clientPaddingRight() const override { return 0; }
58 virtual int listSize() const override { return m_listSize; } 58 virtual int listSize() const override { return m_listSize; }
59 virtual int selectedIndex() const override { return 0; } 59 virtual int selectedIndex() const override { return 0; }
60 virtual void popupDidHide() override { } 60 virtual void popupDidHide() override { }
61 virtual bool itemIsSeparator(unsigned listIndex) const override { return fal se;} 61 virtual bool itemIsSeparator(unsigned listIndex) const override { return fal se;}
62 virtual bool itemIsLabel(unsigned listIndex) const override { return false; } 62 virtual bool itemIsLabel(unsigned listIndex) const override { return false; }
63 virtual bool itemIsSelected(unsigned listIndex) const override { return list Index == 0;} 63 virtual bool itemIsSelected(unsigned listIndex) const override { return list Index == 0;}
64 virtual void setTextFromItem(unsigned listIndex) override { } 64 virtual void setTextFromItem(unsigned listIndex) override { }
65 virtual bool multiple() const override { return false; } 65 virtual bool multiple() const override { return false; }
66 virtual IntRect elementRectRelativeToRootView() const override { return IntR ect(); } 66 virtual IntRect elementRectRelativeToViewport() const override { return IntR ect(); }
67 virtual Element& ownerElement() const override { return *m_ownerElement; } 67 virtual Element& ownerElement() const override { return *m_ownerElement; }
68 virtual const LayoutStyle* layoutStyleForItem(Element& element) const overri de { return nullptr; } 68 virtual const LayoutStyle* layoutStyleForItem(Element& element) const overri de { return nullptr; }
69 69
70 void setListSize(size_t size) { m_listSize = size; } 70 void setListSize(size_t size) { m_listSize = size; }
71 void setDisplayNoneIndex(unsigned index) { m_displayNoneIndexSet.insert(inde x); } 71 void setDisplayNoneIndex(unsigned index) { m_displayNoneIndexSet.insert(inde x); }
72 void setOwnerElement(PassRefPtrWillBeRawPtr<Element> element) { m_ownerEleme nt = element; } 72 void setOwnerElement(PassRefPtrWillBeRawPtr<Element> element) { m_ownerEleme nt = element; }
73 private: 73 private:
74 size_t m_listSize; 74 size_t m_listSize;
75 std::set<unsigned> m_displayNoneIndexSet; 75 std::set<unsigned> m_displayNoneIndexSet;
76 RefPtrWillBePersistent<Element> m_ownerElement; 76 RefPtrWillBePersistent<Element> m_ownerElement;
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 ASSERT_TRUE(menuList->popupIsVisible()); 266 ASSERT_TRUE(menuList->popupIsVisible());
267 267
268 WebExternalPopupMenuClient* client = static_cast<ExternalPopupMenu*>(menuLis t->popup()); 268 WebExternalPopupMenuClient* client = static_cast<ExternalPopupMenu*>(menuLis t->popup());
269 WebVector<int> indices; 269 WebVector<int> indices;
270 client->didAcceptIndices(indices); 270 client->didAcceptIndices(indices);
271 EXPECT_FALSE(menuList->popupIsVisible()); 271 EXPECT_FALSE(menuList->popupIsVisible());
272 EXPECT_EQ(-1, select->selectedIndex()); 272 EXPECT_EQ(-1, select->selectedIndex());
273 } 273 }
274 274
275 } // namespace 275 } // namespace
OLDNEW
« no previous file with comments | « Source/web/ExternalDateTimeChooser.cpp ('k') | Source/web/PopupContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698