Home
last modified time | relevance | path

Searched refs:selectedRange (Results 1 – 25 of 72) sorted by relevance

123

/external/webkit/Source/WebCore/page/
DDOMSelection.cpp447 RefPtr<Range> selectedRange = selection->selection().toNormalizedRange(); in deleteFromDocument() local
448 if (!selectedRange) in deleteFromDocument()
452 selectedRange->deleteContents(ec); in deleteFromDocument()
455 …setBaseAndExtent(selectedRange->startContainer(ec), selectedRange->startOffset(ec), selectedRange-… in deleteFromDocument()
471 RefPtr<Range> selectedRange = selection->selection().toNormalizedRange(); in containsNode() local
477 …Range::compareBoundaryPoints(parentNode, nodeIndex, selectedRange->startContainer(ec), selectedRan… in containsNode()
478 …ge::compareBoundaryPoints(parentNode, nodeIndex + 1, selectedRange->endContainer(ec), selectedRang… in containsNode()
483 …(Range::compareBoundaryPoints(parentNode, nodeIndex, selectedRange->endContainer(ec), selectedRang… in containsNode()
484 …e::compareBoundaryPoints(parentNode, nodeIndex + 1, selectedRange->startContainer(ec), selectedRan… in containsNode()
DContextMenuController.cpp321 RefPtr<Range> selectedRange = frame->selection()->toNormalizedRange(); in contextMenuItemSelected() local
322 if (!selectedRange || selectedRange->collapsed(ec)) { in contextMenuItemSelected()
324 selectedRange = document->createRange(); in contextMenuItemSelected()
325 selectedRange->selectNode(document->documentElement(), ec); in contextMenuItemSelected()
327 m_client->speak(plainText(selectedRange.get())); in contextMenuItemSelected()
/external/chromium/chrome/browser/ui/cocoa/location_bar/
Dautocomplete_text_field_unittest.mm362 EXPECT_TRUE(NSEqualRanges(allRange, [[field_ currentEditor] selectedRange]));
377 [[field_ currentEditor] selectedRange]));
397 EXPECT_TRUE(NSEqualRanges(allRange, [[field_ currentEditor] selectedRange]));
412 [[field_ currentEditor] selectedRange]));
432 const NSRange selectedRange([[field_ currentEditor] selectedRange]);
433 EXPECT_EQ(selectedRange.location, 0U);
434 EXPECT_EQ(selectedRange.length, [[field_ stringValue] length]);
448 const NSRange selectedRange([[field_ currentEditor] selectedRange]);
449 EXPECT_EQ(selectedRange.location, 0U);
450 EXPECT_EQ(selectedRange.length, [[field_ stringValue] length]);
[all …]
/external/webkit/Examples/NetscapeInputMethodPlugin/
Dmain.m55 NSRange selectedRange; field
153 obj->selectedRange.location = [obj->textStorage length];
252 NSRect *rectArray = [obj->layoutManager rectArrayForCharacterRange:obj->selectedRange
253 withinSelectedCharacterRange:obj->selectedRange
315 if (obj->selectedRange.location > 0) {
316 obj->selectedRange.location--;
322 if (obj->selectedRange.location < [obj->textStorage length]) {
323 obj->selectedRange.location++;
339 NSRange range = obj->selectedRange;
343 obj->selectedRange.location = range.location + [string length];
[all …]
/external/webkit/Source/WebCore/platform/android/
DClipboardAndroid.cpp106 void ClipboardAndroid::writeRange(Range* selectedRange, Frame*) in writeRange() argument
108 ASSERT(selectedRange); in writeRange()
/external/webkit/Source/WebCore/platform/brew/
DClipboardBrew.cpp108 void ClipboardBrew::writeRange(Range* selectedRange, Frame*) in writeRange() argument
110 ASSERT(selectedRange); in writeRange()
DPasteboardBrew.cpp55 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame) in writeSelection() argument
/external/webkit/Source/WebCore/platform/chromium/
DPasteboardChromium.cpp83 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame) in writeSelection() argument
85 String html = createMarkup(selectedRange, 0, AnnotateForInterchange, false, AbsoluteURLs); in writeSelection()
87 KURL url = selectedRange->startContainer(ec)->document()->url(); in writeSelection()
DClipboardChromium.cpp308 void ClipboardChromium::writeRange(Range* selectedRange, Frame* frame) in writeRange() argument
310 ASSERT(selectedRange); in writeRange()
314 …m_dataObject->setData(mimeTypeTextHTML, createMarkup(selectedRange, 0, AnnotateForInterchange, fal… in writeRange()
/external/webkit/Source/WebCore/editing/
Dhtmlediting.cpp553 RefPtr<Range> selectedRange = Range::create(document); in createRange() local
554selectedRange->setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffs… in createRange()
556selectedRange->setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOffsetInCo… in createRange()
557 return selectedRange.release(); in createRange()
1060 bool isNodeVisiblyContainedWithin(Node* node, const Range* selectedRange) in isNodeVisiblyContainedWithin() argument
1063 ASSERT(selectedRange); in isNodeVisiblyContainedWithin()
1066 if (selectedRange->compareNode(node, ec) == Range::NODE_INSIDE) in isNodeVisiblyContainedWithin()
1069 bool startIsVisuallySame = visiblePositionBeforeNode(node) == selectedRange->startPosition(); in isNodeVisiblyContainedWithin()
1070 …if (startIsVisuallySame && comparePositions(positionInParentAfterNode(node), selectedRange->endPos… in isNodeVisiblyContainedWithin()
1073 bool endIsVisuallySame = visiblePositionAfterNode(node) == selectedRange->endPosition(); in isNodeVisiblyContainedWithin()
[all …]
DEditor.cpp302 addToKillRing(selectedRange().get(), false); in deleteWithDirection()
368 … if (client() && client()->shouldInsertText(text, selectedRange().get(), EditorInsertActionPasted)) in pasteAsPlainTextWithPasteboard()
375 RefPtr<Range> range = selectedRange(); in pasteWithPasteboard()
424 …replaceSelectionWithFragment(createFragmentFromText(selectedRange().get(), text), selectReplacemen… in replaceSelectionWithText()
427 PassRefPtr<Range> Editor::selectedRange() in selectedRange() function in WebCore::Editor
479 pasteboard->writeSelection(selectedRange().get(), canSmartCopyOrDelete(), m_frame); in writeSelectionToPasteboard()
1173 RefPtr<Range> selection = selectedRange(); in cut()
1201 …Pasteboard::generalPasteboard()->writeSelection(selectedRange().get(), canSmartCopyOrDelete(), m_f… in copy()
1241 addToKillRing(selectedRange().get(), false); in performDelete()
1635 …RefPtr<Range> selectedRange = Range::create(baseNode->document(), baseNode, start, baseNode, end);… in setComposition() local
[all …]
/external/webkit/Source/WebCore/platform/wince/
DPasteboardWinCE.cpp111 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame) in writeSelection() argument
119 …markupToCF_HTML(createMarkup(selectedRange, 0, AnnotateForInterchange), selectedRange->startContai… in writeSelection()
/external/webkit/Source/WebCore/platform/gtk/
DPasteboardGtk.cpp66 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame) in writeSelection() argument
71 …dataObject->setMarkup(createMarkup(selectedRange, 0, AnnotateForInterchange, false, AbsoluteURLs)); in writeSelection()
/external/webkit/Source/WebCore/platform/mac/
DPasteboardMac.mm131 …eSelection(NSPasteboard* pasteboard, NSArray* pasteboardTypes, Range* selectedRange, bool canSmart…
135 ASSERT(selectedRange);
142 Node* commonAncestor = selectedRange->commonAncestorContainer(ec);
145 …& comparePositions(firstPositionInOrBeforeNode(selectedRange->startPosition().anchorNode()), selec…
146 selectedRange->setStart(enclosingAnchor, 0, ec);
151 …attributedString = [[[NSAttributedString alloc] _initWithDOMRange:kit(selectedRange)] autorelease];
155 …inPtr<WebHTMLConverter> converter = [[WebHTMLConverter alloc] initWithDOMRange:kit(selectedRange)];
227 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame)
229 Pasteboard::writeSelection(m_pasteboard.get(), 0, selectedRange, canSmartCopyOrDelete, frame);
/external/webkit/Source/WebCore/platform/win/
DPasteboardWin.cpp117 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame) in writeSelection() argument
125 markupToCFHTML(createMarkup(selectedRange, 0, AnnotateForInterchange), in writeSelection()
126 selectedRange->startContainer(ec)->document()->url().string(), data); in writeSelection()
/external/webkit/Tools/DumpRenderTree/qt/
DTextInputControllerQt.cpp150 QVariantList TextInputController::selectedRange() in selectedRange() function in TextInputController
152 return DumpRenderTreeSupportQt::selectedRange(qobject_cast<QWebPage*>(parent())); in selectedRange()
DTextInputControllerQt.h49 QVariantList selectedRange();
/external/webkit/Source/WebCore/platform/haiku/
DPasteboardHaiku.cpp86 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame) in writeSelection() argument
105 … BString markupString(createMarkup(selectedRange, 0, AnnotateForInterchange, false, AbsoluteURLs)); in writeSelection()
/external/webkit/Source/WebCore/platform/qt/
DPasteboardQt.cpp60 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame) in writeSelection() argument
67 QString markup = createMarkup(selectedRange, 0, AnnotateForInterchange, false, AbsoluteURLs); in writeSelection()
/external/webkit/Source/WebCore/platform/efl/
DPasteboardEfl.cpp54 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame) in writeSelection() argument
/external/webkit/Tools/DumpRenderTree/chromium/
DTextInputController.cpp65 bindMethod("selectedRange", &TextInputController::selectedRange); in TextInputController()
165 void TextInputController::selectedRange(const CppArgumentList&, CppVariant* result) in selectedRange() function in TextInputController
DTextInputController.h59 void selectedRange(const CppArgumentList&, CppVariant*);
/external/webkit/Source/WebKit/chromium/src/
DWebViewImpl.cpp1446 RefPtr<Range> selectedRange = frame->selection()->toNormalizedRange(); in selectionRange() local
1447 RefPtr<Range> range(Range::create(selectedRange->startContainer()->document(), in selectionRange()
1448 selectedRange->startContainer(), in selectionRange()
1449 selectedRange->startOffset(), in selectionRange()
1450 selectedRange->startContainer(), in selectionRange()
1451 selectedRange->startOffset())); in selectionRange()
1457 range = Range::create(selectedRange->endContainer()->document(), in selectionRange()
1458 selectedRange->endContainer(), in selectionRange()
1459 selectedRange->endOffset(), in selectionRange()
1460 selectedRange->endContainer(), in selectionRange()
[all …]
/external/webkit/Source/WebCore/platform/wx/
DPasteboardWx.cpp53 void Pasteboard::writeSelection(Range* selectedRange, bool canSmartCopyOrDelete, Frame* frame) in writeSelection() argument
/external/webkit/Tools/DumpRenderTree/mac/
DTextInputController.m168 || aSelector == @selector(selectedRange)
246 [textInput setMarkedText:aString selectedRange:NSMakeRange(from, length)];
311 - (NSArray *)selectedRange
316 NSRange range = [textInput selectedRange];

123