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

Side by Side Diff: third_party/WebKit/Source/web/tests/FrameTestHelpers.cpp

Issue 2479663002: Move compositor InputHandler from RenderViewImpl to RenderWidget. (Closed)
Patch Set: Check for layerTreeView while setting handlers. Created 3 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
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698