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

Unified Diff: webkit/glue/webframe_impl.cc

Issue 246079: More WebView / WebViewDelegate cleanup. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/inspector_client_impl.cc ('k') | webkit/glue/webpreferences.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframe_impl.cc
===================================================================
--- webkit/glue/webframe_impl.cc (revision 27906)
+++ webkit/glue/webframe_impl.cc (working copy)
@@ -1434,23 +1434,19 @@
total_matchcount_ += count;
// Update the UI with the latest findings.
- WebViewDelegate* webview_delegate = GetWebViewImpl()->delegate();
- DCHECK(webview_delegate);
- if (webview_delegate)
- webview_delegate->ReportFindInPageMatchCount(total_matchcount_, request_id,
- frames_scoping_count_ == 0);
+ if (client_) {
+ client_->reportFindInPageMatchCount(
+ request_id, total_matchcount_, frames_scoping_count_ == 0);
+ }
}
void WebFrameImpl::ReportFindInPageSelection(const WebRect& selection_rect,
int active_match_ordinal,
int request_id) {
// Update the UI with the latest selection rect.
- WebViewDelegate* webview_delegate = GetWebViewImpl()->delegate();
- DCHECK(webview_delegate);
- if (webview_delegate) {
- webview_delegate->ReportFindInPageSelection(
- request_id,
- OrdinalOfFirstMatchForFrame(this) + active_match_ordinal,
+ if (client_) {
+ client_->reportFindInPageSelection(
+ request_id, OrdinalOfFirstMatchForFrame(this) + active_match_ordinal,
selection_rect);
}
}
« no previous file with comments | « webkit/glue/inspector_client_impl.cc ('k') | webkit/glue/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698