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

Side by Side Diff: webkit/glue/webview_impl.cc

Issue 31010: Hook up inspector highlighting again. This time we use... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« webkit/glue/webframe_impl.h ('K') | « webkit/glue/webview_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2007 Google Inc. All Rights Reserved. 2 * Copyright 2007 Google Inc. All Rights Reserved.
3 * 3 *
4 * Portions Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 4 * Portions Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
5 * 5 *
6 * ***** BEGIN LICENSE BLOCK ***** 6 * ***** BEGIN LICENSE BLOCK *****
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after
1606 } 1606 }
1607 1607
1608 void WebViewImpl::StartDragging(const WebDropData& drop_data) { 1608 void WebViewImpl::StartDragging(const WebDropData& drop_data) {
1609 if (delegate_) { 1609 if (delegate_) {
1610 DCHECK(!doing_drag_and_drop_); 1610 DCHECK(!doing_drag_and_drop_);
1611 doing_drag_and_drop_ = true; 1611 doing_drag_and_drop_ = true;
1612 delegate_->StartDragging(this, drop_data); 1612 delegate_->StartDragging(this, drop_data);
1613 } 1613 }
1614 } 1614 }
1615 1615
1616 const WebCore::Node* WebViewImpl::getInspectedNode(WebCore::Frame* frame) {
1617 DCHECK(frame);
1618 WebFrameImpl* webframe_impl = WebFrameImpl::FromFrame(frame);
1619 if (!webframe_impl)
1620 return NULL;
1621
1622 return webframe_impl->inspected_node();
1623 }
1624
1625 void WebViewImpl::ImageResourceDownloadDone(ImageResourceFetcher* fetcher, 1616 void WebViewImpl::ImageResourceDownloadDone(ImageResourceFetcher* fetcher,
1626 bool errored, 1617 bool errored,
1627 const SkBitmap& image) { 1618 const SkBitmap& image) {
1628 if (delegate_) { 1619 if (delegate_) {
1629 delegate_->DidDownloadImage(fetcher->id(), fetcher->image_url(), errored, 1620 delegate_->DidDownloadImage(fetcher->id(), fetcher->image_url(), errored,
1630 image); 1621 image);
1631 } 1622 }
1632 DeleteImageResourceFetcher(fetcher); 1623 DeleteImageResourceFetcher(fetcher);
1633 } 1624 }
1634 1625
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
1693 Frame* frame = page_->focusController()->focusedFrame(); 1684 Frame* frame = page_->focusController()->focusedFrame();
1694 if (!frame) 1685 if (!frame)
1695 return NULL; 1686 return NULL;
1696 1687
1697 Document* document = frame->document(); 1688 Document* document = frame->document();
1698 if (!document) 1689 if (!document)
1699 return NULL; 1690 return NULL;
1700 1691
1701 return document->focusedNode(); 1692 return document->focusedNode();
1702 } 1693 }
OLDNEW
« webkit/glue/webframe_impl.h ('K') | « webkit/glue/webview_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698