Reviewed by Ada.
[WebKit-https.git] / WebCore / platform / ContextMenu.h
index 6538febc5b377a76a9ed22bec5dca233ab15c36f..903bbf1667ce56e4af489c0151a7b5ca0bc0f759 100644 (file)
@@ -59,11 +59,8 @@ namespace WebCore {
     class ContextMenu : Noncopyable
     {
     public:
-        ContextMenu(HitTestResult result)
-            : m_hitTestResult(result)
-            , m_menu(0)
-        {
-        }
+        ContextMenu(const HitTestResult&);
+        ~ContextMenu();
 
         void populate();
 
@@ -80,12 +77,12 @@ namespace WebCore {
         HitTestResult hitTestResult() const { return m_hitTestResult; }
         ContextMenuController* controller() const;
 
-        PlatformMenuDescription platformDescription() const { return m_menu; }
-        void setPlatformDescription(PlatformMenuDescription menu);
+        PlatformMenuDescription platformDescription() const { return m_platformDescription; }
+        void setPlatformDescription(PlatformMenuDescription);
 
     private:
         HitTestResult m_hitTestResult;
-        PlatformMenuDescription m_menu;
+        PlatformMenuDescription m_platformDescription;
     };
 
 }