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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 void LocalFrameClientImpl::DidChangeScrollOffset() { | 223 void LocalFrameClientImpl::DidChangeScrollOffset() { |
224 if (web_frame_->Client()) | 224 if (web_frame_->Client()) |
225 web_frame_->Client()->DidChangeScrollOffset(web_frame_); | 225 web_frame_->Client()->DidChangeScrollOffset(web_frame_); |
226 } | 226 } |
227 | 227 |
228 void LocalFrameClientImpl::DidUpdateCurrentHistoryItem() { | 228 void LocalFrameClientImpl::DidUpdateCurrentHistoryItem() { |
229 if (web_frame_->Client()) | 229 if (web_frame_->Client()) |
230 web_frame_->Client()->DidUpdateCurrentHistoryItem(); | 230 web_frame_->Client()->DidUpdateCurrentHistoryItem(); |
231 } | 231 } |
232 | 232 |
| 233 bool LocalFrameClientImpl::AllowContentInitiatedDataUrlNavigations( |
| 234 const KURL& url) { |
| 235 if (RuntimeEnabledFeatures::allowContentInitiatedDataUrlNavigationsEnabled()) |
| 236 return true; |
| 237 if (web_frame_->Client()) |
| 238 return web_frame_->Client()->AllowContentInitiatedDataUrlNavigations(url); |
| 239 return false; |
| 240 } |
| 241 |
233 bool LocalFrameClientImpl::HasWebView() const { | 242 bool LocalFrameClientImpl::HasWebView() const { |
234 return web_frame_->ViewImpl(); | 243 return web_frame_->ViewImpl(); |
235 } | 244 } |
236 | 245 |
237 bool LocalFrameClientImpl::InShadowTree() const { | 246 bool LocalFrameClientImpl::InShadowTree() const { |
238 return web_frame_->InShadowTree(); | 247 return web_frame_->InShadowTree(); |
239 } | 248 } |
240 | 249 |
241 Frame* LocalFrameClientImpl::Opener() const { | 250 Frame* LocalFrameClientImpl::Opener() const { |
242 return ToCoreFrame(web_frame_->Opener()); | 251 return ToCoreFrame(web_frame_->Opener()); |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
985 void LocalFrameClientImpl::AbortClientNavigation() { | 994 void LocalFrameClientImpl::AbortClientNavigation() { |
986 if (web_frame_->Client()) | 995 if (web_frame_->Client()) |
987 web_frame_->Client()->AbortClientNavigation(); | 996 web_frame_->Client()->AbortClientNavigation(); |
988 } | 997 } |
989 | 998 |
990 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { | 999 TextCheckerClient& LocalFrameClientImpl::GetTextCheckerClient() const { |
991 return web_frame_->GetTextCheckerClient(); | 1000 return web_frame_->GetTextCheckerClient(); |
992 } | 1001 } |
993 | 1002 |
994 } // namespace blink | 1003 } // namespace blink |
OLD | NEW |