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

Side by Side Diff: Source/WebKit/chromium/tests/PopupMenuTest.cpp

Issue 16077002: Move popup menu code from core/platform to WebKit/chromium/src. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/WebKit/chromium/tests/PopupContainerTest.cpp ('k') | Source/core/core.gypi » ('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 12 matching lines...) Expand all
23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #include "config.h" 31 #include "config.h"
32 32
33 #include <gtest/gtest.h> 33 #include "PopupContainer.h"
34 #include "PopupMenuChromium.h"
34 #include "URLTestHelpers.h" 35 #include "URLTestHelpers.h"
35 #include "WebDocument.h" 36 #include "WebDocument.h"
36 #include "WebElement.h" 37 #include "WebElement.h"
37 #include "WebFrame.h" 38 #include "WebFrame.h"
38 #include "WebFrameClient.h" 39 #include "WebFrameClient.h"
39 #include "WebFrameImpl.h" 40 #include "WebFrameImpl.h"
40 #include "WebInputEvent.h" 41 #include "WebInputEvent.h"
41 #include "WebPopupMenuImpl.h" 42 #include "WebPopupMenuImpl.h"
42 #include "WebScreenInfo.h" 43 #include "WebScreenInfo.h"
43 #include "WebSettings.h" 44 #include "WebSettings.h"
44 #include "WebView.h" 45 #include "WebView.h"
45 #include "WebViewClient.h" 46 #include "WebViewClient.h"
46 #include "WebViewImpl.h" 47 #include "WebViewImpl.h"
47 #include "core/dom/Element.h" 48 #include "core/dom/Element.h"
48 #include "core/html/HTMLSelectElement.h" 49 #include "core/html/HTMLSelectElement.h"
49 #include "core/page/EventHandler.h" 50 #include "core/page/EventHandler.h"
50 #include "core/page/FrameView.h" 51 #include "core/page/FrameView.h"
51 #include "RuntimeEnabledFeatures.h" 52 #include "RuntimeEnabledFeatures.h"
52 #include "core/platform/PlatformMouseEvent.h" 53 #include "core/platform/PlatformMouseEvent.h"
53 #include "core/platform/PopupMenu.h" 54 #include "core/platform/PopupMenu.h"
54 #include "core/platform/PopupMenuClient.h" 55 #include "core/platform/PopupMenuClient.h"
55 #include "core/platform/chromium/KeyboardCodes.h" 56 #include "core/platform/chromium/KeyboardCodes.h"
56 #include "core/platform/chromium/PopupContainer.h"
57 #include "core/platform/chromium/PopupMenuChromium.h"
58 #include "core/platform/graphics/Color.h" 57 #include "core/platform/graphics/Color.h"
59 #include "v8.h" 58 #include "v8.h"
59 #include <gtest/gtest.h>
60 #include <public/Platform.h> 60 #include <public/Platform.h>
61 #include <public/WebString.h> 61 #include <public/WebString.h>
62 #include <public/WebUnitTestSupport.h> 62 #include <public/WebUnitTestSupport.h>
63 #include <public/WebURL.h> 63 #include <public/WebURL.h>
64 #include <public/WebURLRequest.h> 64 #include <public/WebURLRequest.h>
65 #include <public/WebURLResponse.h> 65 #include <public/WebURLResponse.h>
66 66
67 using namespace WebCore; 67 using namespace WebCore;
68 using namespace WebKit; 68 using namespace WebKit;
69 using WebKit::URLTestHelpers::toKURL; 69 using WebKit::URLTestHelpers::toKURL;
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 // menuItemHeight * 1.5 means the Y position on the item at index 1. 504 // menuItemHeight * 1.5 means the Y position on the item at index 1.
505 IntPoint row1Point(2, menuItemHeight * 1.5); 505 IntPoint row1Point(2, menuItemHeight * 1.5);
506 simulateLeftMouseDownEvent(row1Point); 506 simulateLeftMouseDownEvent(row1Point);
507 simulateLeftMouseUpEvent(row1Point); 507 simulateLeftMouseUpEvent(row1Point);
508 508
509 WebElement element = m_webView->mainFrame()->document().getElementById("mess age"); 509 WebElement element = m_webView->mainFrame()->document().getElementById("mess age");
510 EXPECT_STREQ("click", element.innerText().utf8().data()); 510 EXPECT_STREQ("click", element.innerText().utf8().data());
511 } 511 }
512 512
513 } // namespace 513 } // namespace
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/tests/PopupContainerTest.cpp ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698