/external/chromium_org/third_party/WebKit/Source/core/page/ |
D | DOMSelection.cpp | 452 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/ |
D | find_bar_cocoa_controller.h | 86 selectedRange:(const NSRange&)selectedRange; 88 - (NSRange)selectedRange;
|
D | find_bar_cocoa_controller_unittest.mm | 85 [controller_ setFindText:kFindText selectedRange:NSMakeRange(NSNotFound, 0)]; 115 [controller_ setFindText:kFindText selectedRange:NSMakeRange(NSNotFound, 0)]; 127 [controller_ setFindText:kFindText selectedRange:NSMakeRange(NSNotFound, 0)];
|
D | find_bar_bridge.mm | 60 selectedRange:selected_range.ToNSRange()]; 68 return gfx::Range([cocoa_controller_ selectedRange]);
|
D | find_bar_cocoa_controller.mm | 337 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/ |
D | autocomplete_text_field_unittest.mm | 376 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 …]
|
D | autocomplete_text_field_editor.mm | 393 - (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/ |
D | autocomplete_text_field_unittest.mm | 362 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 …]
|
D | autocomplete_text_field_editor.mm | 303 - (void)setMarkedText:(id)aString selectedRange:(NSRange)selRange { 313 [super setMarkedText:aString selectedRange:selRange];
|
D | autocomplete_text_field.mm | 133 ![editor selectedRange].length) {
|
/external/chromium_org/third_party/WebKit/Source/core/editing/ |
D | htmlediting.cpp | 530 RefPtr<Range> selectedRange = Range::create(document); in createRange() local 531 …selectedRange->setStart(start.deepEquivalent().containerNode(), start.deepEquivalent().computeOffs… in createRange() 533 …selectedRange->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 …]
|
D | Editor.cpp | 305 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()
|
D | SpellChecker.cpp | 146 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()
|
D | InputMethodController.cpp | 304 … 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()
|
D | Editor.h | 200 PassRefPtr<Range> selectedRange();
|
/external/chromium_org/third_party/WebKit/Source/testing/runner/ |
D | TextInputController.h | 58 void selectedRange(const CppArgumentList&, CppVariant*);
|
D | TextInputController.cpp | 56 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/ |
D | Clipboard.cpp | 342 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/ |
D | render_widget_host_view_mac_dictionary_helper.mm | 23 NSRange selection_range = [view_->cocoa_view() selectedRange];
|
D | render_widget_host_view_mac.h | 155 @property(nonatomic, readonly) NSRange selectedRange;
|
/external/chromium/chrome/browser/ui/cocoa/ |
D | styled_text_field.mm | 52 [editor scrollRangeToVisible:[editor selectedRange]];
|
/external/chromium_org/chrome/browser/ui/cocoa/ |
D | styled_text_field.mm | 52 [editor scrollRangeToVisible:[editor selectedRange]];
|
/external/chromium_org/third_party/WebKit/Source/web/ |
D | WebViewImpl.cpp | 2298 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/ |
D | omnibox_view_mac.mm | 232 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/ |
D | autocomplete_edit_view_mac.mm | 341 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];
|