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 17 matching lines...) Expand all Loading... |
28 #define WindowEventContext_h | 28 #define WindowEventContext_h |
29 | 29 |
30 #include "core/frame/LocalDOMWindow.h" | 30 #include "core/frame/LocalDOMWindow.h" |
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; | |
39 class NodeEventContext; | 38 class NodeEventContext; |
40 | 39 |
41 class WindowEventContext : public GarbageCollected<WindowEventContext> { | 40 class WindowEventContext : public GarbageCollected<WindowEventContext> { |
42 WTF_MAKE_NONCOPYABLE(WindowEventContext); | 41 WTF_MAKE_NONCOPYABLE(WindowEventContext); |
43 | 42 |
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; |
(...skipping 10 matching lines...) Expand all Loading... |
59 return m_window.get(); | 58 return m_window.get(); |
60 } | 59 } |
61 | 60 |
62 inline EventTarget* WindowEventContext::target() const { | 61 inline EventTarget* WindowEventContext::target() const { |
63 return m_target.get(); | 62 return m_target.get(); |
64 } | 63 } |
65 | 64 |
66 } // namespace blink | 65 } // namespace blink |
67 | 66 |
68 #endif // WindowEventContext_h | 67 #endif // WindowEventContext_h |
OLD | NEW |