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

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

Issue 2174023002: Add UseCounters for ViewportAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 #include "core/editing/markers/DocumentMarkerController.h" 119 #include "core/editing/markers/DocumentMarkerController.h"
120 #include "core/editing/serializers/Serialization.h" 120 #include "core/editing/serializers/Serialization.h"
121 #include "core/editing/spellcheck/SpellChecker.h" 121 #include "core/editing/spellcheck/SpellChecker.h"
122 #include "core/events/BeforeUnloadEvent.h" 122 #include "core/events/BeforeUnloadEvent.h"
123 #include "core/events/Event.h" 123 #include "core/events/Event.h"
124 #include "core/events/EventFactory.h" 124 #include "core/events/EventFactory.h"
125 #include "core/events/EventListener.h" 125 #include "core/events/EventListener.h"
126 #include "core/events/HashChangeEvent.h" 126 #include "core/events/HashChangeEvent.h"
127 #include "core/events/PageTransitionEvent.h" 127 #include "core/events/PageTransitionEvent.h"
128 #include "core/events/ScopedEventQueue.h" 128 #include "core/events/ScopedEventQueue.h"
129 #include "core/events/VisualViewportResizeEvent.h"
130 #include "core/events/VisualViewportScrollEvent.h"
129 #include "core/fetch/ResourceFetcher.h" 131 #include "core/fetch/ResourceFetcher.h"
130 #include "core/frame/DOMTimer.h" 132 #include "core/frame/DOMTimer.h"
131 #include "core/frame/DOMVisualViewport.h" 133 #include "core/frame/DOMVisualViewport.h"
132 #include "core/frame/EventHandlerRegistry.h" 134 #include "core/frame/EventHandlerRegistry.h"
133 #include "core/frame/FrameConsole.h" 135 #include "core/frame/FrameConsole.h"
134 #include "core/frame/FrameHost.h" 136 #include "core/frame/FrameHost.h"
135 #include "core/frame/FrameView.h" 137 #include "core/frame/FrameView.h"
136 #include "core/frame/History.h" 138 #include "core/frame/History.h"
137 #include "core/frame/HostsUsingFeatures.h" 139 #include "core/frame/HostsUsingFeatures.h"
138 #include "core/frame/LocalDOMWindow.h" 140 #include "core/frame/LocalDOMWindow.h"
(...skipping 3778 matching lines...) Expand 10 before | Expand all | Expand 10 after
3917 ensureScriptedAnimationController().enqueuePerFrameEvent(event); 3919 ensureScriptedAnimationController().enqueuePerFrameEvent(event);
3918 } 3920 }
3919 3921
3920 void Document::enqueueMediaQueryChangeListeners(HeapVector<Member<MediaQueryList Listener>>& listeners) 3922 void Document::enqueueMediaQueryChangeListeners(HeapVector<Member<MediaQueryList Listener>>& listeners)
3921 { 3923 {
3922 ensureScriptedAnimationController().enqueueMediaQueryChangeListeners(listene rs); 3924 ensureScriptedAnimationController().enqueueMediaQueryChangeListeners(listene rs);
3923 } 3925 }
3924 3926
3925 void Document::enqueueVisualViewportScrollEvent() 3927 void Document::enqueueVisualViewportScrollEvent()
3926 { 3928 {
3927 Event* event = Event::create(EventTypeNames::scroll); 3929 VisualViewportScrollEvent* event = VisualViewportScrollEvent::create();
3928 event->setTarget(domWindow()->visualViewport()); 3930 event->setTarget(domWindow()->visualViewport());
3929 ensureScriptedAnimationController().enqueuePerFrameEvent(event); 3931 ensureScriptedAnimationController().enqueuePerFrameEvent(event);
3930 } 3932 }
3931 3933
3932 void Document::enqueueVisualViewportResizeEvent() 3934 void Document::enqueueVisualViewportResizeEvent()
3933 { 3935 {
3934 Event* event = Event::create(EventTypeNames::resize); 3936 VisualViewportResizeEvent* event = VisualViewportResizeEvent::create();
3935 event->setTarget(domWindow()->visualViewport()); 3937 event->setTarget(domWindow()->visualViewport());
3936 ensureScriptedAnimationController().enqueuePerFrameEvent(event); 3938 ensureScriptedAnimationController().enqueuePerFrameEvent(event);
3937 } 3939 }
3938 3940
3939 void Document::dispatchEventsForPrinting() 3941 void Document::dispatchEventsForPrinting()
3940 { 3942 {
3941 if (!m_scriptedAnimationController) 3943 if (!m_scriptedAnimationController)
3942 return; 3944 return;
3943 m_scriptedAnimationController->dispatchEventsAndCallbacksForPrinting(); 3945 m_scriptedAnimationController->dispatchEventsAndCallbacksForPrinting();
3944 } 3946 }
(...skipping 2094 matching lines...) Expand 10 before | Expand all | Expand 10 after
6039 } 6041 }
6040 6042
6041 void showLiveDocumentInstances() 6043 void showLiveDocumentInstances()
6042 { 6044 {
6043 WeakDocumentSet& set = liveDocumentSet(); 6045 WeakDocumentSet& set = liveDocumentSet();
6044 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 6046 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
6045 for (Document* document : set) 6047 for (Document* document : set)
6046 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data()); 6048 fprintf(stderr, "- Document %p URL: %s\n", document, document->url().get String().utf8().data());
6047 } 6049 }
6048 #endif 6050 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/events/VisualViewportResizeEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698