| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 Frame* WebViewImpl::focusedWebCoreFrame() | 751 Frame* WebViewImpl::focusedWebCoreFrame() |
| 752 { | 752 { |
| 753 return m_page.get() ? m_page->focusController()->focusedOrMainFrame() : 0; | 753 return m_page.get() ? m_page->focusController()->focusedOrMainFrame() : 0; |
| 754 } | 754 } |
| 755 | 755 |
| 756 WebViewImpl* WebViewImpl::fromPage(Page* page) | 756 WebViewImpl* WebViewImpl::fromPage(Page* page) |
| 757 { | 757 { |
| 758 if (!page) | 758 if (!page) |
| 759 return 0; | 759 return 0; |
| 760 | 760 |
| 761 return static_cast<ChromeClientImpl*>(page->chrome()->client())->webview(); | 761 return static_cast<ChromeClientImpl*>(page->chrome()->client())->webView(); |
| 762 } | 762 } |
| 763 | 763 |
| 764 // WebWidget ------------------------------------------------------------------ | 764 // WebWidget ------------------------------------------------------------------ |
| 765 | 765 |
| 766 void WebViewImpl::close() | 766 void WebViewImpl::close() |
| 767 { | 767 { |
| 768 RefPtr<WebFrameImpl> mainFrameImpl; | 768 RefPtr<WebFrameImpl> mainFrameImpl; |
| 769 | 769 |
| 770 if (m_page.get()) { | 770 if (m_page.get()) { |
| 771 // Initiate shutdown for the entire frameset. This will cause a lot of | 771 // Initiate shutdown for the entire frameset. This will cause a lot of |
| (...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1758 { | 1758 { |
| 1759 m_tabsToLinks = enable; | 1759 m_tabsToLinks = enable; |
| 1760 } | 1760 } |
| 1761 | 1761 |
| 1762 bool WebViewImpl::tabsToLinks() const | 1762 bool WebViewImpl::tabsToLinks() const |
| 1763 { | 1763 { |
| 1764 return m_tabsToLinks; | 1764 return m_tabsToLinks; |
| 1765 } | 1765 } |
| 1766 | 1766 |
| 1767 } // namespace WebKit | 1767 } // namespace WebKit |
| OLD | NEW |