| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 void WebView::willEnterModalLoop() { | 302 void WebView::willEnterModalLoop() { |
| 303 pageSuspenderStack().push_back(WTF::makeUnique<ScopedPageSuspender>()); | 303 pageSuspenderStack().push_back(WTF::makeUnique<ScopedPageSuspender>()); |
| 304 } | 304 } |
| 305 | 305 |
| 306 void WebView::didExitModalLoop() { | 306 void WebView::didExitModalLoop() { |
| 307 DCHECK(pageSuspenderStack().size()); | 307 DCHECK(pageSuspenderStack().size()); |
| 308 pageSuspenderStack().pop_back(); | 308 pageSuspenderStack().pop_back(); |
| 309 } | 309 } |
| 310 | 310 |
| 311 void WebViewImpl::setMainFrame(WebFrame* frame) { | 311 void WebViewImpl::setMainFrame(WebFrame* frame) { |
| 312 frame->toImplBase()->initializeCoreFrame(&page()->frameHost(), 0, nullAtom, | 312 frame->toImplBase()->initializeCoreFrame(&page()->frameHost(), 0, nullAtom); |
| 313 nullAtom); | |
| 314 } | 313 } |
| 315 | 314 |
| 316 void WebViewImpl::setCredentialManagerClient( | 315 void WebViewImpl::setCredentialManagerClient( |
| 317 WebCredentialManagerClient* webCredentialManagerClient) { | 316 WebCredentialManagerClient* webCredentialManagerClient) { |
| 318 DCHECK(m_page); | 317 DCHECK(m_page); |
| 319 provideCredentialManagerClientTo( | 318 provideCredentialManagerClientTo( |
| 320 *m_page, new CredentialManagerClient(webCredentialManagerClient)); | 319 *m_page, new CredentialManagerClient(webCredentialManagerClient)); |
| 321 } | 320 } |
| 322 | 321 |
| 323 void WebViewImpl::setPrerendererClient( | 322 void WebViewImpl::setPrerendererClient( |
| (...skipping 3842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4166 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4165 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
| 4167 return nullptr; | 4166 return nullptr; |
| 4168 return focusedFrame; | 4167 return focusedFrame; |
| 4169 } | 4168 } |
| 4170 | 4169 |
| 4171 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4170 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
| 4172 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4171 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
| 4173 } | 4172 } |
| 4174 | 4173 |
| 4175 } // namespace blink | 4174 } // namespace blink |
| OLD | NEW |