OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2014 Google Inc. All rights reserved. | 2 * Copyright (C) 2014 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 399 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
410 void WebFrameWidgetImpl::scheduleAnimation() | 410 void WebFrameWidgetImpl::scheduleAnimation() |
411 { | 411 { |
412 if (m_layerTreeView) { | 412 if (m_layerTreeView) { |
413 m_layerTreeView->setNeedsBeginFrame(); | 413 m_layerTreeView->setNeedsBeginFrame(); |
414 return; | 414 return; |
415 } | 415 } |
416 if (m_client) | 416 if (m_client) |
417 m_client->scheduleAnimation(); | 417 m_client->scheduleAnimation(); |
418 } | 418 } |
419 | 419 |
420 CompositorProxyClient* WebFrameWidgetImpl::createCompositorProxyClient() | 420 CompositorProxyClient* WebFrameWidgetImpl::createCompositorProxyClient(WorkerCli
ents& clients) |
421 { | 421 { |
422 if (!m_mutator) { | 422 if (!m_mutator) { |
423 std::unique_ptr<CompositorMutatorClient> mutatorClient = CompositorMutat
orImpl::createClient(); | 423 std::unique_ptr<CompositorMutatorClient> mutatorClient = CompositorMutat
orImpl::createClient(); |
424 m_mutator = static_cast<CompositorMutatorImpl*>(mutatorClient->mutator()
); | 424 m_mutator = static_cast<CompositorMutatorImpl*>(mutatorClient->mutator()
); |
425 m_layerTreeView->setMutatorClient(std::move(mutatorClient)); | 425 m_layerTreeView->setMutatorClient(std::move(mutatorClient)); |
426 } | 426 } |
427 return new CompositorProxyClientImpl(m_mutator); | 427 return new CompositorProxyClientImpl(m_mutator, clients); |
428 } | 428 } |
429 | 429 |
430 void WebFrameWidgetImpl::applyViewportDeltas( | 430 void WebFrameWidgetImpl::applyViewportDeltas( |
431 const WebFloatSize& visualViewportDelta, | 431 const WebFloatSize& visualViewportDelta, |
432 const WebFloatSize& mainFrameDelta, | 432 const WebFloatSize& mainFrameDelta, |
433 const WebFloatSize& elasticOverscrollDelta, | 433 const WebFloatSize& elasticOverscrollDelta, |
434 float pageScaleDelta, | 434 float pageScaleDelta, |
435 float topControlsDelta) | 435 float topControlsDelta) |
436 { | 436 { |
437 // FIXME: To be implemented. | 437 // FIXME: To be implemented. |
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1457 } | 1457 } |
1458 | 1458 |
1459 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const | 1459 LocalFrame* WebFrameWidgetImpl::focusedLocalFrameAvailableForIme() const |
1460 { | 1460 { |
1461 if (!m_imeAcceptEvents) | 1461 if (!m_imeAcceptEvents) |
1462 return nullptr; | 1462 return nullptr; |
1463 return focusedLocalFrameInWidget(); | 1463 return focusedLocalFrameInWidget(); |
1464 } | 1464 } |
1465 | 1465 |
1466 } // namespace blink | 1466 } // namespace blink |
OLD | NEW |