| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All Rights Reserved. | 2 * Copyright (C) 2010 Google Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #include "platform/heap/Handle.h" | 31 #include "platform/heap/Handle.h" |
| 32 #include "wtf/RefPtr.h" | 32 #include "wtf/RefPtr.h" |
| 33 | 33 |
| 34 namespace blink { | 34 namespace blink { |
| 35 | 35 |
| 36 class EventTarget; | 36 class EventTarget; |
| 37 class Event; | 37 class Event; |
| 38 class Node; | 38 class Node; |
| 39 class NodeEventContext; | 39 class NodeEventContext; |
| 40 | 40 |
| 41 class WindowEventContext : public NoBaseWillBeGarbageCollected<WindowEventContex
t> { | 41 class WindowEventContext : public GarbageCollected<WindowEventContext> { |
| 42 USING_FAST_MALLOC_WILL_BE_REMOVED(WindowEventContext); | |
| 43 WTF_MAKE_NONCOPYABLE(WindowEventContext); | 42 WTF_MAKE_NONCOPYABLE(WindowEventContext); |
| 44 public: | 43 public: |
| 45 WindowEventContext(Event&, const NodeEventContext& topNodeEventContext); | 44 WindowEventContext(Event&, const NodeEventContext& topNodeEventContext); |
| 46 | 45 |
| 47 LocalDOMWindow* window() const; | 46 LocalDOMWindow* window() const; |
| 48 EventTarget* target() const; | 47 EventTarget* target() const; |
| 49 bool handleLocalEvents(Event&); | 48 bool handleLocalEvents(Event&); |
| 50 | 49 |
| 51 DECLARE_TRACE(); | 50 DECLARE_TRACE(); |
| 52 | 51 |
| 53 private: | 52 private: |
| 54 RefPtrWillBeMember<LocalDOMWindow> m_window; | 53 Member<LocalDOMWindow> m_window; |
| 55 RefPtrWillBeMember<EventTarget> m_target; | 54 Member<EventTarget> m_target; |
| 56 }; | 55 }; |
| 57 | 56 |
| 58 inline LocalDOMWindow* WindowEventContext::window() const | 57 inline LocalDOMWindow* WindowEventContext::window() const |
| 59 { | 58 { |
| 60 return m_window.get(); | 59 return m_window.get(); |
| 61 } | 60 } |
| 62 | 61 |
| 63 inline EventTarget* WindowEventContext::target() const | 62 inline EventTarget* WindowEventContext::target() const |
| 64 { | 63 { |
| 65 return m_target.get(); | 64 return m_target.get(); |
| 66 } | 65 } |
| 67 | 66 |
| 68 } // namespace blink | 67 } // namespace blink |
| 69 | 68 |
| 70 #endif // WindowEventContext_h | 69 #endif // WindowEventContext_h |
| OLD | NEW |