OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |