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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
323 | 323 |
324 WebLayerTreeView* TestWebViewClient::initializeLayerTreeView() { | 324 WebLayerTreeView* TestWebViewClient::initializeLayerTreeView() { |
325 m_layerTreeView = WTF::wrapUnique(new WebLayerTreeViewImplForTesting); | 325 m_layerTreeView = WTF::wrapUnique(new WebLayerTreeViewImplForTesting); |
326 return m_layerTreeView.get(); | 326 return m_layerTreeView.get(); |
327 } | 327 } |
328 | 328 |
329 WebLayerTreeView* TestWebViewWidgetClient::initializeLayerTreeView() { | 329 WebLayerTreeView* TestWebViewWidgetClient::initializeLayerTreeView() { |
330 return m_testWebViewClient->initializeLayerTreeView(); | 330 return m_testWebViewClient->initializeLayerTreeView(); |
331 } | 331 } |
332 | 332 |
333 WebLayerTreeView* TestWebWidgetClient::initializeLayerTreeView() { | |
334 m_layerTreeView = WTF::wrapUnique(new WebLayerTreeViewImplForTesting); | |
dcheng
2017/01/16 11:05:41
Prefer WTF::makeUnique now that we have that.
wjmaclean
2017/01/17 18:23:28
Done.
| |
335 return m_layerTreeView.get(); | |
336 } | |
337 | |
333 void TestWebViewWidgetClient::scheduleAnimation() { | 338 void TestWebViewWidgetClient::scheduleAnimation() { |
334 m_testWebViewClient->scheduleAnimation(); | 339 m_testWebViewClient->scheduleAnimation(); |
335 } | 340 } |
336 | 341 |
337 void TestWebViewWidgetClient::didMeaningfulLayout( | 342 void TestWebViewWidgetClient::didMeaningfulLayout( |
338 WebMeaningfulLayout layoutType) { | 343 WebMeaningfulLayout layoutType) { |
339 m_testWebViewClient->didMeaningfulLayout(layoutType); | 344 m_testWebViewClient->didMeaningfulLayout(layoutType); |
340 } | 345 } |
341 | 346 |
342 } // namespace FrameTestHelpers | 347 } // namespace FrameTestHelpers |
343 } // namespace blink | 348 } // namespace blink |
OLD | NEW |