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

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

Issue 297103002: Move modules-dependent Event code out of core. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline Created 6 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 3891 matching lines...) Expand 10 before | Expand all | Expand 10 after
3902 RefPtrWillBeRawPtr<Event> event = Event::create(EventTypeNames::resize); 3902 RefPtrWillBeRawPtr<Event> event = Event::create(EventTypeNames::resize);
3903 event->setTarget(domWindow()); 3903 event->setTarget(domWindow());
3904 ensureScriptedAnimationController().enqueuePerFrameEvent(event.release()); 3904 ensureScriptedAnimationController().enqueuePerFrameEvent(event.release());
3905 } 3905 }
3906 3906
3907 PassRefPtrWillBeRawPtr<Event> Document::createEvent(const String& eventType, Exc eptionState& exceptionState) 3907 PassRefPtrWillBeRawPtr<Event> Document::createEvent(const String& eventType, Exc eptionState& exceptionState)
3908 { 3908 {
3909 RefPtrWillBeRawPtr<Event> event = EventFactory::create(eventType); 3909 RefPtrWillBeRawPtr<Event> event = EventFactory::create(eventType);
3910 if (event) 3910 if (event)
3911 return event.release(); 3911 return event.release();
3912 event = EventModulesFactory::create(eventType); // TODO: move this to module s http://crbug.com/358074
3913 if (event)
3914 return event.release();
3915 3912
3916 exceptionState.throwDOMException(NotSupportedError, "The provided event type ('" + eventType + "') is invalid."); 3913 exceptionState.throwDOMException(NotSupportedError, "The provided event type ('" + eventType + "') is invalid.");
3917 return nullptr; 3914 return nullptr;
3918 } 3915 }
3919 3916
3920 void Document::addMutationEventListenerTypeIfEnabled(ListenerType listenerType) 3917 void Document::addMutationEventListenerTypeIfEnabled(ListenerType listenerType)
3921 { 3918 {
3922 if (ContextFeatures::mutationEventsEnabled(this)) 3919 if (ContextFeatures::mutationEventsEnabled(this))
3923 addListenerType(listenerType); 3920 addListenerType(listenerType);
3924 } 3921 }
(...skipping 1860 matching lines...) Expand 10 before | Expand all | Expand 10 after
5785 visitor->trace(m_timeline); 5782 visitor->trace(m_timeline);
5786 visitor->trace(m_compositorPendingAnimations); 5783 visitor->trace(m_compositorPendingAnimations);
5787 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this); 5784 visitor->registerWeakMembers<Document, &Document::clearWeakMembers>(this);
5788 DocumentSupplementable::trace(visitor); 5785 DocumentSupplementable::trace(visitor);
5789 TreeScope::trace(visitor); 5786 TreeScope::trace(visitor);
5790 ContainerNode::trace(visitor); 5787 ContainerNode::trace(visitor);
5791 ExecutionContext::trace(visitor); 5788 ExecutionContext::trace(visitor);
5792 } 5789 }
5793 5790
5794 } // namespace WebCore 5791 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698