void WebPopupMenu::show(const IntRect& rect, FrameView* view, int index) { // FIXME: We should probably inform the client to also close the menu. Vector<WebPopupItem> items = populateItems(); if (items.isEmpty() || !m_page) { m_popupClient->popupDidHide(); return; } m_page->setActivePopupMenu(this); // Move to page coordinates IntRect pageCoordinates(view->contentsToWindow(rect.location()), rect.size()); PlatformPopupMenuData platformData; setUpPlatformData(platformData); WebProcess::shared().connection()->send(Messages::WebPageProxy::ShowPopupMenu(pageCoordinates, items, index, platformData), m_page->pageID()); }
PageModel::PageModel(const QString& resourceUrl , const ModelType modelType):m_ModelType(modelType) { m_resourceUrl = resourceUrl; populateItems(); }