Chromium Code Reviews| Index: Source/core/html/HTMLMenuElement.h |
| diff --git a/Source/core/html/HTMLMenuElement.h b/Source/core/html/HTMLMenuElement.h |
| index ed04da6b92bba914ef7dc025eb5099fb140ab24a..0ac2aeefcaa8e4e870e5c7bdfffed9b0856187ae 100644 |
| --- a/Source/core/html/HTMLMenuElement.h |
| +++ b/Source/core/html/HTMLMenuElement.h |
| @@ -23,16 +23,34 @@ |
| #ifndef HTMLMenuElement_h |
| #define HTMLMenuElement_h |
| +#include "core/html/CustomContextMenuProvider.h" |
| #include "core/html/HTMLElement.h" |
| +#include "core/page/ContextMenuProvider.h" |
| +#include "platform/ContextMenu.h" |
| +#include "platform/ContextMenuItem.h" |
| namespace blink { |
| +class HTMLMenuElement; |
| + |
| class HTMLMenuElement FINAL : public HTMLElement { |
| public: |
| DECLARE_NODE_FACTORY(HTMLMenuElement); |
| + virtual void defaultEventHandler(Event*) OVERRIDE; |
| + |
| + CustomContextMenuProvider* menuProvider() { return m_menuProvider.get(); } |
| + CustomContextMenuProvider& ensureMenuProvider(); |
| + void populateContextMenuItems(const HTMLMenuElement&, ContextMenu&); |
| + HTMLElement* menuItemAt(unsigned menuId); |
| + HTMLElement* subjectElement() { return m_subject.get(); } |
| + |
| private: |
| explicit HTMLMenuElement(Document&); |
| + |
| + RefPtr<CustomContextMenuProvider> m_menuProvider; |
|
Inactive
2014/07/23 14:19:08
RefPtrWillBeMember
pals
2014/07/24 10:49:26
Done.
|
| + RefPtr<HTMLElement> m_subject; |
|
Inactive
2014/07/23 14:19:08
RefPtrWillBeMember
pals
2014/07/24 10:49:26
Done.
|
| + Vector<HTMLElement*> m_menuItems; |
|
Inactive
2014/07/23 14:19:08
Vector<HTMLMenuItemElement*> ?
pals
2014/07/24 10:49:26
Done.
|
| }; |
| } //namespace |