summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webframe_impl.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-03 05:01:26 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-03 05:01:26 +0000
commit8922e1ff7ac33a3f88079e1e6d3ae8671602a952 (patch)
treea842ba34b909f84e7f3db6d60235504ad7887db2 /webkit/glue/webframe_impl.cc
parent4b7d9b47a1adac0daa198761c01fc42ff1d9b394 (diff)
downloadchromium_src-8922e1ff7ac33a3f88079e1e6d3ae8671602a952.zip
chromium_src-8922e1ff7ac33a3f88079e1e6d3ae8671602a952.tar.gz
chromium_src-8922e1ff7ac33a3f88079e1e6d3ae8671602a952.tar.bz2
More WebView / WebViewDelegate cleanup.
Moves a bunch of methods from glue to the WebKit API. R=dglazkov BUG=10033 TEST=none Review URL: http://codereview.chromium.org/246079 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27941 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webframe_impl.cc')
-rw-r--r--webkit/glue/webframe_impl.cc18
1 files changed, 7 insertions, 11 deletions
diff --git a/webkit/glue/webframe_impl.cc b/webkit/glue/webframe_impl.cc
index 5b175c7..092bfc0 100644
--- a/webkit/glue/webframe_impl.cc
+++ b/webkit/glue/webframe_impl.cc
@@ -1434,23 +1434,19 @@ void WebFrameImpl::increaseMatchCount(int count, int request_id) {
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);
}
}