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

Side by Side Diff: third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp

Issue 2774823002: Remove FrameHost class (Closed)
Patch Set: Rebase Created 3 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
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 "web/ExternalPopupMenu.h" 5 #include "web/ExternalPopupMenu.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "core/HTMLNames.h" 8 #include "core/HTMLNames.h"
9 #include "core/dom/NodeComputedStyle.h" 9 #include "core/dom/NodeComputedStyle.h"
10 #include "core/frame/FrameHost.h"
11 #include "core/frame/VisualViewport.h" 10 #include "core/frame/VisualViewport.h"
12 #include "core/html/HTMLSelectElement.h" 11 #include "core/html/HTMLSelectElement.h"
13 #include "core/layout/LayoutMenuList.h" 12 #include "core/layout/LayoutMenuList.h"
14 #include "core/page/Page.h" 13 #include "core/page/Page.h"
15 #include "core/testing/DummyPageHolder.h" 14 #include "core/testing/DummyPageHolder.h"
16 #include "platform/PopupMenu.h" 15 #include "platform/PopupMenu.h"
17 #include "platform/testing/URLTestHelpers.h" 16 #include "platform/testing/URLTestHelpers.h"
18 #include "platform/testing/UnitTestHelpers.h" 17 #include "platform/testing/UnitTestHelpers.h"
19 #include "public/platform/Platform.h" 18 #include "public/platform/Platform.h"
20 #include "public/platform/WebURLLoaderMockFactory.h" 19 #include "public/platform/WebURLLoaderMockFactory.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 226
228 WebExternalPopupMenuClient* client = 227 WebExternalPopupMenuClient* client =
229 static_cast<ExternalPopupMenu*>(select->popup()); 228 static_cast<ExternalPopupMenu*>(select->popup());
230 WebVector<int> indices; 229 WebVector<int> indices;
231 client->didAcceptIndices(indices); 230 client->didAcceptIndices(indices);
232 EXPECT_FALSE(select->popupIsVisible()); 231 EXPECT_FALSE(select->popupIsVisible());
233 EXPECT_EQ(-1, select->selectedIndex()); 232 EXPECT_EQ(-1, select->selectedIndex());
234 } 233 }
235 234
236 } // namespace blink 235 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ExternalPopupMenu.cpp ('k') | third_party/WebKit/Source/web/InspectorEmulationAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698