| 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 1718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1729 void WebViewImpl::onScrollPositionChanged(WebCore::Widget* widget) { | 1729 void WebViewImpl::onScrollPositionChanged(WebCore::Widget* widget) { |
| 1730 // Scroll position changes should be reflected in the session history. | 1730 // Scroll position changes should be reflected in the session history. |
| 1731 if (delegate_) | 1731 if (delegate_) |
| 1732 delegate_->OnNavStateChanged(this); | 1732 delegate_->OnNavStateChanged(this); |
| 1733 } | 1733 } |
| 1734 | 1734 |
| 1735 bool WebViewImpl::isHidden() { | 1735 bool WebViewImpl::isHidden() { |
| 1736 if (!delegate_) | 1736 if (!delegate_) |
| 1737 return true; | 1737 return true; |
| 1738 | 1738 |
| 1739 return delegate_->IsHidden(); | 1739 return delegate_->IsHidden(this); |
| 1740 } | 1740 } |
| 1741 #endif | 1741 #endif |
| 1742 | 1742 |
| 1743 void WebViewImpl::SetCurrentHistoryItem(WebCore::HistoryItem* item) { | 1743 void WebViewImpl::SetCurrentHistoryItem(WebCore::HistoryItem* item) { |
| 1744 back_forward_list_client_impl_.SetCurrentHistoryItem(item); | 1744 back_forward_list_client_impl_.SetCurrentHistoryItem(item); |
| 1745 } | 1745 } |
| 1746 | 1746 |
| 1747 WebCore::HistoryItem* WebViewImpl::GetPreviousHistoryItem() { | 1747 WebCore::HistoryItem* WebViewImpl::GetPreviousHistoryItem() { |
| 1748 return back_forward_list_client_impl_.GetPreviousHistoryItem(); | 1748 return back_forward_list_client_impl_.GetPreviousHistoryItem(); |
| 1749 } | 1749 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1812 | 1812 |
| 1813 return document->focusedNode(); | 1813 return document->focusedNode(); |
| 1814 } | 1814 } |
| 1815 | 1815 |
| 1816 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { | 1816 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { |
| 1817 IntPoint doc_point( | 1817 IntPoint doc_point( |
| 1818 page_->mainFrame()->view()->windowToContents(pos)); | 1818 page_->mainFrame()->view()->windowToContents(pos)); |
| 1819 return page_->mainFrame()->eventHandler()-> | 1819 return page_->mainFrame()->eventHandler()-> |
| 1820 hitTestResultAtPoint(doc_point, false); | 1820 hitTestResultAtPoint(doc_point, false); |
| 1821 } | 1821 } |
| OLD | NEW |