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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 1918183004: Switch the inheritance of WebView from WebWidget to protected. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 render_view()->GetWebView(), 827 render_view()->GetWebView(),
828 base::Bind(&BlinkTestRunner::OnPixelsDumpCompleted, 828 base::Bind(&BlinkTestRunner::OnPixelsDumpCompleted,
829 base::Unretained(this))); 829 base::Unretained(this)));
830 return; 830 return;
831 } 831 }
832 832
833 #ifndef NDEBUG 833 #ifndef NDEBUG
834 // Force a layout/paint by the end of the test to ensure test coverage of 834 // Force a layout/paint by the end of the test to ensure test coverage of
835 // incremental painting. 835 // incremental painting.
836 test_runner::LayoutAndPaintAsyncThen( 836 test_runner::LayoutAndPaintAsyncThen(
837 render_view()->GetWebView(), 837 render_view()
838 ->GetWebView()
839 ->mainFrame()
840 ->toWebLocalFrame()
841 ->frameWidget(),
838 base::Bind(&BlinkTestRunner::CaptureDumpComplete, 842 base::Bind(&BlinkTestRunner::CaptureDumpComplete,
839 base::Unretained(this))); 843 base::Unretained(this)));
840 #else 844 #else
841 CaptureDumpComplete(); 845 CaptureDumpComplete();
842 #endif 846 #endif
843 } 847 }
844 848
845 void BlinkTestRunner::OnPixelsDumpCompleted(const SkBitmap& snapshot) { 849 void BlinkTestRunner::OnPixelsDumpCompleted(const SkBitmap& snapshot) {
846 DCHECK_NE(0, snapshot.info().width()); 850 DCHECK_NE(0, snapshot.info().width());
847 DCHECK_NE(0, snapshot.info().height()); 851 DCHECK_NE(0, snapshot.info().height());
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
962 get_bluetooth_events_callbacks_.pop_front(); 966 get_bluetooth_events_callbacks_.pop_front();
963 callback.Run(events); 967 callback.Run(events);
964 } 968 }
965 969
966 void BlinkTestRunner::ReportLeakDetectionResult( 970 void BlinkTestRunner::ReportLeakDetectionResult(
967 const LeakDetectionResult& report) { 971 const LeakDetectionResult& report) {
968 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 972 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
969 } 973 }
970 974
971 } // namespace content 975 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | content/shell/renderer/layout_test/layout_test_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698