summaryrefslogtreecommitdiff
path: root/Source/WebCore/page/ChromeClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/page/ChromeClient.h')
-rw-r--r--Source/WebCore/page/ChromeClient.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/WebCore/page/ChromeClient.h b/Source/WebCore/page/ChromeClient.h
index 33b1c4b87..26d74ab21 100644
--- a/Source/WebCore/page/ChromeClient.h
+++ b/Source/WebCore/page/ChromeClient.h
@@ -58,6 +58,8 @@ namespace WebCore {
class NavigationAction;
class Node;
class Page;
+ class PagePopup;
+ class PagePopupClient;
class PopupMenuClient;
class SecurityOrigin;
class GraphicsContext3D;
@@ -306,9 +308,11 @@ namespace WebCore {
virtual bool hasOpenedPopup() const = 0;
virtual PassRefPtr<PopupMenu> createPopupMenu(PopupMenuClient*) const = 0;
virtual PassRefPtr<SearchPopupMenu> createSearchPopupMenu(PopupMenuClient*) const = 0;
-
-#if ENABLE(CONTEXT_MENUS)
- virtual void showContextMenu() = 0;
+#if ENABLE(PAGE_POPUP)
+ // Creates a PagePopup object, and shows it beside originBoundsInRootView.
+ // The return value can be 0.
+ virtual PagePopup* openPagePopup(PagePopupClient*, const IntRect& originBoundsInRootView) = 0;
+ virtual void closePagePopup(PagePopup*) = 0;
#endif
virtual void postAccessibilityNotification(AccessibilityObject*, AXObjectCache::AXNotification) { }