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

Unified Diff: Source/platform/ContextMenu.h

Issue 492753002: Add support to populate custom context menu items. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed comments Created 6 years, 4 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
« no previous file with comments | « Source/core/page/CustomContextMenuProvider.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/ContextMenu.h
diff --git a/Source/platform/ContextMenu.h b/Source/platform/ContextMenu.h
index ebed1e3982f744441d2a7e6f843f85081cc87329..35a92757d0ff5e9c6297968b7bc011cc0e37ad44 100644
--- a/Source/platform/ContextMenu.h
+++ b/Source/platform/ContextMenu.h
@@ -40,6 +40,7 @@ public:
const ContextMenuItem* itemWithAction(unsigned) const;
const Vector<ContextMenuItem>& items() const { return m_items; }
void appendItem(const ContextMenuItem& item) { m_items.append(item); }
+ void removeLastItem() { m_items.removeLast(); }
private:
Vector<ContextMenuItem> m_items;
« no previous file with comments | « Source/core/page/CustomContextMenuProvider.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698