bool ViewNavigationDelegate::JumpToId(const char* jumpToId) { WebCore::Frame* pFrame = mView->GetFrame(); // Search for the desired element in all the frames while(pFrame) { WebCore::Document* document = pFrame->document(); EAW_ASSERT(document); if (document) { JumpToElementWithIdDelegate delegate1(mView, jumpToId); DOMWalker<JumpToElementWithIdDelegate> walker(document, delegate1); WebCore::Element* element = delegate1.FoundElement(); if (element) { return true; } } pFrame = pFrame->tree()->traverseNext(); } return false; }
void source(Noisy n) { delegate1(std::forward<Noisy>(n)); } // std::function