| 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 { | 282 { |
| 283 ++m_loadsInProgress; | 283 ++m_loadsInProgress; |
| 284 } | 284 } |
| 285 | 285 |
| 286 void TestWebFrameClient::didStopLoading() | 286 void TestWebFrameClient::didStopLoading() |
| 287 { | 287 { |
| 288 DCHECK_GT(m_loadsInProgress, 0); | 288 DCHECK_GT(m_loadsInProgress, 0); |
| 289 --m_loadsInProgress; | 289 --m_loadsInProgress; |
| 290 } | 290 } |
| 291 | 291 |
| 292 void TestWebFrameClient::checkIfAudioSinkExistsAndIsAuthorized(const WebString&
sinkId, const WebSecurityOrigin&, WebSetSinkIdCallbacks*) |
| 293 { |
| 294 NOTREACHED(); |
| 295 } |
| 296 |
| 292 TestWebRemoteFrameClient::TestWebRemoteFrameClient() | 297 TestWebRemoteFrameClient::TestWebRemoteFrameClient() |
| 293 : m_frame(WebRemoteFrameImpl::create(WebTreeScopeType::Document, this, nullp
tr)) | 298 : m_frame(WebRemoteFrameImpl::create(WebTreeScopeType::Document, this, nullp
tr)) |
| 294 { | 299 { |
| 295 } | 300 } |
| 296 | 301 |
| 297 void TestWebRemoteFrameClient::frameDetached(DetachType type) | 302 void TestWebRemoteFrameClient::frameDetached(DetachType type) |
| 298 { | 303 { |
| 299 if (type == DetachType::Remove && m_frame->parent()) | 304 if (type == DetachType::Remove && m_frame->parent()) |
| 300 m_frame->parent()->removeChild(m_frame); | 305 m_frame->parent()->removeChild(m_frame); |
| 301 m_frame->close(); | 306 m_frame->close(); |
| 302 } | 307 } |
| 303 | 308 |
| 304 void TestWebViewClient::initializeLayerTreeView() | 309 void TestWebViewClient::initializeLayerTreeView() |
| 305 { | 310 { |
| 306 m_layerTreeView = adoptPtr(new WebLayerTreeViewImplForTesting); | 311 m_layerTreeView = adoptPtr(new WebLayerTreeViewImplForTesting); |
| 307 } | 312 } |
| 308 | 313 |
| 309 } // namespace FrameTestHelpers | 314 } // namespace FrameTestHelpers |
| 310 } // namespace blink | 315 } // namespace blink |
| OLD | NEW |