/external/webkit/WebCore/page/chromium/ |
H A D | FrameChromium.cpp | 40 if (selection()->isRange())
|
/external/webkit/WebCore/page/ |
H A D | DOMSelection.cpp | 46 Node* node = frame->selection()->selection().base().anchorNode(); 73 return m_frame->selection()->selection(); 76 static Position anchorPosition(const VisibleSelection& selection) argument 78 Position anchor = selection.isBaseFirst() ? selection.start() : selection.end(); 82 static Position focusPosition(const VisibleSelection& selection) argument 84 Position focus = selection 88 basePosition(const VisibleSelection& selection) argument 93 extentPosition(const VisibleSelection& selection) argument 218 const VisibleSelection& selection = m_frame->selection()->selection(); local 227 const VisibleSelection& selection = m_frame->selection()->selection(); local 328 SelectionController* selection = m_frame->selection(); local 352 const VisibleSelection& selection = m_frame->selection()->selection(); local [all...] |
H A D | Frame.cpp | 288 if (m_doc && selection()->isFocusedAndActive()) 314 return plainText(selection()->toNormalizedRange().get()); 357 SelectionController* Frame::selection() const function in class:WebCore::Frame 593 if (selection()->rootEditableElement()) 594 renderer = selection()->rootEditableElement()->shadowAncestorNode()->renderer(); 596 // If the current selection is in a textfield or textarea, notify the renderer that the selection has changed 616 if (selection()->isNone() || !selection()->isFocused()) 621 Node* anchor = enclosingAnchorElement(selection() 1417 VisibleSelection selection = this->selection()->selection(); local [all...] |
H A D | FocusController.cpp | 91 // Now that the frame is updated, fire events and update the selection focused states of both frames. 93 oldFrame->selection()->setFocused(false); 98 newFrame->selection()->setFocused(true); 120 m_focusedFrame->selection()->setFocused(focused); 165 currentNode = frame->selection()->start().node(); 253 frame->selection()->setSelection(newSelection); 281 SelectionController* s = oldFocusedFrame->selection(); 289 Node* selectionStartNode = s->selection().start().node(); 364 focusedOrMainFrame()->selection()->pageActivationChanged();
|
H A D | DragController.cpp | 132 bool DragController::dragIsMove(SelectionController* selection) argument 134 return m_documentUnderMouse == m_dragInitiator && selection->isContentEditable() && !isCopyKeyDown(); 137 // FIXME: This method is poorly named. We're just clearing the selection from the document this drag is exiting. 214 // If we were over another document clear the selection 320 operation = dragIsMove(innerFrame->selection()) ? DragOperationMove : DragOperationCopy; 345 frame->selection()->setSelection(dragCaret); 346 if (frame->selection()->isNone()) { 348 frame->selection()->setSelection(dragCaret); 351 return !frame->selection()->isNone() && frame->selection() [all...] |
/external/webkit/WebCore/editing/ |
H A D | RemoveFormatCommand.cpp | 53 // Make a plain text string from the selection to remove formatting like tables and lists. 54 String string = plainText(frame->selection()->selection().toNormalizedRange().get()); 58 Node* root = frame->selection()->rootEditableElement(); 70 // If the selection was all formatting (like an empty list) the format-less text will
|
H A D | MoveSelectionCommand.cpp | 42 VisibleSelection selection = endingSelection(); local 43 ASSERT(selection.isRange()); 49 // Update the position otherwise it may become invalid after the selection is deleted. 52 Position selectionEnd = selection.end(); 56 Position selectionStart = selection.start(); 68 // selection is empty, leading to null deref
|
H A D | Editor.cpp | 79 // When an event handler has moved the selection outside of a text control 80 // we should use the target control's selection for this editing operation. 83 VisibleSelection selection = m_frame->selection()->selection(); local 85 return selection; 86 // If the target is a text control, and the current selection is outside of its shadow tree, 87 // then use the saved selection for that text control. 89 Node* selectionStart = selection.start().node(); 92 return static_cast<HTMLInputElement*>(target)->selection(); 187 SelectionController* selection = m_frame->selection(); local 1015 RefPtr<Range> selection = selectedRange(); local 2291 markMisspellingsOrBadGrammar(Editor* editor, const VisibleSelection& selection, bool checkSpelling, RefPtr<Range>& firstMisspellingRange) argument 2347 markMisspellings(const VisibleSelection& selection, RefPtr<Range>& firstMisspellingRange) argument 2352 markBadGrammar(const VisibleSelection& selection) argument [all...] |
H A D | ModifySelectionListLevel.cpp | 49 static bool getStartEndListChildren(const VisibleSelection& selection, Node*& start, Node*& end) argument 51 if (selection.isNone()) 55 Node* startListChild = enclosingListChild(selection.start().node()); 60 Node* endListChild = selection.isRange() ? enclosingListChild(selection.end().node()) : startListChild; 64 // For a range selection we want the following behavior: 79 // if the selection ends on a list item with a sublist, include the entire sublist 144 static bool canIncreaseListLevel(const VisibleSelection& selection, Node*& start, Node*& end) argument 146 if (!getStartEndListChildren(selection, start, end)) 209 return canIncreaseListLevel(document->frame()->selection() 242 canDecreaseListLevel(const VisibleSelection& selection, Node*& start, Node*& end) argument [all...] |
H A D | TypingCommand.cpp | 71 if (!frame->selection()->isRange()) 129 insertText(document, text, frame->selection()->selection(), selectInsertedText, insertedTextIsComposition); 139 VisibleSelection currentSelection = frame->selection()->selection(); 156 // Set the starting and ending selection appropriately if we are using a selection 157 // that is different from the current selection. In the future, we should change EditCommand 169 frame->selection()->setSelection(currentSelection); 182 frame->selection() 433 SelectionController selection; local 527 SelectionController selection; local [all...] |
H A D | EditorCommand.cpp | 84 // Certain operations continue to use the target control's selection even if the event handler 85 // already moved the selection outside of the text control. 164 // mac: present at the beginning of selection 165 // other: present throughout the selection 214 VisibleSelection selection = frame->selection()->selection(); local 215 selection.expandUsingGranularity(granularity); 216 RefPtr<Range> newRange = selection.toNormalizedRange(); 222 RefPtr<Range> oldRange = frame->selection() 374 SelectionController* selection = frame->selection(); local 943 RefPtr<Range> selection = frame->editor()->selectedRange(); local 991 const VisibleSelection& selection = frame->selection()->selection(); local 1097 const VisibleSelection& selection = frame->editor()->selectionForCommand(event); local 1116 const VisibleSelection& selection = frame->editor()->selectionForCommand(event); local 1123 const VisibleSelection& selection = frame->editor()->selectionForCommand(event); local [all...] |
H A D | DeleteButtonController.cpp | 143 static HTMLElement* enclosingDeletableElement(const VisibleSelection& selection) argument 145 if (!selection.isContentEditable()) 148 RefPtr<Range> range = selection.toNormalizedRange(); 176 HTMLElement* newElement = enclosingDeletableElement(m_frame->selection()->selection()); 331 show(enclosingDeletableElement(m_frame->selection()->selection())); 350 // Because the deletion UI only appears when the selection is entirely 351 // within the target, we unconditionally update the selection to be 355 m_frame->selection() [all...] |
H A D | DeleteSelectionCommand.h | 39 static PassRefPtr<DeleteSelectionCommand> create(const VisibleSelection& selection, bool smartDelete = false, bool mergeBlocksAfterDelete = true, bool replace = false, bool expandForSpecialElements = false) argument 41 return adoptRef(new DeleteSelectionCommand(selection, smartDelete, mergeBlocksAfterDelete, replace, expandForSpecialElements));
|
H A D | InsertLineBreakCommand.cpp | 92 VisibleSelection selection = endingSelection(); local 93 if (selection.isNone()) 96 VisiblePosition caret(selection.visibleStart()); 166 // Apply the typing style to the inserted line break, so that if the selection
|
H A D | EditCommand.cpp | 50 setStartingSelection(avoidIntersectionWithNode(m_document->frame()->selection()->selection(), m_document->frame()->editor()->deleteButtonController()->containerElement()));
|
H A D | ReplaceSelectionCommand.cpp | 107 ReplacementFragment::ReplacementFragment(Document* document, DocumentFragment* fragment, bool matchStyle, const VisibleSelection& selection) argument 121 Element* editableRoot = selection.rootEditableElement(); 136 Node* styleNode = selection.base().node(); 150 m_fragment = createFragmentFromText(selection.toNormalizedRange().get(), evt->text()); 359 // And we should only merge here if the selection start was inside a mail blockquote. This prevents against removing a 692 // include the what was the start of the selection that was pasted into, so that we preserve that paragraph's 726 VisibleSelection selection = endingSelection(); local 727 ASSERT(selection.isCaretOrRange()); 728 ASSERT(selection.start().node()); 729 if (selection 735 ReplacementFragment fragment(document(), m_documentFragment.get(), m_matchStyle, selection); local [all...] |
/external/webkit/WebCore/inspector/front-end/ |
H A D | TextPrompt.js | 48 // Append a break element instead of setting textContent to make sure the selection is inside the prompt. 127 var selection = window.getSelection(); variable 128 selection.removeAllRanges(); 129 selection.addRange(finalSelectionRange); 160 var selection = window.getSelection(); variable 161 selection.removeAllRanges(); 162 selection.addRange(selectionRange); 177 var selection = window.getSelection(); variable 178 if (!selection.rangeCount) 181 var selectionRange = selection [all...] |
H A D | TextViewer.js | 275 var selection = this._getSelection(); 286 this._restoreSelection(selection); 294 var selection; variable 299 if (!selection) 300 selection = this._getSelection(); 303 this._restoreSelection(selection); 359 var selection = window.getSelection(); 360 if (selection.isCollapsed) 362 var selectionRange = selection.getRangeAt(0); 406 var selection variable [all...] |
/external/webkit/WebCore/page/win/ |
H A D | FrameWin.cpp | 50 if (selection()->isRange())
|
/external/svox/pico/src/com/svox/pico/providers/ |
H A D | SettingsProvider.java | 61 public int delete(Uri uri, String selection, String[] selectionArgs) {
argument 81 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
argument 90 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
argument
|
/external/webkit/WebKit/chromium/src/ |
H A D | WebFrameImpl.cpp | 924 frame()->selection()->toNormalizedRange().get(), text); 1048 // frame()->selection()->isNone() never returns true. 1049 return (frame()->selection()->start() != frame()->selection()->end()); 1054 return frame()->selection()->toNormalizedRange(); 1059 RefPtr<Range> range = frame()->selection()->toNormalizedRange(); 1073 RefPtr<Range> range = frame()->selection()->toNormalizedRange(); 1082 VisibleSelection selection(pos); 1083 selection.expandUsingGranularity(WordGranularity); 1085 if (selection [all...] |
/external/webkit/WebCore/accessibility/gtk/ |
H A D | AccessibilityObjectWrapperAtk.cpp | 111 static AccessibilityObject* core(AtkSelection* selection) argument 113 return core(ATK_OBJECT(selection)); 679 static AccessibilityObject* optionFromList(AtkSelection* selection, gint i) argument 681 AccessibilityObject* coreSelection = core(selection); 685 AccessibilityRenderObject::AccessibilityChildrenVector options = core(selection)->children(); 692 static AccessibilityObject* optionFromSelection(AtkSelection* selection, gint i) argument 694 // i is the ith selection as opposed to the ith child. 696 AccessibilityObject* coreSelection = core(selection); 712 static gboolean webkit_accessible_selection_add_selection(AtkSelection* selection, gint i) argument 714 AccessibilityObject* option = optionFromList(selection, 724 webkit_accessible_selection_clear_selection(AtkSelection* selection) argument 741 webkit_accessible_selection_ref_selection(AtkSelection* selection, gint i) argument 753 webkit_accessible_selection_get_selection_count(AtkSelection* selection) argument 765 webkit_accessible_selection_is_child_selected(AtkSelection* selection, gint i) argument 774 webkit_accessible_selection_remove_selection(AtkSelection* selection, gint i) argument 787 webkit_accessible_selection_select_all_selection(AtkSelection* selection) argument 1064 selectionBelongsToObject(AccessibilityObject* coreObject, VisibleSelection& selection) argument 1076 VisibleSelection selection = coreObject->selection(); local 1090 VisibleSelection selection = coreObject->selection(); local [all...] |
/external/webkit/WebKit/haiku/WebCoreSupport/ |
H A D | EditorClientHaiku.cpp | 250 Node* start = frame->selection()->start().node(); 267 frame->selection()->modify(kevent->shiftKey() ? SelectionController::EXTEND : SelectionController::MOVE, 273 frame->selection()->modify(kevent->shiftKey() ? SelectionController::EXTEND : SelectionController::MOVE, 279 frame->selection()->modify(kevent->shiftKey() ? SelectionController::EXTEND : SelectionController::MOVE, 285 frame->selection()->modify(kevent->shiftKey() ? SelectionController::EXTEND : SelectionController::MOVE,
|
/external/webkit/WebCore/rendering/ |
H A D | RenderTreeAsText.cpp | 591 VisibleSelection selection = frame->selection()->selection(); 592 if (selection.isCaret()) { 593 ts << "caret: position " << selection.start().deprecatedEditingOffset() << " of " << nodePosition(selection.start().node()); 594 if (selection.affinity() == UPSTREAM) 597 } else if (selection.isRange()) 598 ts << "selection start: position " << selection [all...] |
/external/webkit/WebKit/gtk/WebCoreSupport/ |
H A D | PasteboardHelperGtk.cpp | 126 // Only collapse the selection if this is an X11 primary clipboard 141 // Collapse the selection without clearing it 143 frame->selection()->setBase(frame->selection()->extent(), frame->selection()->affinity());
|