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 3850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4174 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) | 4173 if (focusedFrame->localFrameRoot() != mainFrameImpl()->frame()) |
4175 return nullptr; | 4174 return nullptr; |
4176 return focusedFrame; | 4175 return focusedFrame; |
4177 } | 4176 } |
4178 | 4177 |
4179 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { | 4178 LocalFrame* WebViewImpl::focusedLocalFrameAvailableForIme() const { |
4180 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; | 4179 return m_imeAcceptEvents ? focusedLocalFrameInWidget() : nullptr; |
4181 } | 4180 } |
4182 | 4181 |
4183 } // namespace blink | 4182 } // namespace blink |
OLD | NEW |