|
|
Provide an overload to WebView::create that does not require a WebViewClient.
Provide an overload to WebView::create and WebViewImpl::create where a
that does not require WebViewClient or nullptr to be passed.
This is part of the pre-work to make it invalid to pass a nullptr to
WebView::create - it makes more sense for clients to be able to call a specific
method when they don't want to supply a client rathen than passing nullptr.
Also added DCHECK() to WebView*::create(WebViewClient*) to prevent nullptr being
passed, and went and cleaned up all of the call sites.
Followup work will create a internal specialization of WebViewClient that will
behave the way that a null WebViewClient works today.
BUG= 696895
COMMIT=false
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+36 lines, -14 lines) |
Patch |
 |
M |
components/printing/renderer/print_web_view_helper.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
content/renderer/media/android/media_info_loader_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
extensions/renderer/scoped_web_frame.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/blink/multibuffer_data_source_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/blink/resource_multibuffer_data_provider_unittest.cc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
media/blink/webmediaplayer_impl_unittest.cc
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebSharedWorkerImpl.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebViewImpl.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/WebViewImpl.cpp
|
View
|
1
|
1 chunk |
+17 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/Source/web/tests/WebViewTest.cpp
|
View
|
|
1 chunk |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
third_party/WebKit/public/web/WebView.h
|
View
|
|
1 chunk |
+9 lines, -3 lines |
0 comments
|
Download
|
Total messages: 22 (4 generated)
|