| 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 1701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 void WebViewImpl::DeleteImageResourceFetcher(ImageResourceFetcher* fetcher) { | 1712 void WebViewImpl::DeleteImageResourceFetcher(ImageResourceFetcher* fetcher) { |
| 1713 DCHECK(image_fetchers_.find(fetcher) != image_fetchers_.end()); | 1713 DCHECK(image_fetchers_.find(fetcher) != image_fetchers_.end()); |
| 1714 image_fetchers_.erase(fetcher); | 1714 image_fetchers_.erase(fetcher); |
| 1715 | 1715 |
| 1716 // We're in the callback from the ImageResourceFetcher, best to delay | 1716 // We're in the callback from the ImageResourceFetcher, best to delay |
| 1717 // deletion. | 1717 // deletion. |
| 1718 MessageLoop::current()->DeleteSoon(FROM_HERE, fetcher); | 1718 MessageLoop::current()->DeleteSoon(FROM_HERE, fetcher); |
| 1719 } | 1719 } |
| 1720 | 1720 |
| 1721 void WebViewImpl::HideAutoCompletePopup() { | 1721 void WebViewImpl::HideAutoCompletePopup() { |
| 1722 if (autocomplete_popup_) { | 1722 if (autocomplete_popup_showing_) { |
| 1723 autocomplete_popup_->hidePopup(); | 1723 autocomplete_popup_->hidePopup(); |
| 1724 autocomplete_popup_showing_ = false; | 1724 autocomplete_popup_showing_ = false; |
| 1725 } | 1725 } |
| 1726 } | 1726 } |
| 1727 | 1727 |
| 1728 WebCore::Node* WebViewImpl::GetNodeForWindowPos(int x, int y) { | 1728 WebCore::Node* WebViewImpl::GetNodeForWindowPos(int x, int y) { |
| 1729 HitTestResult result = HitTestResultForWindowPos(IntPoint(x, y)); | 1729 HitTestResult result = HitTestResultForWindowPos(IntPoint(x, y)); |
| 1730 return result.innerNonSharedNode(); | 1730 return result.innerNonSharedNode(); |
| 1731 } | 1731 } |
| 1732 | 1732 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1759 | 1759 |
| 1760 return document->focusedNode(); | 1760 return document->focusedNode(); |
| 1761 } | 1761 } |
| 1762 | 1762 |
| 1763 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { | 1763 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { |
| 1764 IntPoint doc_point( | 1764 IntPoint doc_point( |
| 1765 page_->mainFrame()->view()->windowToContents(pos)); | 1765 page_->mainFrame()->view()->windowToContents(pos)); |
| 1766 return page_->mainFrame()->eventHandler()-> | 1766 return page_->mainFrame()->eventHandler()-> |
| 1767 hitTestResultAtPoint(doc_point, false); | 1767 hitTestResultAtPoint(doc_point, false); |
| 1768 } | 1768 } |
| OLD | NEW |