| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 void FrameLoaderClientImpl::loadURLExternally(const ResourceRequest& request, Na
vigationPolicy policy, const String& suggestedName) | 239 void FrameLoaderClientImpl::loadURLExternally(const ResourceRequest& request, Na
vigationPolicy policy, const String& suggestedName) |
| 240 { | 240 { |
| 241 if (m_webFrame->client()) { | 241 if (m_webFrame->client()) { |
| 242 ASSERT(m_webFrame->frame()->document()); | 242 ASSERT(m_webFrame->frame()->document()); |
| 243 WrappedResourceRequest webreq(request); | 243 WrappedResourceRequest webreq(request); |
| 244 m_webFrame->client()->loadURLExternally( | 244 m_webFrame->client()->loadURLExternally( |
| 245 m_webFrame, webreq, static_cast<WebNavigationPolicy>(policy), sugges
tedName); | 245 m_webFrame, webreq, static_cast<WebNavigationPolicy>(policy), sugges
tedName); |
| 246 } | 246 } |
| 247 } | 247 } |
| 248 | 248 |
| 249 mojo::View* FrameLoaderClientImpl::createChildFrame(const KURL& url) | 249 mojo::View* FrameLoaderClientImpl::createChildFrame() |
| 250 { | 250 { |
| 251 if (m_webFrame->client()) { | 251 if (m_webFrame->client()) |
| 252 return m_webFrame->client()->createChildFrame(url); | 252 return m_webFrame->client()->createChildFrame(); |
| 253 } | |
| 254 ASSERT_NOT_REACHED(); | 253 ASSERT_NOT_REACHED(); |
| 255 return nullptr; | 254 return nullptr; |
| 256 } | 255 } |
| 257 | 256 |
| 258 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele
ctors, const Vector<String>& removedSelectors) | 257 void FrameLoaderClientImpl::selectorMatchChanged(const Vector<String>& addedSele
ctors, const Vector<String>& removedSelectors) |
| 259 { | 258 { |
| 260 if (WebFrameClient* client = m_webFrame->client()) | 259 if (WebFrameClient* client = m_webFrame->client()) |
| 261 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), We
bVector<WebString>(removedSelectors)); | 260 client->didMatchCSS(m_webFrame, WebVector<WebString>(addedSelectors), We
bVector<WebString>(removedSelectors)); |
| 262 } | 261 } |
| 263 | 262 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 274 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); | 273 m_webFrame->client()->didLoseWebGLContext(m_webFrame, arbRobustnessConte
xtLostReason); |
| 275 } | 274 } |
| 276 | 275 |
| 277 void FrameLoaderClientImpl::dispatchDidChangeManifest() | 276 void FrameLoaderClientImpl::dispatchDidChangeManifest() |
| 278 { | 277 { |
| 279 if (m_webFrame->client()) | 278 if (m_webFrame->client()) |
| 280 m_webFrame->client()->didChangeManifest(m_webFrame); | 279 m_webFrame->client()->didChangeManifest(m_webFrame); |
| 281 } | 280 } |
| 282 | 281 |
| 283 } // namespace blink | 282 } // namespace blink |
| OLD | NEW |