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

Unified Diff: Source/core/platform/ContextMenu.h

Issue 14795011: Remove dead ContextMenu code from Blink core (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/ContextMenu.h
diff --git a/Source/core/platform/ContextMenu.h b/Source/core/platform/ContextMenu.h
index 6c1478ee1c0e9a9cbbfd3efdd3bcd044763b7565..f2c9a913e16ca9e03366ae5eb017d9818ac436c0 100644
--- a/Source/core/platform/ContextMenu.h
+++ b/Source/core/platform/ContextMenu.h
@@ -26,36 +26,18 @@
#ifndef ContextMenu_h
#define ContextMenu_h
-#include <wtf/Noncopyable.h>
-
#include "core/platform/ContextMenuItem.h"
-#include <wtf/text/WTFString.h>
+#include "wtf/Noncopyable.h"
+#include "wtf/Vector.h"
namespace WebCore {
- class ContextMenuController;
-
- typedef void* PlatformContextMenu;
-
class ContextMenu {
WTF_MAKE_NONCOPYABLE(ContextMenu); WTF_MAKE_FAST_ALLOCATED;
public:
- ContextMenu();
-
- const ContextMenuItem* itemWithAction(unsigned);
-
- explicit ContextMenu(PlatformContextMenu);
-
- PlatformContextMenu platformContextMenu() const;
-
- static PlatformContextMenu createPlatformContextMenuFromItems(const Vector<ContextMenuItem>&);
- static void getContextMenuItems(PlatformContextMenu, Vector<ContextMenuItem>&);
-
- const ContextMenuItem* itemAtIndex(unsigned index) { return &m_items[index]; }
-
- void setItems(const Vector<ContextMenuItem>& items) { m_items = items; }
+ ContextMenu() { }
+ const ContextMenuItem* itemWithAction(unsigned) const;
const Vector<ContextMenuItem>& items() const { return m_items; }
-
void appendItem(const ContextMenuItem& item) { m_items.append(item); }
private:

Powered by Google App Engine
This is Rietveld 408576698