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

Unified Diff: webkit/glue/back_forward_list_client_impl.cc

Issue 196128: Hook up WebViewClient, part 1.... (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/api/public/WebViewClient.h ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/back_forward_list_client_impl.cc
===================================================================
--- webkit/glue/back_forward_list_client_impl.cc (revision 26230)
+++ webkit/glue/back_forward_list_client_impl.cc (working copy)
@@ -40,8 +40,8 @@
// not a reload or back/forward).
webview_->ObserveNewNavigation();
- if (webview_->delegate())
- webview_->delegate()->DidAddHistoryItem();
+ if (webview_->client())
+ webview_->client()->didAddHistoryItem();
}
void BackForwardListClientImpl::goToItem(WebCore::HistoryItem* item) {
@@ -78,17 +78,17 @@
}
int BackForwardListClientImpl::backListCount() {
- if (!webview_->delegate())
+ if (!webview_->client())
return 0;
- return webview_->delegate()->GetHistoryBackListCount();
+ return webview_->client()->historyBackListCount();
}
int BackForwardListClientImpl::forwardListCount() {
- if (!webview_->delegate())
+ if (!webview_->client())
return 0;
- return webview_->delegate()->GetHistoryForwardListCount();
+ return webview_->client()->historyForwardListCount();
}
void BackForwardListClientImpl::close() {
« no previous file with comments | « webkit/api/public/WebViewClient.h ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698