Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/WebKit/Source/core/page/
DDOMSelection.cpp452 RefPtr<Range> selectedRange = selection.selection().toNormalizedRange(); in deleteFromDocument() local
453 if (!selectedRange) in deleteFromDocument()
456 selectedRange->deleteContents(ASSERT_NO_EXCEPTION); in deleteFromDocument()
458 …seAndExtent(selectedRange->startContainer(ASSERT_NO_EXCEPTION), selectedRange->startOffset(), sele… in deleteFromDocument()
472 RefPtr<Range> selectedRange = selection.selection().toNormalizedRange(); in containsNode() local
479 … Range::compareBoundaryPoints(parentNode, nodeIndex, selectedRange->startContainer(), selectedRang… in containsNode()
480 …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()
/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.mm85 [controller_ setFindText:kFindText selectedRange:NSMakeRange(NSNotFound, 0)];
115 [controller_ setFindText:kFindText selectedRange:NSMakeRange(NSNotFound, 0)];
127 [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);
596 [self setFindText:text selectedRange:NSMakeRange(NSNotFound, 0)];
/external/chromium_org/chrome/browser/ui/cocoa/location_bar/
Dautocomplete_text_field_unittest.mm376 EXPECT_TRUE(NSEqualRanges(allRange, [[field_ currentEditor] selectedRange]));
391 [[field_ currentEditor] selectedRange]));
411 EXPECT_TRUE(NSEqualRanges(allRange, [[field_ currentEditor] selectedRange]));
426 [[field_ currentEditor] selectedRange]));
446 const NSRange selectedRange([[field_ currentEditor] selectedRange]);
447 EXPECT_EQ(selectedRange.location, 0U);
448 EXPECT_EQ(selectedRange.length, [[field_ stringValue] length]);
462 const NSRange selectedRange([[field_ currentEditor] selectedRange]);
463 EXPECT_EQ(selectedRange.location, 0U);
464 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
/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 …]
Dautocomplete_text_field_editor.mm303 - (void)setMarkedText:(id)aString selectedRange:(NSRange)selRange {
313 [super setMarkedText:aString selectedRange:selRange];
Dautocomplete_text_field.mm133 ![editor selectedRange].length) {
/external/chromium_org/third_party/WebKit/Source/core/editing/
Dhtmlediting.cpp530 RefPtr<Range> selectedRange = Range::create(document); in createRange() local
531selectedRange->setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffs… in createRange()
533selectedRange->setEnd(end.deepEquivalent().containerNode(), end.deepEquivalent().computeOffsetInCo… in createRange()
534 return selectedRange.release(); in createRange()
1089 bool isNodeVisiblyContainedWithin(Node* node, const Range* selectedRange) in isNodeVisiblyContainedWithin() argument
1092 ASSERT(selectedRange); in isNodeVisiblyContainedWithin()
1094 if (selectedRange->compareNode(node, IGNORE_EXCEPTION) == Range::NODE_INSIDE) in isNodeVisiblyContainedWithin()
1097 bool startIsVisuallySame = visiblePositionBeforeNode(node) == selectedRange->startPosition(); in isNodeVisiblyContainedWithin()
1098 …if (startIsVisuallySame && comparePositions(positionInParentAfterNode(node), selectedRange->endPos… in isNodeVisiblyContainedWithin()
1101 bool endIsVisuallySame = visiblePositionAfterNode(node) == selectedRange->endPosition(); in isNodeVisiblyContainedWithin()
[all …]
DEditor.cpp305 addToKillRing(selectedRange().get(), false); in deleteWithDirection()
393 RefPtr<Range> range = selectedRange(); in pasteWithPasteboard()
420 void Editor::writeSelectionToPasteboard(Pasteboard* pasteboard, Range* selectedRange, const String&… in writeSelectionToPasteboard() argument
422 … String html = createMarkup(selectedRange, 0, AnnotateForInterchange, false, ResolveNonLocalURLs); in writeSelectionToPasteboard()
423 KURL url = selectedRange->startContainer()->document().url(); in writeSelectionToPasteboard()
512 …replaceSelectionWithFragment(createFragmentFromText(selectedRange().get(), text), selectReplacemen… in replaceSelectionWithText()
515 PassRefPtr<Range> Editor::selectedRange() in selectedRange() function in WebCore::Editor
933 RefPtr<Range> selection = selectedRange(); in cut()
961 …writeSelectionToPasteboard(Pasteboard::generalPasteboard(), selectedRange().get(), m_frame.selecte… in copy()
995 addToKillRing(selectedRange().get(), false); in performDelete()
DSpellChecker.cpp146 if (RefPtr<Range> selectedRange = m_frame.selection().toNormalizedRange()) in ignoreSpelling() local
147 m_frame.document()->markers()->removeMarkers(selectedRange.get(), DocumentMarker::Spelling); in ignoreSpelling()
350 RefPtr<Range> selectedRange = movingSelection.toNormalizedRange(); in clearMisspellingsAndBadGrammar() local
351 if (selectedRange) in clearMisspellingsAndBadGrammar()
352 …m_frame.document()->markers()->removeMarkers(selectedRange.get(), DocumentMarker::MisspellingMarke… in clearMisspellingsAndBadGrammar()
DInputMethodController.cpp304 … RefPtr<Range> selectedRange = Range::create(baseNode->document(), baseNode, start, baseNode, end); in setComposition() local
305 m_frame.selection().setSelectedRange(selectedRange.get(), DOWNSTREAM, false); in setComposition()
DEditor.h200 PassRefPtr<Range> selectedRange();
/external/chromium_org/third_party/WebKit/Source/testing/runner/
DTextInputController.h58 void selectedRange(const CppArgumentList&, CppVariant*);
DTextInputController.cpp56 bindMethod("selectedRange", &TextInputController::selectedRange); in TextInputController()
155 void TextInputController::selectedRange(const CppArgumentList&, CppVariant* result) in selectedRange() function in WebTestRunner::TextInputController
/external/chromium_org/third_party/WebKit/Source/core/dom/
DClipboard.cpp342 void Clipboard::writeRange(Range* selectedRange, Frame* frame) in writeRange() argument
344 ASSERT(selectedRange); in writeRange()
348 …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.h155 @property(nonatomic, readonly) NSRange selectedRange;
/external/chromium/chrome/browser/ui/cocoa/
Dstyled_text_field.mm52 [editor scrollRangeToVisible:[editor selectedRange]];
/external/chromium_org/chrome/browser/ui/cocoa/
Dstyled_text_field.mm52 [editor scrollRangeToVisible:[editor selectedRange]];
/external/chromium_org/third_party/WebKit/Source/web/
DWebViewImpl.cpp2298 RefPtr<Range> selectedRange = selection.toNormalizedRange(); in selectionBounds() local
2299 if (!selectedRange) in selectionBounds()
2302 RefPtr<Range> range(Range::create(selectedRange->startContainer()->document(), in selectionBounds()
2303 selectedRange->startContainer(), in selectionBounds()
2304 selectedRange->startOffset(), in selectionBounds()
2305 selectedRange->startContainer(), in selectionBounds()
2306 selectedRange->startOffset())); in selectionBounds()
2309 range = Range::create(selectedRange->endContainer()->document(), in selectionBounds()
2310 selectedRange->endContainer(), in selectionBounds()
2311 selectedRange->endOffset(), in selectionBounds()
[all …]
/external/chromium_org/chrome/browser/ui/cocoa/omnibox/
Domnibox_view_mac.mm232 return [[field_ currentEditor] selectedRange];
338 if (NSMaxRange([editor selectedRange]) < [[editor textStorage] length])
342 model()->StartAutocomplete([editor selectedRange].length != 0,
849 const NSRange selectedRange = GetSelectedRange();
850 if ([editor shouldChangeTextInRange:selectedRange replacementString:s]) {
859 [editor replaceCharactersInRange:selectedRange withString:s];
/external/chromium/chrome/browser/autocomplete/
Dautocomplete_edit_view_mac.mm341 return [[field_ currentEditor] selectedRange];
441 if (NSMaxRange([editor selectedRange]) <
446 model_->StartAutocomplete([editor selectedRange].length != 0,
951 const NSRange selectedRange = GetSelectedRange();
952 if ([editor shouldChangeTextInRange:selectedRange replacementString:s]) {
961 [editor replaceCharactersInRange:selectedRange withString:s];

12