Index: Source/web/ExternalPopupMenu.h |
diff --git a/Source/web/ExternalPopupMenu.h b/Source/web/ExternalPopupMenu.h |
index c51aa189a2e64c4866dc542c6cdbc96285aecebc..25ac59b74f4875b86464cbcf38e080e72ced3f7a 100644 |
--- a/Source/web/ExternalPopupMenu.h |
+++ b/Source/web/ExternalPopupMenu.h |
@@ -56,6 +56,15 @@ public: |
ExternalPopupMenu(LocalFrame&, PopupMenuClient*, WebViewImpl&); |
virtual ~ExternalPopupMenu(); |
+ |
+ // Fills |info| with the popup menu information contained in the |
+ // PopupMenuClient associated with this ExternalPopupMenu. |
+ // FIXME: public only for test access. Need to revert once gtest |
+ // helpers from chromium are available for blink. |
+ static void getPopupMenuInfo(WebPopupMenuInfo&, PopupMenuClient&); |
+ static int toPopupMenuItemIndex(int index, PopupMenuClient&); |
+ static int toExternalPopupMenuItemIndex(int index, PopupMenuClient&); |
+ |
private: |
// PopupMenu methods: |
virtual void show(const FloatQuad& controlPosition, const IntSize&, int index) OVERRIDE; |
@@ -70,11 +79,6 @@ private: |
virtual void didCancel() OVERRIDE; |
void dispatchEvent(Timer<ExternalPopupMenu>*); |
- // Fills |info| with the popup menu information contained in the |
- // PopupMenuClient associated with this ExternalPopupMenu. |
- void getPopupMenuInfo(WebPopupMenuInfo* info); |
- int toPopupMenuItemIndex(int index); |
- int toExternalPopupMenuItemIndex(int index); |
PopupMenuClient* m_popupMenuClient; |
RefPtr<LocalFrame> m_localFrame; |