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

Side by Side Diff: trunk/Source/web/FrameLoaderClientImpl.cpp

Issue 218813002: Revert 170357 "Revert of Make DOMWrapperWorld::current() return ..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « trunk/Source/web/FrameLoaderClientImpl.h ('k') | trunk/Source/web/tests/CustomEventTest.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) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * Copyright (C) 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2011 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 103
104 FrameLoaderClientImpl::FrameLoaderClientImpl(WebFrameImpl* frame) 104 FrameLoaderClientImpl::FrameLoaderClientImpl(WebFrameImpl* frame)
105 : m_webFrame(frame) 105 : m_webFrame(frame)
106 { 106 {
107 } 107 }
108 108
109 FrameLoaderClientImpl::~FrameLoaderClientImpl() 109 FrameLoaderClientImpl::~FrameLoaderClientImpl()
110 { 110 {
111 } 111 }
112 112
113 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld* world) 113 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInWorld(DOMWrapperWorld& world)
114 { 114 {
115 if (m_webFrame->client()) { 115 if (m_webFrame->client()) {
116 m_webFrame->client()->didClearWindowObject(m_webFrame, world->worldId()) ; 116 m_webFrame->client()->didClearWindowObject(m_webFrame, world.worldId());
117 Document* document = m_webFrame->frame()->document(); 117 Document* document = m_webFrame->frame()->document();
118 if (document) { 118 if (document) {
119 WheelController::from(*document); 119 WheelController::from(*document);
120 if (RuntimeEnabledFeatures::deviceMotionEnabled()) 120 if (RuntimeEnabledFeatures::deviceMotionEnabled())
121 DeviceMotionController::from(*document); 121 DeviceMotionController::from(*document);
122 if (RuntimeEnabledFeatures::deviceOrientationEnabled()) 122 if (RuntimeEnabledFeatures::deviceOrientationEnabled())
123 DeviceOrientationController::from(*document); 123 DeviceOrientationController::from(*document);
124 if (RuntimeEnabledFeatures::screenOrientationEnabled()) 124 if (RuntimeEnabledFeatures::screenOrientationEnabled())
125 ScreenOrientationController::from(*document); 125 ScreenOrientationController::from(*document);
126 if (RuntimeEnabledFeatures::gamepadEnabled()) 126 if (RuntimeEnabledFeatures::gamepadEnabled())
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame, client)); 794 return adoptPtr(m_webFrame->client()->createApplicationCacheHost(m_webFrame, client));
795 } 795 }
796 796
797 void FrameLoaderClientImpl::didStopAllLoaders() 797 void FrameLoaderClientImpl::didStopAllLoaders()
798 { 798 {
799 if (m_webFrame->client()) 799 if (m_webFrame->client())
800 m_webFrame->client()->didAbortLoading(m_webFrame); 800 m_webFrame->client()->didAbortLoading(m_webFrame);
801 } 801 }
802 802
803 } // namespace blink 803 } // namespace blink
OLDNEW
« no previous file with comments | « trunk/Source/web/FrameLoaderClientImpl.h ('k') | trunk/Source/web/tests/CustomEventTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698