summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webview_impl.cc
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 16:47:52 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-16 16:47:52 +0000
commit48c9cf2d85fa8a6a2de61946d377d561b9bb5c6e (patch)
treeedf21dfb828b0b18ed2db136424f0a12e5cb9655 /webkit/glue/webview_impl.cc
parent2dd011df2acf628a0d23346a8a518000d18dd683 (diff)
downloadchromium_src-48c9cf2d85fa8a6a2de61946d377d561b9bb5c6e.zip
chromium_src-48c9cf2d85fa8a6a2de61946d377d561b9bb5c6e.tar.gz
chromium_src-48c9cf2d85fa8a6a2de61946d377d561b9bb5c6e.tar.bz2
Hook up WebViewClient, part 1.
This change makes WebViewDelegate extend from WebViewClient as a temporary means to start having consumers implement and use WebViewClient. R=dglazkov BUG=10033 TEST=none Review URL: http://codereview.chromium.org/196128 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26355 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webview_impl.cc')
-rw-r--r--webkit/glue/webview_impl.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/webkit/glue/webview_impl.cc b/webkit/glue/webview_impl.cc
index e708327..38d4f94 100644
--- a/webkit/glue/webview_impl.cc
+++ b/webkit/glue/webview_impl.cc
@@ -116,6 +116,7 @@ using WebKit::WebTextDirection;
using WebKit::WebTextDirectionDefault;
using WebKit::WebTextDirectionLeftToRight;
using WebKit::WebTextDirectionRightToLeft;
+using WebKit::WebURL;
using webkit_glue::ImageResourceFetcher;
@@ -457,7 +458,7 @@ void WebViewImpl::MouseLeave(const WebMouseEvent& event) {
if (!main_frame() || !main_frame()->frameview())
return;
- delegate_->UpdateTargetURL(this, GURL());
+ client()->setMouseOverURL(WebURL());
main_frame()->frame()->eventHandler()->handleMouseMoveEvent(
PlatformMouseEventBuilder(main_frame()->frameview(), event));
@@ -1814,14 +1815,14 @@ void WebViewImpl::DidCommitLoad(bool* is_new_navigation) {
observed_new_navigation_ = false;
}
-void WebViewImpl::StartDragging(WebPoint event_pos,
+void WebViewImpl::StartDragging(const WebPoint& event_pos,
const WebDragData& drag_data,
WebDragOperationsMask mask) {
- if (delegate_) {
- DCHECK(!doing_drag_and_drop_);
- doing_drag_and_drop_ = true;
- delegate_->StartDragging(this, event_pos, drag_data, mask);
- }
+ if (!client())
+ return;
+ DCHECK(!doing_drag_and_drop_);
+ doing_drag_and_drop_ = true;
+ client()->startDragging(event_pos, drag_data, mask);
}
void WebViewImpl::OnImageFetchComplete(ImageResourceFetcher* fetcher,