OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
297 ASSERT(!testClientForFrame(m_webView->mainFrame())->isLoading()); | 297 ASSERT(!testClientForFrame(m_webView->mainFrame())->isLoading()); |
298 m_webView->close(); | 298 m_webView->close(); |
299 m_webView = 0; | 299 m_webView = 0; |
300 } | 300 } |
301 } | 301 } |
302 | 302 |
303 TestWebFrameClient::TestWebFrameClient() : m_loadsInProgress(0) | 303 TestWebFrameClient::TestWebFrameClient() : m_loadsInProgress(0) |
304 { | 304 { |
305 } | 305 } |
306 | 306 |
307 WebFrame* TestWebFrameClient::createChildFrame(WebLocalFrame* parent, const WebS
tring& frameName) | 307 WebFrame* TestWebFrameClient::createChildFrame(WebLocalFrame* parent, const WebS
tring& frameName, WebSandboxFlags sandboxFlags) |
308 { | 308 { |
309 WebFrame* frame = WebLocalFrame::create(this); | 309 WebFrame* frame = WebLocalFrame::create(this); |
310 parent->appendChild(frame); | 310 parent->appendChild(frame); |
311 return frame; | 311 return frame; |
312 } | 312 } |
313 | 313 |
314 void TestWebFrameClient::frameDetached(WebFrame* frame) | 314 void TestWebFrameClient::frameDetached(WebFrame* frame) |
315 { | 315 { |
316 if (frame->parent()) | 316 if (frame->parent()) |
317 frame->parent()->removeChild(frame); | 317 frame->parent()->removeChild(frame); |
(...skipping 27 matching lines...) Expand all Loading... |
345 } | 345 } |
346 | 346 |
347 void TestWebViewClient::initializeLayerTreeView() | 347 void TestWebViewClient::initializeLayerTreeView() |
348 { | 348 { |
349 m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLay
erTreeViewForTesting()); | 349 m_layerTreeView = adoptPtr(Platform::current()->unitTestSupport()->createLay
erTreeViewForTesting()); |
350 ASSERT(m_layerTreeView); | 350 ASSERT(m_layerTreeView); |
351 } | 351 } |
352 | 352 |
353 } // namespace FrameTestHelpers | 353 } // namespace FrameTestHelpers |
354 } // namespace blink | 354 } // namespace blink |
OLD | NEW |