| Index: third_party/WebKit/Source/core/frame/EventHandlerRegistry.h
|
| diff --git a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.h b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.h
|
| index f6a46a054b6d5a7892a91901c04da4d4efa16d0c..5802697eb88266fe454ff78abafb73addf8eb42a 100644
|
| --- a/third_party/WebKit/Source/core/frame/EventHandlerRegistry.h
|
| +++ b/third_party/WebKit/Source/core/frame/EventHandlerRegistry.h
|
| @@ -6,8 +6,7 @@
|
| #define EventHandlerRegistry_h
|
|
|
| #include "core/CoreExport.h"
|
| -#include "core/frame/FrameHost.h" // TODO(sashab): Remove this.
|
| -#include "core/page/Page.h"
|
| +#include "core/frame/FrameHost.h"
|
| #include "wtf/HashCountedSet.h"
|
|
|
| namespace blink {
|
| @@ -21,11 +20,11 @@
|
|
|
| // Registry for keeping track of event handlers. Note that only handlers on
|
| // documents that can be rendered or can receive input (i.e., are attached to a
|
| -// Page) are registered here.
|
| +// FrameHost) are registered here.
|
| class CORE_EXPORT EventHandlerRegistry final
|
| : public GarbageCollectedFinalized<EventHandlerRegistry> {
|
| public:
|
| - explicit EventHandlerRegistry(Page&);
|
| + explicit EventHandlerRegistry(FrameHost&);
|
| virtual ~EventHandlerRegistry();
|
|
|
| // Supported event handler classes. Note that each one may correspond to
|
| @@ -45,7 +44,7 @@
|
| EventHandlerClassCount, // Must be the last entry.
|
| };
|
|
|
| - // Returns true if the Page has event handlers of the specified class.
|
| + // Returns true if the FrameHost has event handlers of the specified class.
|
| bool hasEventHandlers(EventHandlerClass) const;
|
|
|
| // Returns a set of EventTargets which have registered handlers of the given
|
| @@ -63,11 +62,11 @@
|
| void didRemoveEventHandler(EventTarget&, EventHandlerClass);
|
| void didRemoveAllEventHandlers(EventTarget&);
|
|
|
| - void didMoveIntoPage(EventTarget&);
|
| - void didMoveOutOfPage(EventTarget&);
|
| + void didMoveIntoFrameHost(EventTarget&);
|
| + void didMoveOutOfFrameHost(EventTarget&);
|
|
|
| - // Either |documentDetached| or |didMove{Into,OutOf,Between}Pages| must
|
| - // be called whenever the Page that is associated with a registered event
|
| + // Either |documentDetached| or |didMove{Into,OutOf,Between}FrameHosts| must
|
| + // be called whenever the FrameHost that is associated with a registered event
|
| // target changes. This ensures the registry does not end up with stale
|
| // references to handlers that are no longer related to it.
|
| void documentDetached(Document&);
|
| @@ -121,7 +120,7 @@
|
|
|
| void checkConsistency(EventHandlerClass) const;
|
|
|
| - Member<Page> m_page;
|
| + Member<FrameHost> m_frameHost;
|
| EventTargetSet m_targets[EventHandlerClassCount];
|
| };
|
|
|
|
|