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

Side by Side Diff: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp

Issue 1367853002: Move GeolocationDispatcher into blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix layout tests Created 5 years, 2 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) 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 } 117 }
118 118
119 DEFINE_TRACE(FrameLoaderClientImpl) 119 DEFINE_TRACE(FrameLoaderClientImpl)
120 { 120 {
121 visitor->trace(m_webFrame); 121 visitor->trace(m_webFrame);
122 FrameLoaderClient::trace(visitor); 122 FrameLoaderClient::trace(visitor);
123 } 123 }
124 124
125 void FrameLoaderClientImpl::didCreateNewDocument() 125 void FrameLoaderClientImpl::didCreateNewDocument()
126 { 126 {
127 if (m_webFrame->client()) 127 if (m_webFrame->client()) {
128 m_webFrame->frame()->document()->setServiceProvider(m_webFrame->client() ->serviceProvider());
128 m_webFrame->client()->didCreateNewDocument(m_webFrame); 129 m_webFrame->client()->didCreateNewDocument(m_webFrame);
130 }
129 } 131 }
130 132
131 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld() 133 void FrameLoaderClientImpl::dispatchDidClearWindowObjectInMainWorld()
132 { 134 {
133 if (m_webFrame->client()) { 135 if (m_webFrame->client()) {
134 m_webFrame->client()->didClearWindowObject(m_webFrame); 136 m_webFrame->client()->didClearWindowObject(m_webFrame);
135 Document* document = m_webFrame->frame()->document(); 137 Document* document = m_webFrame->frame()->document();
136 if (document) { 138 if (document) {
137 DeviceMotionController::from(*document); 139 DeviceMotionController::from(*document);
138 DeviceOrientationController::from(*document); 140 DeviceOrientationController::from(*document);
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 945
944 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) 946 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type)
945 { 947 {
946 if (m_webFrame->client()) { 948 if (m_webFrame->client()) {
947 m_webFrame->client()->suddenTerminationDisablerChanged( 949 m_webFrame->client()->suddenTerminationDisablerChanged(
948 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); 950 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type));
949 } 951 }
950 } 952 }
951 953
952 } // namespace blink 954 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698