Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(205)

Side by Side Diff: Source/core/dom/DocumentEventQueue.cpp

Issue 17480002: Remove unused includes from core/accessibility, core/css and core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased ; update <wtf/Foo.h> to "wtf/Foo.h" in changed files Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/DocumentEventQueue.h ('k') | Source/core/dom/DocumentFullscreen.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 15 matching lines...) Expand all
26 26
27 #include "config.h" 27 #include "config.h"
28 #include "core/dom/DocumentEventQueue.h" 28 #include "core/dom/DocumentEventQueue.h"
29 29
30 #include "core/dom/Document.h" 30 #include "core/dom/Document.h"
31 #include "core/dom/Event.h" 31 #include "core/dom/Event.h"
32 #include "core/dom/EventNames.h" 32 #include "core/dom/EventNames.h"
33 #include "core/dom/WebCoreMemoryInstrumentation.h" 33 #include "core/dom/WebCoreMemoryInstrumentation.h"
34 #include "core/page/DOMWindow.h" 34 #include "core/page/DOMWindow.h"
35 #include "core/page/SuspendableTimer.h" 35 #include "core/page/SuspendableTimer.h"
36 #include <wtf/MemoryInstrumentationHashSet.h> 36 #include "wtf/MemoryInstrumentationListHashSet.h"
37 #include <wtf/MemoryInstrumentationListHashSet.h>
38 37
39 namespace WebCore { 38 namespace WebCore {
40 39
41 class DocumentEventQueueTimer : public SuspendableTimer { 40 class DocumentEventQueueTimer : public SuspendableTimer {
42 WTF_MAKE_NONCOPYABLE(DocumentEventQueueTimer); 41 WTF_MAKE_NONCOPYABLE(DocumentEventQueueTimer);
43 public: 42 public:
44 DocumentEventQueueTimer(DocumentEventQueue* eventQueue, ScriptExecutionConte xt* context) 43 DocumentEventQueueTimer(DocumentEventQueue* eventQueue, ScriptExecutionConte xt* context)
45 : SuspendableTimer(context) 44 : SuspendableTimer(context)
46 , m_eventQueue(eventQueue) { } 45 , m_eventQueue(eventQueue) { }
47 46
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void DocumentEventQueue::dispatchEvent(PassRefPtr<Event> event) 156 void DocumentEventQueue::dispatchEvent(PassRefPtr<Event> event)
158 { 157 {
159 EventTarget* eventTarget = event->target(); 158 EventTarget* eventTarget = event->target();
160 if (eventTarget->toDOMWindow()) 159 if (eventTarget->toDOMWindow())
161 eventTarget->toDOMWindow()->dispatchEvent(event, 0); 160 eventTarget->toDOMWindow()->dispatchEvent(event, 0);
162 else 161 else
163 eventTarget->dispatchEvent(event); 162 eventTarget->dispatchEvent(event);
164 } 163 }
165 164
166 } 165 }
OLDNEW
« no previous file with comments | « Source/core/dom/DocumentEventQueue.h ('k') | Source/core/dom/DocumentFullscreen.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698