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

Side by Side Diff: third_party/WebKit/Source/web/ExternalPopupMenu.h

Issue 1676083002: Extract webkit_unit_tests from blink_web component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Win dbg non-oilpan fix: make TextFinder non-copyable Created 4 years, 9 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 18 matching lines...) Expand all
29 */ 29 */
30 30
31 #ifndef ExternalPopupMenu_h 31 #ifndef ExternalPopupMenu_h
32 #define ExternalPopupMenu_h 32 #define ExternalPopupMenu_h
33 33
34 #include "platform/PopupMenu.h" 34 #include "platform/PopupMenu.h"
35 #include "platform/Timer.h" 35 #include "platform/Timer.h"
36 #include "public/platform/WebCanvas.h" 36 #include "public/platform/WebCanvas.h"
37 #include "public/platform/WebScrollbar.h" 37 #include "public/platform/WebScrollbar.h"
38 #include "public/web/WebExternalPopupMenuClient.h" 38 #include "public/web/WebExternalPopupMenuClient.h"
39 #include "web/WebExport.h"
40 #include "wtf/Compiler.h"
39 41
40 namespace blink { 42 namespace blink {
41 43
42 class HTMLSelectElement; 44 class HTMLSelectElement;
43 class LocalFrame; 45 class LocalFrame;
44 class WebExternalPopupMenu; 46 class WebExternalPopupMenu;
45 class WebMouseEvent; 47 class WebMouseEvent;
46 class WebViewImpl; 48 class WebViewImpl;
47 struct WebPopupMenuInfo; 49 struct WebPopupMenuInfo;
48 50
49 // The ExternalPopupMenu connects the actual implementation of the popup menu 51 // The ExternalPopupMenu connects the actual implementation of the popup menu
50 // to the WebCore popup menu. 52 // to the WebCore popup menu.
51 class ExternalPopupMenu final : public PopupMenu, public WebExternalPopupMenuCli ent { 53 class WEB_EXPORT ExternalPopupMenu final : WTF_NON_EXPORTED_BASE(public PopupMen u), public WebExternalPopupMenuClient {
52 public: 54 public:
53 ExternalPopupMenu(LocalFrame&, HTMLSelectElement&, WebViewImpl&); 55 ExternalPopupMenu(LocalFrame&, HTMLSelectElement&, WebViewImpl&);
54 ~ExternalPopupMenu() override; 56 ~ExternalPopupMenu() override;
55 57
56 // Fills |info| with the popup menu information contained in the 58 // Fills |info| with the popup menu information contained in the
57 // PopupMenuClient associated with this ExternalPopupMenu. 59 // PopupMenuClient associated with this ExternalPopupMenu.
58 // FIXME: public only for test access. Need to revert once gtest 60 // FIXME: public only for test access. Need to revert once gtest
59 // helpers from chromium are available for blink. 61 // helpers from chromium are available for blink.
60 static void getPopupMenuInfo(WebPopupMenuInfo&, HTMLSelectElement&); 62 static void getPopupMenuInfo(WebPopupMenuInfo&, HTMLSelectElement&);
61 static int toPopupMenuItemIndex(int index, HTMLSelectElement&); 63 static int toPopupMenuItemIndex(int index, HTMLSelectElement&);
(...skipping 25 matching lines...) Expand all
87 Timer<ExternalPopupMenu> m_dispatchEventTimer; 89 Timer<ExternalPopupMenu> m_dispatchEventTimer;
88 // The actual implementor of the show menu. 90 // The actual implementor of the show menu.
89 WebExternalPopupMenu* m_webExternalPopupMenu; 91 WebExternalPopupMenu* m_webExternalPopupMenu;
90 uint64_t m_shownDOMTreeVersion = 0; 92 uint64_t m_shownDOMTreeVersion = 0;
91 bool m_needsUpdate = false; 93 bool m_needsUpdate = false;
92 }; 94 };
93 95
94 } // namespace blink 96 } // namespace blink
95 97
96 #endif // ExternalPopupMenu_h 98 #endif // ExternalPopupMenu_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/ChromeClientImpl.h ('k') | third_party/WebKit/Source/web/FindInPageCoordinates.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698