Home
last modified time | relevance | path

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

/external/chromium_org/third_party/WebKit/Source/core/editing/
DDOMSelection.cpp451 RefPtrWillBeRawPtr<Range> selectedRange = selection.selection().toNormalizedRange(); in deleteFromDocument() local
452 if (!selectedRange) in deleteFromDocument()
455 selectedRange->deleteContents(ASSERT_NO_EXCEPTION); in deleteFromDocument()
457 …setBaseAndExtent(selectedRange->startContainer(), selectedRange->startOffset(), selectedRange->sta… in deleteFromDocument()
471 RefPtrWillBeRawPtr<Range> selectedRange = selection.selection().toNormalizedRange(); in containsNode() local
478 … Range::compareBoundaryPoints(parentNode, nodeIndex, selectedRange->startContainer(), selectedRang… in containsNode()
479 …nge::compareBoundaryPoints(parentNode, nodeIndex + 1, selectedRange->endContainer(), selectedRange in containsNode()
485 … (Range::compareBoundaryPoints(parentNode, nodeIndex, selectedRange->endContainer(), selectedRange in containsNode()
486 …ge::compareBoundaryPoints(parentNode, nodeIndex + 1, selectedRange->startContainer(), selectedRang… in containsNode()
Dhtmlediting.cpp555 RefPtrWillBeRawPtr<Range> selectedRange = Range::create(document); in createRange() local
556selectedRange->setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffs… in createRange()
558selectedRange->setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOffsetInCo… in createRange()
559 return selectedRange.release(); in createRange()
1146 bool isNodeVisiblyContainedWithin(Node& node, const Range& selectedRange) in isNodeVisiblyContainedWithin() argument
1149 if (selectedRange.compareNode(&node, IGNORE_EXCEPTION) == Range::NODE_INSIDE) in isNodeVisiblyContainedWithin()
1152 …bool startIsVisuallySame = visiblePositionBeforeNode(node) == VisiblePosition(selectedRange.startP… in isNodeVisiblyContainedWithin()
1153 …if (startIsVisuallySame && comparePositions(positionInParentAfterNode(node), selectedRange.endPosi… in isNodeVisiblyContainedWithin()
1156 …bool endIsVisuallySame = visiblePositionAfterNode(node) == VisiblePosition(selectedRange.endPositi… in isNodeVisiblyContainedWithin()
1157 …if (endIsVisuallySame && comparePositions(selectedRange.startPosition(), positionInParentBeforeNod… in isNodeVisiblyContainedWithin()
DEditor.cpp302 addToKillRing(selectedRange().get(), false); in deleteWithDirection()
390 RefPtrWillBeRawPtr<Range> range = selectedRange(); in pasteWithPasteboard()
417 void Editor::writeSelectionToPasteboard(Pasteboard* pasteboard, Range* selectedRange, const String&… in writeSelectionToPasteboard() argument
419 … String html = createMarkup(selectedRange, 0, AnnotateForInterchange, false, ResolveNonLocalURLs); in writeSelectionToPasteboard()
420 KURL url = selectedRange->startContainer()->document().url(); in writeSelectionToPasteboard()
527 …replaceSelectionWithFragment(createFragmentFromText(selectedRange().get(), text), selectReplacemen… in replaceSelectionWithText()
530 PassRefPtrWillBeRawPtr<Range> Editor::selectedRange() in selectedRange() function in blink::Editor
830 RefPtrWillBeRawPtr<Range> selection = selectedRange(); in cut()
858 …writeSelectionToPasteboard(Pasteboard::generalPasteboard(), selectedRange().get(), frame().selecte… in copy()
892 addToKillRing(selectedRange().get(), false); in performDelete()
DSpellChecker.cpp159 if (RefPtrWillBeRawPtr<Range> selectedRange = frame().selection().toNormalizedRange()) in ignoreSpelling() local
160 frame().document()->markers().removeMarkers(selectedRange.get(), DocumentMarker::Spelling); in ignoreSpelling()
341 RefPtrWillBeRawPtr<Range> selectedRange = movingSelection.toNormalizedRange(); in clearMisspellingsAndBadGrammar() local
342 if (selectedRange) in clearMisspellingsAndBadGrammar()
343 …frame().document()->markers().removeMarkers(selectedRange.get(), DocumentMarker::MisspellingMarker… in clearMisspellingsAndBadGrammar()
DInputMethodController.cpp312 …RefPtrWillBeRawPtr<Range> selectedRange = Range::create(baseNode->document(), baseNode, start, bas… in setComposition() local
313 …frame().selection().setSelectedRange(selectedRange.get(), DOWNSTREAM, FrameSelection::NonDirection… in setComposition()
DEditor.h194 PassRefPtrWillBeRawPtr<Range> selectedRange();
DEditorCommand.cpp402 …election().setSelectedRange(unionDOMRanges(mark.get(), frame.editor().selectedRange().get()).get()… in executeDeleteToMark()
1049 RefPtrWillBeRawPtr<Range> selection = frame.editor().selectedRange(); in executeSelectToMark()
/external/chromium_org/chrome/browser/ui/cocoa/find_bar/
Dfind_bar_cocoa_controller.h86 selectedRange:(const NSRange&)selectedRange;
88 - (NSRange)selectedRange;
Dfind_bar_cocoa_controller_unittest.mm88 [controller_ setFindText:kFindText selectedRange:NSMakeRange(NSNotFound, 0)];
118 [controller_ setFindText:kFindText selectedRange:NSMakeRange(NSNotFound, 0)];
130 [controller_ setFindText:kFindText selectedRange:NSMakeRange(NSNotFound, 0)];
Dfind_bar_bridge.mm60 selectedRange:selected_range.ToNSRange()];
68 return gfx::Range([cocoa_controller_ selectedRange]);
Dfind_bar_cocoa_controller.mm337 selectedRange:(const NSRange&)selectedRange {
348 if (selectedRange.location != NSNotFound)
349 [editor setSelectedRange:selectedRange];
356 - (NSRange)selectedRange { method
358 return (editor != nil) ? [editor selectedRange] : NSMakeRange(NSNotFound, 0);
591 [self setFindText:text selectedRange:NSMakeRange(NSNotFound, 0)];
/external/chromium_org/ui/views/cocoa/
Dbridged_native_widget_unittest.mm352 selectedRange:NSMakeRange(0, 2)
357 EXPECT_EQ_RANGE(NSMakeRange(kTestString.size(), 2), [ns_view_ selectedRange]);
364 EXPECT_EQ_RANGE(NSMakeRange(GetText().size(), 0), [ns_view_ selectedRange]);
370 EXPECT_EQ_RANGE(NSMakeRange(3, 0), [ns_view_ selectedRange]);
374 EXPECT_EQ_RANGE(NSMakeRange(3, 0), [ns_view_ selectedRange]);
378 EXPECT_EQ_RANGE(NSMakeRange(2, 0), [ns_view_ selectedRange]);
382 EXPECT_EQ_RANGE(NSMakeRange(3, 0), [ns_view_ selectedRange]);
388 EXPECT_EQ_RANGE(NSMakeRange(1, 0), [ns_view_ selectedRange]);
393 EXPECT_EQ_RANGE(NSMakeRange(0, 0), [ns_view_ selectedRange]);
398 EXPECT_EQ_RANGE(NSMakeRange(0, 0), [ns_view_ selectedRange]);
[all …]
Dbridged_content_view.mm185 [self selectedRange].length > 0;
278 - (NSRange)selectedRange { method
288 selectedRange:(NSRange)selectedRange
297 composition.selection = gfx::Range(selectedRange);
/external/chromium_org/chrome/browser/ui/cocoa/location_bar/
Dautocomplete_text_field_unittest.mm392 EXPECT_TRUE(NSEqualRanges(allRange, [[field_ currentEditor] selectedRange]));
407 [[field_ currentEditor] selectedRange]));
427 EXPECT_TRUE(NSEqualRanges(allRange, [[field_ currentEditor] selectedRange]));
442 [[field_ currentEditor] selectedRange]));
462 const NSRange selectedRange([[field_ currentEditor] selectedRange]);
463 EXPECT_EQ(selectedRange.location, 0U);
464 EXPECT_EQ(selectedRange.length, [[field_ stringValue] length]);
478 const NSRange selectedRange([[field_ currentEditor] selectedRange]);
479 EXPECT_EQ(selectedRange.location, 0U);
480 EXPECT_EQ(selectedRange.length, [[field_ stringValue] length]);
[all …]
Dautocomplete_text_field_editor.mm393 - (void)setMarkedText:(id)aString selectedRange:(NSRange)selRange {
394 [super setMarkedText:aString selectedRange:selRange];
512 return [self selectedRange].length > 0;
529 NSRange selectedRange = [self selectedRange];
530 if (selectedRange.length == 0)
533 [self attributedSubstringForProposedRange:selectedRange
Dautocomplete_text_field.mm134 ![editor selectedRange].length &&
/external/chromium_org/third_party/WebKit/Source/core/clipboard/
DDataTransfer.cpp352 void DataTransfer::writeRange(Range* selectedRange, LocalFrame* frame) in writeRange() argument
354 ASSERT(selectedRange); in writeRange()
358 …m_dataObject->setHTMLAndBaseURL(createMarkup(selectedRange, 0, AnnotateForInterchange, false, Reso… in writeRange()
/external/chromium_org/content/browser/renderer_host/
Drender_widget_host_view_mac_dictionary_helper.mm23 NSRange selection_range = [view_->cocoa_view() selectedRange];
Drender_widget_host_view_mac.h159 @property(nonatomic, readonly) NSRange selectedRange;
Drender_widget_host_view_mac.mm152 @property(nonatomic, assign) NSRange selectedRange;
1667 @synthesize selectedRange = selectedRange_;
2993 - (void)setMarkedText:(id)string selectedRange:(NSRange)newSelRange
/external/chromium_org/chrome/browser/ui/cocoa/
Dstyled_text_field.mm52 [editor scrollRangeToVisible:[editor selectedRange]];
/external/chromium_org/third_party/WebKit/Source/web/
DWebViewImpl.cpp2442 RefPtrWillBeRawPtr<Range> selectedRange = selection.toNormalizedRange(); in selectionBounds() local
2443 if (!selectedRange) in selectionBounds()
2446 RefPtrWillBeRawPtr<Range> range(Range::create(selectedRange->startContainer()->document(), in selectionBounds()
2447 selectedRange->startContainer(), in selectionBounds()
2448 selectedRange->startOffset(), in selectionBounds()
2449 selectedRange->startContainer(), in selectionBounds()
2450 selectedRange->startOffset())); in selectionBounds()
2453 range = Range::create(selectedRange->endContainer()->document(), in selectionBounds()
2454 selectedRange->endContainer(), in selectionBounds()
2455 selectedRange->endOffset(), in selectionBounds()
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/omnibox/
Domnibox_view_mac.mm275 return [[field_ currentEditor] selectedRange];
387 if (NSMaxRange([editor selectedRange]) < [[editor textStorage] length])
391 model()->StartAutocomplete([editor selectedRange].length != 0,
917 const NSRange selectedRange = GetSelectedRange();
918 if ([editor shouldChangeTextInRange:selectedRange replacementString:s]) {
927 [editor replaceCharactersInRange:selectedRange withString:s];
/external/chromium_org/chrome/browser/ui/cocoa/autofill/
Dautofill_textfield.mm90 NSRange selectionRange = [textView selectedRange];
/external/deqp/framework/randomshaders/
DrsgExpression.cpp871 …ConstValueRangeAccess selectedRange = state.getRandom().choose<const ValueEntry*>(first, end)->get… in AssignOp() local
873 ValueRange::computeIntersection(m_valueRange, m_valueRange, selectedRange); in AssignOp()