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 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 void WebViewImpl::setCredentialManagerClient(WebCredentialManagerClient* webCred
entialManagerClient) | 382 void WebViewImpl::setCredentialManagerClient(WebCredentialManagerClient* webCred
entialManagerClient) |
383 { | 383 { |
384 ASSERT(m_page); | 384 ASSERT(m_page); |
385 provideCredentialManagerClientTo(*m_page, new CredentialManagerClient(webCre
dentialManagerClient)); | 385 provideCredentialManagerClientTo(*m_page, new CredentialManagerClient(webCre
dentialManagerClient)); |
386 } | 386 } |
387 | 387 |
388 void WebViewImpl::setDevToolsAgentClient(WebDevToolsAgentClient* devToolsClient) | 388 void WebViewImpl::setDevToolsAgentClient(WebDevToolsAgentClient* devToolsClient) |
389 { | 389 { |
390 if (devToolsClient) { | 390 if (devToolsClient) { |
391 m_inspectorOverlay = InspectorOverlayImpl::create(this); | 391 m_inspectorOverlay = InspectorOverlayImpl::create(this); |
392 m_devToolsAgent = adoptPtrWillBeNoop(new WebDevToolsAgentImpl(this, devT
oolsClient, m_inspectorOverlay.get(), adoptPtrWillBeNoop(new InspectorInputClien
t(this)))); | 392 m_devToolsAgent = adoptPtrWillBeNoop(new WebDevToolsAgentImpl(this, devT
oolsClient, m_inspectorOverlay.get(), adoptPtr(new InspectorInputClient(this))))
; |
393 m_devToolsAgent->registerAgent(InspectorRenderingAgent::create(this)); | 393 m_devToolsAgent->registerAgent(InspectorRenderingAgent::create(this)); |
394 m_devToolsAgent->registerAgent(InspectorEmulationAgent::create(this)); | 394 m_devToolsAgent->registerAgent(InspectorEmulationAgent::create(this)); |
395 } else { | 395 } else { |
396 m_devToolsAgent.clear(); | 396 m_devToolsAgent.clear(); |
397 m_inspectorOverlay.clear(); | 397 m_inspectorOverlay.clear(); |
398 } | 398 } |
399 } | 399 } |
400 | 400 |
401 void WebViewImpl::setPrerendererClient(WebPrerendererClient* prerendererClient) | 401 void WebViewImpl::setPrerendererClient(WebPrerendererClient* prerendererClient) |
402 { | 402 { |
(...skipping 4317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4720 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 4720 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
4721 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 4721 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
4722 } | 4722 } |
4723 | 4723 |
4724 void WebViewImpl::forceNextWebGLContextCreationToFail() | 4724 void WebViewImpl::forceNextWebGLContextCreationToFail() |
4725 { | 4725 { |
4726 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); | 4726 WebGLRenderingContext::forceNextWebGLContextCreationToFail(); |
4727 } | 4727 } |
4728 | 4728 |
4729 } // namespace blink | 4729 } // namespace blink |
OLD | NEW |