Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef HTMLMenuElementEventListener_h | |
| 6 #define HTMLMenuElementEventListener_h | |
| 7 | |
| 8 #include "core/events/EventListener.h" | |
| 9 #include "core/html/HTMLMenuElement.h" | |
| 10 | |
| 11 namespace WebCore { | |
| 12 | |
| 13 class RelatedEvent; | |
| 14 | |
| 15 class HTMLMenuElementEventListener FINAL : public EventListener { | |
|
esprehn
2014/06/06 22:30:42
Lets not do this. I see IndexedDB does it, but we
pals
2014/06/10 10:42:39
Done. Removed.
| |
| 16 public: | |
| 17 static PassRefPtr<HTMLMenuElementEventListener> create(HTMLMenuElement* menu ) { return adoptRef(new HTMLMenuElementEventListener(menu)); } | |
| 18 | |
| 19 virtual bool operator==(const EventListener& other); | |
| 20 | |
| 21 private: | |
| 22 explicit HTMLMenuElementEventListener(HTMLMenuElement* menu) | |
| 23 : EventListener(NativeEventListenerType) | |
| 24 , m_menu(menu) | |
| 25 { | |
| 26 } | |
| 27 | |
| 28 virtual void handleEvent(ExecutionContext*, Event*); | |
| 29 | |
| 30 RefPtr<HTMLMenuElement> m_menu; | |
| 31 }; | |
| 32 | |
| 33 const HTMLMenuElementEventListener* toHTMLMenuElementEventListener(const EventLi stener*); | |
| 34 | |
| 35 } | |
| 36 | |
| 37 #endif | |
| OLD | NEW |