| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |