OLD | NEW |
---|---|
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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
180 } | 180 } |
181 | 181 |
182 void FrameLoaderClientImpl::didChangeScrollOffset() | 182 void FrameLoaderClientImpl::didChangeScrollOffset() |
183 { | 183 { |
184 if (m_webFrame->client()) | 184 if (m_webFrame->client()) |
185 m_webFrame->client()->didChangeScrollOffset(m_webFrame); | 185 m_webFrame->client()->didChangeScrollOffset(m_webFrame); |
186 if (WebViewImpl* webview = m_webFrame->viewImpl()) | 186 if (WebViewImpl* webview = m_webFrame->viewImpl()) |
187 webview->devToolsEmulator()->viewportChanged(); | 187 webview->devToolsEmulator()->viewportChanged(); |
188 } | 188 } |
189 | 189 |
190 void FrameLoaderClientImpl::didChangeScrollingMode(Frame* childFrame, ScrollbarM ode scrollingMode) | |
alexmos
2015/09/02 21:37:05
Nit: move these down to didChangeName and DidChang
lazyboy
2015/09/15 01:40:33
Done.
| |
191 { | |
192 if (!m_webFrame->client()) | |
193 return; | |
194 | |
195 m_webFrame->client()->didChangeScrollingMode(WebFrame::fromFrame(childFrame) , static_cast<WebFrameOwnerProperties::ScrollingMode>(scrollingMode)); | |
196 } | |
197 | |
198 void FrameLoaderClientImpl::didChangeMarginWidth(Frame* childFrame, int newMargi nWidth) | |
199 { | |
200 if (m_webFrame->client()) | |
201 m_webFrame->client()->didChangeMarginWidth(WebFrame::fromFrame(childFram e), newMarginWidth); | |
202 } | |
203 | |
204 void FrameLoaderClientImpl::didChangeMarginHeight(Frame* childFrame, int newMarg inHeight) | |
205 { | |
206 if (m_webFrame->client()) | |
207 m_webFrame->client()->didChangeMarginHeight(WebFrame::fromFrame(childFra me), newMarginHeight); | |
208 } | |
209 | |
190 void FrameLoaderClientImpl::didUpdateCurrentHistoryItem() | 210 void FrameLoaderClientImpl::didUpdateCurrentHistoryItem() |
191 { | 211 { |
192 if (m_webFrame->client()) | 212 if (m_webFrame->client()) |
193 m_webFrame->client()->didUpdateCurrentHistoryItem(m_webFrame); | 213 m_webFrame->client()->didUpdateCurrentHistoryItem(m_webFrame); |
194 } | 214 } |
195 | 215 |
196 void FrameLoaderClientImpl::didRemoveAllPendingStylesheet() | 216 void FrameLoaderClientImpl::didRemoveAllPendingStylesheet() |
197 { | 217 { |
198 WebViewImpl* webview = m_webFrame->viewImpl(); | 218 WebViewImpl* webview = m_webFrame->viewImpl(); |
199 if (webview) | 219 if (webview) |
(...skipping 756 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
956 | 976 |
957 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) | 977 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde nTerminationDisablerType type) |
958 { | 978 { |
959 if (m_webFrame->client()) { | 979 if (m_webFrame->client()) { |
960 m_webFrame->client()->suddenTerminationDisablerChanged( | 980 m_webFrame->client()->suddenTerminationDisablerChanged( |
961 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); | 981 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>( type)); |
962 } | 982 } |
963 } | 983 } |
964 | 984 |
965 } // namespace blink | 985 } // namespace blink |
OLD | NEW |