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

Unified Diff: Source/web/ExternalPopupMenu.h

Issue 118453006: Mac: Send a synthetic mouseup event when <select> popup menu is opened. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | Source/web/ExternalPopupMenu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ExternalPopupMenu.h
diff --git a/Source/web/ExternalPopupMenu.h b/Source/web/ExternalPopupMenu.h
index dc2bebf794348c761cbfdab1a2afa6e67af066a6..6af4ad34237c2df51cffe79aff912ef824c4f502 100644
--- a/Source/web/ExternalPopupMenu.h
+++ b/Source/web/ExternalPopupMenu.h
@@ -33,6 +33,7 @@
#include "WebExternalPopupMenuClient.h"
#include "platform/PopupMenu.h"
+#include "platform/Timer.h"
#include "public/platform/WebCanvas.h"
#include "public/platform/WebScrollbar.h"
@@ -48,16 +49,16 @@ class PopupMenuClient;
namespace blink {
class WebExternalPopupMenu;
-class WebViewClient;
+class WebViewImpl;
struct WebPopupMenuInfo;
-class WebInputEvent;
+class WebMouseEvent;
// The ExternalPopupMenu connects the actual implementation of the popup menu
// to the WebCore popup menu.
class ExternalPopupMenu : public WebCore::PopupMenu,
public WebExternalPopupMenuClient {
public:
- ExternalPopupMenu(WebCore::Frame&, WebCore::PopupMenuClient*, WebViewClient*);
+ ExternalPopupMenu(WebCore::Frame&, WebCore::PopupMenuClient*, WebViewImpl&);
virtual ~ExternalPopupMenu();
private:
@@ -73,14 +74,16 @@ private:
virtual void didAcceptIndices(const WebVector<int>& indices);
virtual void didCancel();
+ void dispatchEvent(WebCore::Timer<ExternalPopupMenu>*);
// Fills |info| with the popup menu information contained in the
// WebCore::PopupMenuClient associated with this ExternalPopupMenu.
void getPopupMenuInfo(WebPopupMenuInfo* info);
WebCore::PopupMenuClient* m_popupMenuClient;
RefPtr<WebCore::FrameView> m_frameView;
- WebViewClient* m_webViewClient;
-
+ WebViewImpl& m_webView;
+ OwnPtr<WebMouseEvent> m_syntheticEvent;
+ WebCore::Timer<ExternalPopupMenu> m_dispatchEventTimer;
// The actual implementor of the show menu.
WebExternalPopupMenu* m_webExternalPopupMenu;
};
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | Source/web/ExternalPopupMenu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698