Exemplo n.º 1
0
void ChromeClientImpl::updateCompositedSelection(
    LocalFrame* frame,
    const CompositedSelection& selection) {
  LocalFrame* localRoot = frame->localFrameRoot();
  WebWidgetClient* client =
      WebLocalFrameImpl::fromFrame(localRoot)->frameWidget()->client();
  if (!client)
    return;

  WebLayerTreeView* layerTreeView = client->layerTreeView();
  if (layerTreeView)
    layerTreeView->registerSelection(WebSelection(selection));
}
void ChromeClientImpl::updateCompositedSelection(const CompositedSelection& selection)
{
    m_webView->updateCompositedSelection(WebSelection(selection));
}