| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2011 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 m_webFrame->client()->willOpenWebSocket(handle); | 841 m_webFrame->client()->willOpenWebSocket(handle); |
| 842 } | 842 } |
| 843 | 843 |
| 844 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe
erConnectionHandler* handler) | 844 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe
erConnectionHandler* handler) |
| 845 { | 845 { |
| 846 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); | 846 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); |
| 847 } | 847 } |
| 848 | 848 |
| 849 void FrameLoaderClientImpl::didRequestAutocomplete(HTMLFormElement* form) | 849 void FrameLoaderClientImpl::didRequestAutocomplete(HTMLFormElement* form) |
| 850 { | 850 { |
| 851 // FIXME: remove. |
| 851 if (m_webFrame->viewImpl() && m_webFrame->viewImpl()->autofillClient()) | 852 if (m_webFrame->viewImpl() && m_webFrame->viewImpl()->autofillClient()) |
| 852 m_webFrame->viewImpl()->autofillClient()->didRequestAutocomplete(WebForm
Element(form)); | 853 m_webFrame->viewImpl()->autofillClient()->didRequestAutocomplete(WebForm
Element(form)); |
| 854 if (m_webFrame->autofillClient()) |
| 855 m_webFrame->autofillClient()->didRequestAutocomplete(WebFormElement(form
)); |
| 853 } | 856 } |
| 854 | 857 |
| 855 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) | 858 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) |
| 856 { | 859 { |
| 857 if (m_webFrame->client()) | 860 if (m_webFrame->client()) |
| 858 return m_webFrame->client()->allowWebGL(m_webFrame, enabledPerSettings); | 861 return m_webFrame->client()->allowWebGL(m_webFrame, enabledPerSettings); |
| 859 | 862 |
| 860 return enabledPerSettings; | 863 return enabledPerSettings; |
| 861 } | 864 } |
| 862 | 865 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 920 | 923 |
| 921 unsigned FrameLoaderClientImpl::backForwardLength() | 924 unsigned FrameLoaderClientImpl::backForwardLength() |
| 922 { | 925 { |
| 923 WebViewImpl* webview = m_webFrame->viewImpl(); | 926 WebViewImpl* webview = m_webFrame->viewImpl(); |
| 924 if (!webview || !webview->client()) | 927 if (!webview || !webview->client()) |
| 925 return 0; | 928 return 0; |
| 926 return webview->client()->historyBackListCount() + 1 + webview->client()->hi
storyForwardListCount(); | 929 return webview->client()->historyBackListCount() + 1 + webview->client()->hi
storyForwardListCount(); |
| 927 } | 930 } |
| 928 | 931 |
| 929 } // namespace blink | 932 } // namespace blink |
| OLD | NEW |