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

Side by Side Diff: sky/engine/web/FrameLoaderClientImpl.cpp

Issue 793393003: Move the call to mojo::View::Embed to HTMLIFrameElement (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « sky/engine/web/FrameLoaderClientImpl.h ('k') | sky/viewer/document_view.h » ('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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « sky/engine/web/FrameLoaderClientImpl.h ('k') | sky/viewer/document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698