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 2011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2022 | 2022 |
2023 FrameLoader& frameloader = frame()->loader(); | 2023 FrameLoader& frameloader = frame()->loader(); |
2024 frameloader.loadFailed(frameloader.documentLoader(), error); | 2024 frameloader.loadFailed(frameloader.documentLoader(), error); |
2025 return true; | 2025 return true; |
2026 } | 2026 } |
2027 | 2027 |
2028 bool WebLocalFrameImpl::isLoading() const { | 2028 bool WebLocalFrameImpl::isLoading() const { |
2029 if (!frame() || !frame()->document()) | 2029 if (!frame() || !frame()->document()) |
2030 return false; | 2030 return false; |
2031 return frame()->loader().stateMachine()->isDisplayingInitialEmptyDocument() || | 2031 return frame()->loader().stateMachine()->isDisplayingInitialEmptyDocument() || |
2032 frame()->loader().provisionalDocumentLoader() || | 2032 frame()->loader().hasProvisionalNavigation() || |
2033 !frame()->document()->loadEventFinished(); | 2033 !frame()->document()->loadEventFinished(); |
2034 } | 2034 } |
2035 | 2035 |
2036 bool WebLocalFrameImpl::isNavigationScheduledWithin( | 2036 bool WebLocalFrameImpl::isNavigationScheduledWithin( |
2037 double intervalInSeconds) const { | 2037 double intervalInSeconds) const { |
2038 return frame() && | 2038 return frame() && |
2039 frame()->navigationScheduler().isNavigationScheduledWithin( | 2039 frame()->navigationScheduler().isNavigationScheduledWithin( |
2040 intervalInSeconds); | 2040 intervalInSeconds); |
2041 } | 2041 } |
2042 | 2042 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2359 ->frameScheduler() | 2359 ->frameScheduler() |
2360 ->unthrottledTaskRunner() | 2360 ->unthrottledTaskRunner() |
2361 ->toSingleThreadTaskRunner(); | 2361 ->toSingleThreadTaskRunner(); |
2362 } | 2362 } |
2363 | 2363 |
2364 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { | 2364 WebInputMethodControllerImpl* WebLocalFrameImpl::inputMethodController() const { |
2365 return m_inputMethodController.get(); | 2365 return m_inputMethodController.get(); |
2366 } | 2366 } |
2367 | 2367 |
2368 } // namespace blink | 2368 } // namespace blink |
OLD | NEW |