Lines Matching refs:Frame
85 #include <WebCore/Frame.h>
326 Frame* frame = m_page->focusController()->focusedOrMainFrame();
327 ASSERT(frame);
330 result.selectionIsNone = frame->selection()->isNone();
331 result.selectionIsRange = frame->selection()->isRange();
332 result.isContentEditable = frame->selection()->isContentEditable();
333 result.isContentRichlyEditable = frame->selection()->isContentRichlyEditable();
334 result.isInPasswordField = frame->selection()->isInPasswordField();
335 result.hasComposition = frame->editor()->hasComposition();
347 Frame* frame = m_page->focusController()->focusedOrMainFrame();
348 if (!frame)
350 frame->editor()->command(commandName).execute(argument);
355 Frame* frame = m_page->focusController()->focusedOrMainFrame();
356 if (!frame)
359 Editor::Command command = frame->editor()->command(commandName);
480 Frame* frame = m_page->mainFrame();
481 if (!frame)
486 coreEvent = MouseEvent::create(eventNames().clickEvent, frame->document()->defaultView(), platform(event), 0, 0);
488 frame->loader()->loadFrameRequest(FrameLoadRequest(frame->document()->securityOrigin(), ResourceRequest(url)),
494 WebFrame* frame = WebProcess::shared().webFrame(frameID);
495 if (!frame)
498 frame->coreFrame()->loader()->stopForUserCancel();
566 Frame* frame = m_page->mainFrame();
568 frame->view()->resize(viewSize);
569 frame->view()->setNeedsLayout();
578 Frame* frame = m_page->mainFrame();
580 frame->view()->setActualVisibleContentRect(rect);
590 Frame* frame = m_page->mainFrame();
592 frame->view()->setDelegatesScrolling(false);
593 frame->view()->setUseFixedLayout(false);
594 frame->view()->setPaintsEntireContents(false);
596 frame->view()->setDelegatesScrolling(true);
597 frame->view()->setUseFixedLayout(true);
598 frame->view()->setPaintsEntireContents(true);
599 frame->view()->setFixedLayoutSize(m_resizesToContentsLayoutSize);
601 frame->view()->forceLayout();
609 Frame* frame = m_page->mainFrame();
611 IntSize contentSize = frame->view()->contentsSize();
616 frame->view()->resize(m_viewSize);
617 frame->view()->setNeedsLayout();
623 Frame* frame = m_page->mainFrame();
625 IntPoint scrollPosition = frame->view()->scrollPosition();
626 IntPoint maximumScrollPosition = frame->view()->maximumScrollPosition();
639 frame->view()->setScrollPosition(frame->view()->scrollPosition() + newScrollOffset);
662 Frame* frame = m_mainFrame->coreFrame();
663 if (!frame)
665 return frame->textZoomFactor();
670 Frame* frame = m_mainFrame->coreFrame();
671 if (!frame)
673 frame->setTextZoomFactor(static_cast<float>(zoomFactor));
678 Frame* frame = m_mainFrame->coreFrame();
679 if (!frame)
681 return frame->pageZoomFactor();
686 Frame* frame = m_mainFrame->coreFrame();
687 if (!frame)
689 frame->setPageZoomFactor(static_cast<float>(zoomFactor));
694 Frame* frame = m_mainFrame->coreFrame();
695 if (!frame)
697 return frame->setPageAndTextZoomFactors(static_cast<float>(pageZoomFactor), static_cast<float>(textZoomFactor));
702 Frame* frame = m_mainFrame->coreFrame();
703 if (!frame)
705 frame->scalePage(scale, origin);
712 Frame* frame = m_mainFrame->coreFrame();
713 if (!frame)
715 return frame->pageScaleFactor();
720 Frame* frame = m_mainFrame->coreFrame();
721 if (!frame)
724 FrameView* view = frame->view();
735 Frame* frame = m_mainFrame->coreFrame();
736 if (!frame)
739 FrameView* view = frame->view();
917 Frame* frame = page->mainFrame();
918 if (!frame->view())
929 bool handled = frame->eventHandler()->handleMousePressEvent(platformMouseEvent);
932 handled = frame->eventHandler()->sendContextMenuEvent(platformMouseEvent);
940 return frame->eventHandler()->handleMouseReleaseEvent(platformMouseEvent);
942 return frame->eventHandler()->mouseMoved(platformMouseEvent);
976 Frame* frame = page->mainFrame();
977 if (!frame->view())
981 return frame->eventHandler()->handleWheelEvent(platformWheelEvent);
1017 Frame* frame = page->mainFrame();
1018 if (!frame->view())
1022 return frame->eventHandler()->handleGestureEvent(platformGestureEvent);
1038 Frame* frame = m_page->focusController()->focusedOrMainFrame();
1039 if (frame) {
1040 Editor::Command command = frame->editor()->command(commandName);
1086 Frame* frame = page->mainFrame();
1087 if (!frame->view())
1090 return frame->eventHandler()->handleTouchEvent(platform(touchEvent));
1136 for (Frame* coreFrame = m_mainFrame->coreFrame(); coreFrame; coreFrame = coreFrame->tree()->traverseNext()) {
1153 for (Frame* coreFrame = m_mainFrame->coreFrame(); coreFrame; coreFrame = coreFrame->tree()->traverseNext()) {
1168 if (Frame* frame = m_page->focusController()->focusedOrMainFrame()) {
1169 if (FrameView* view = frame->view())
1180 if (Frame* frame = m_page->focusController()->focusedOrMainFrame()) {
1181 if (FrameView* view = frame->view())
1199 Frame* frame = m_page->focusController()->focusedOrMainFrame();
1200 frame->document()->setFocusedNode(0);
1211 for (Frame* coreFrame = m_mainFrame->coreFrame(); coreFrame; coreFrame = coreFrame->tree()->traverseNext()) {
1231 WebFrame* frame = WebProcess::shared().webFrame(frameID);
1232 if (!frame)
1234 frame->didReceivePolicyDecision(listenerID, static_cast<PolicyAction>(policyAction), downloadID);
1260 if (Frame* coreFrame = m_mainFrame->coreFrame()) {
1318 if (WebFrame* frame = WebProcess::shared().webFrame(frameID))
1319 resultString = frame->source();
1329 if (WebFrame* frame = WebProcess::shared().webFrame(frameID)) {
1330 if (DocumentLoader* loader = frame->coreFrame()->loader()->documentLoader()) {
1344 if (WebFrame* frame = WebProcess::shared().webFrame(frameID)) {
1345 if (DocumentLoader* loader = frame->coreFrame()->loader()->documentLoader()) {
1362 if (WebFrame* frame = WebProcess::shared().webFrame(frameID)) {
1363 if (RefPtr<LegacyWebArchive> archive = LegacyWebArchive::create(frame->coreFrame()->document())) {
1489 Frame* frame = node->document()->frame();
1490 ASSERT(frame);
1496 Editor::Command command = frame->editor()->command(interpretKeyEvent(evt));
1512 return frame->editor()->insertText(evt->keyEvent()->text(), evt);
1718 Frame* frame = m_page->focusController()->focusedOrMainFrame();
1719 frame->editor()->advanceToNextMisspelling(startBeforeSelection);
1729 for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree()->traverseNext()) {
1730 if (Document* document = frame->document())
1737 for (Frame* frame = m_page->mainFrame(); frame; frame = frame->tree()->traverseNext()) {
1738 if (Document* document = frame->document())
1775 void WebPage::replaceSelectionWithText(Frame* frame, const String& text)
1777 if (frame->selection()->isNone())
1780 RefPtr<DocumentFragment> textFragment = createFragmentFromText(frame->selection()->toNormalizedRange().get(), text);
1781 applyCommand(ReplaceSelectionCommand::create(frame->document(), textFragment.release(), ReplaceSelectionCommand::SelectReplacement | ReplaceSelectionCommand::MatchStyle | ReplaceSelectionCommand::PreventNesting));
1782 frame->selection()->revealSelection(ScrollAlignment::alignToEdgeIfNeeded);
1792 Frame* frame = m_page->mainFrame();
1793 IntPoint scrollPosition = frame->view()->scrollPosition();
1794 IntPoint maximumScrollPosition = frame->view()->maximumScrollPosition();
1795 IntPoint minimumScrollPosition = frame->view()->minimumScrollPosition();
1902 Frame* mainframe = m_mainFrame->coreFrame();
1944 void WebPage::SandboxExtensionTracker::beginLoad(WebFrame* frame, const SandboxExtension::Handle& handle)
1946 ASSERT(frame->isMainFrame());
1963 static bool shouldReuseCommittedSandboxExtension(WebFrame* frame)
1965 ASSERT(frame->isMainFrame());
1967 FrameLoader* frameLoader = frame->coreFrame()->loader();
1985 void WebPage::SandboxExtensionTracker::didStartProvisionalLoad(WebFrame* frame)
1987 if (!frame->isMainFrame())
1990 if (shouldReuseCommittedSandboxExtension(frame)) {
2004 void WebPage::SandboxExtensionTracker::didCommitProvisionalLoad(WebFrame* frame)
2006 if (!frame->isMainFrame())
2019 void WebPage::SandboxExtensionTracker::didFailProvisionalLoad(WebFrame* frame)
2021 if (!frame->isMainFrame())
2076 WebFrame* frame = WebProcess::shared().webFrame(frameID);
2077 if (!frame)
2080 Frame* coreFrame = frame->coreFrame();
2120 WebFrame* frame = WebProcess::shared().webFrame(frameID);
2121 Frame* coreFrame = frame ? frame->coreFrame() : 0;
2152 WebFrame* frame = WebProcess::shared().webFrame(frameID);
2153 Frame* coreFrame = frame ? frame->coreFrame() : 0;
2222 Frame* frame = m_page->focusController()->focusedOrMainFrame();
2223 if (!frame)
2225 frame->editor()->handleCorrectionPanelResult(result);