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 836 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 m_webFrame->client()->willOpenWebSocket(handle); | 847 m_webFrame->client()->willOpenWebSocket(handle); |
848 } | 848 } |
849 | 849 |
850 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe
erConnectionHandler* handler) | 850 void FrameLoaderClientImpl::dispatchWillStartUsingPeerConnectionHandler(WebRTCPe
erConnectionHandler* handler) |
851 { | 851 { |
852 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); | 852 m_webFrame->client()->willStartUsingPeerConnectionHandler(webFrame(), handle
r); |
853 } | 853 } |
854 | 854 |
855 void FrameLoaderClientImpl::didRequestAutocomplete(HTMLFormElement* form) | 855 void FrameLoaderClientImpl::didRequestAutocomplete(HTMLFormElement* form) |
856 { | 856 { |
857 if (m_webFrame->viewImpl() && m_webFrame->viewImpl()->autofillClient()) | 857 if (m_webFrame->autofillClient()) |
858 m_webFrame->viewImpl()->autofillClient()->didRequestAutocomplete(WebForm
Element(form)); | 858 m_webFrame->autofillClient()->didRequestAutocomplete(WebFormElement(form
)); |
859 } | 859 } |
860 | 860 |
861 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) | 861 bool FrameLoaderClientImpl::allowWebGL(bool enabledPerSettings) |
862 { | 862 { |
863 if (m_webFrame->client()) | 863 if (m_webFrame->client()) |
864 return m_webFrame->client()->allowWebGL(m_webFrame, enabledPerSettings); | 864 return m_webFrame->client()->allowWebGL(m_webFrame, enabledPerSettings); |
865 | 865 |
866 return enabledPerSettings; | 866 return enabledPerSettings; |
867 } | 867 } |
868 | 868 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
926 | 926 |
927 unsigned FrameLoaderClientImpl::backForwardLength() | 927 unsigned FrameLoaderClientImpl::backForwardLength() |
928 { | 928 { |
929 WebViewImpl* webview = m_webFrame->viewImpl(); | 929 WebViewImpl* webview = m_webFrame->viewImpl(); |
930 if (!webview || !webview->client()) | 930 if (!webview || !webview->client()) |
931 return 0; | 931 return 0; |
932 return webview->client()->historyBackListCount() + 1 + webview->client()->hi
storyForwardListCount(); | 932 return webview->client()->historyBackListCount() + 1 + webview->client()->hi
storyForwardListCount(); |
933 } | 933 } |
934 | 934 |
935 } // namespace blink | 935 } // namespace blink |
OLD | NEW |