| 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 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 page_.reset(); | 887 page_.reset(); |
| 888 } | 888 } |
| 889 | 889 |
| 890 Release(); // Balances AddRef from WebView::Create | 890 Release(); // Balances AddRef from WebView::Create |
| 891 } | 891 } |
| 892 | 892 |
| 893 WebViewDelegate* WebViewImpl::GetDelegate() { | 893 WebViewDelegate* WebViewImpl::GetDelegate() { |
| 894 return delegate_; | 894 return delegate_; |
| 895 } | 895 } |
| 896 | 896 |
| 897 void WebViewImpl::SetDelegate(WebViewDelegate* delegate) { |
| 898 delegate_ = delegate; |
| 899 } |
| 900 |
| 897 WebFrame* WebViewImpl::GetMainFrame() { | 901 WebFrame* WebViewImpl::GetMainFrame() { |
| 898 return main_frame(); | 902 return main_frame(); |
| 899 } | 903 } |
| 900 | 904 |
| 901 WebFrame* WebViewImpl::GetFocusedFrame() { | 905 WebFrame* WebViewImpl::GetFocusedFrame() { |
| 902 Frame* frame = GetFocusedWebCoreFrame(); | 906 Frame* frame = GetFocusedWebCoreFrame(); |
| 903 return frame ? WebFrameImpl::FromFrame(frame) : NULL; | 907 return frame ? WebFrameImpl::FromFrame(frame) : NULL; |
| 904 } | 908 } |
| 905 | 909 |
| 906 void WebViewImpl::SetFocusedFrame(WebFrame* frame) { | 910 void WebViewImpl::SetFocusedFrame(WebFrame* frame) { |
| (...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1818 | 1822 |
| 1819 return document->focusedNode(); | 1823 return document->focusedNode(); |
| 1820 } | 1824 } |
| 1821 | 1825 |
| 1822 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { | 1826 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { |
| 1823 IntPoint doc_point( | 1827 IntPoint doc_point( |
| 1824 page_->mainFrame()->view()->windowToContents(pos)); | 1828 page_->mainFrame()->view()->windowToContents(pos)); |
| 1825 return page_->mainFrame()->eventHandler()-> | 1829 return page_->mainFrame()->eventHandler()-> |
| 1826 hitTestResultAtPoint(doc_point, false); | 1830 hitTestResultAtPoint(doc_point, false); |
| 1827 } | 1831 } |
| OLD | NEW |