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 916 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
927 } | 927 } |
928 | 928 |
929 unsigned FrameLoaderClientImpl::backForwardLength() | 929 unsigned FrameLoaderClientImpl::backForwardLength() |
930 { | 930 { |
931 WebViewImpl* webview = m_webFrame->viewImpl(); | 931 WebViewImpl* webview = m_webFrame->viewImpl(); |
932 if (!webview || !webview->client()) | 932 if (!webview || !webview->client()) |
933 return 0; | 933 return 0; |
934 return webview->client()->historyBackListCount() + 1 + webview->client()->hi
storyForwardListCount(); | 934 return webview->client()->historyBackListCount() + 1 + webview->client()->hi
storyForwardListCount(); |
935 } | 935 } |
936 | 936 |
937 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(int variation, Sudd
enTerminationDisablerType type) | 937 void FrameLoaderClientImpl::suddenTerminationDisablerChanged(bool present, Sudde
nTerminationDisablerType type) |
938 { | 938 { |
939 if (m_webFrame->client()) { | 939 if (m_webFrame->client()) { |
940 m_webFrame->client()->suddenTerminationDisablerChanged( | 940 m_webFrame->client()->suddenTerminationDisablerChanged( |
941 variation, static_cast<WebFrameClient::SuddenTerminationDisablerType
>(type)); | 941 present, static_cast<WebFrameClient::SuddenTerminationDisablerType>(
type)); |
942 } | 942 } |
943 } | 943 } |
944 | 944 |
945 } // namespace blink | 945 } // namespace blink |
OLD | NEW |